In a bounce message from a multidrop mailbox, the recipient address in
Final-Recipient: has two '@'s:
Reporting-MTA: dns; localhost
Final-Recipient: rfc822;
unknown(_at_)bombay(_dot_)retortsoft(_dot_)com@localhost
Last-Attempt-Date: Tue, 10 Sep 2002 16:05:39 +0530 (IST)
Action: failed
Status: 5.1.1
Diagnostic-Code: 550 5.1.1 <unknown(_at_)bombay(_dot_)retortsoft(_dot_)com>...
User unknown
Also, there seems to be a slight difference between the handling of
addresses in smtp and bsmtp. In bsmtp, the smtpname setting is checked
for first; in smtp, the '@' character is checked for first. I am not
sure if a different handling is required for the two.
This is because the recipient address is handled in different places
in different ways.
Here is a patch which uses the same function for handling of recipient
addresses in
1) rcpt to original address,
2) rcpt to postmaster (in case of no good addresses)
3) bsmtp to original address,
4) address mentioned in Final-Recipient: in bounce mail.
This patch also allows handle_smtp_report() to do RSET now.
Sunil Shetye.
fetchmail-5.9.14-rcptaddr.patch
Description: Text document