bug-mailfromd
Re: [Bug-mailfromd] Deleting and adding the same recipient
Hello Sergey,
>> The following during `envrcpt` leaves the mail with no recipient.
>>
>> rcpt_delete($1)
>> rcpt_add("alias@xxxxxxxxxx")
>> rcpt_delete("<alias@xxxxxxxxxx>")
>> rcpt_add("alias@xxxxxxxxxx")
>>
>> Can you confirm that this is the expected behavior?
>
> No, this leaves "alias@xxxxxxxxxx" as the only recipient. Running this
> on my box with 'O Milter.LogLevel=9' in the sendmail.cf file, I get
> the following:
Running this on postfix-2.10 (rhel7) with mailfromd-8.7
Jun 28 14:22:55 pres postfix/smtpd[15965]: connect from unknown[10.0.2.20]
Jun 28 14:22:56 pres mailfromd#1[16052]: info: *deleting recipient <mehmet@xxxxxxxxxxxxx>
Jun 28 14:22:56 pres mailfromd#1[16052]: info: *adding recipient alias@xxxxxxxxxx
Jun 28 14:22:56 pres mailfromd#1[16052]: info: *deleting recipient <alias@xxxxxxxxxx>
Jun 28 14:22:56 pres mailfromd#1[16052]: info: *adding recipient <alias@xxxxxxxxxx>
Jun 28 14:22:56 pres pusula-postfix/smtpd[15965]: 49vpBm0Kq9z56Ctk: client=unknown[10.0.2.20]
Jun 28 14:22:56 pres pusula-postfix/cleanup[15975]: 49vpBm0Kq9z56Ctk: message-id=<0.1.13.92.1D64D3E8812A2D2.0@preo>
Jun 28 14:22:56 pres pusula-postfix/qmgr[7947]: 49vpBm0Kq9z56Ctk: from=<mehmet@xxxxxxxxxxxxx>, size=1100, nrcpt=2 (queue active)
Jun 28 14:22:56 pres pusula-postfix/qmgr[7947]: 49vpBm0Kq9z56Ctk: removed
Postfix also increases the nrcpt count. Changing the first one to a different address works as expected.
rcpt_delete($1)
rcpt_add("alias2@xxxxxxxxxx")
rcpt_delete("<alias2@xxxxxxxxxx>")
rcpt_add("alias@xxxxxxxxxx")
This time reporting nrcpt=3 and delivering one message to destination.
Above info lines are my echo statements. I increased postfix debug_peer_level but couldn't get this level output.
Best regards,
--
Mehmet