On 08/09/2011 17:04, Mark Martinec wrote: > Sep 8 15:04:43 svr amavis[9242]: (09242-14) > Passed SPAM, [208.30.118.112] [208.30.118.112] > <adelama...@boimail.com> -> > <st...@svr.mydom.org>,<st...@svr.mydom.org>,<st...@svr.mydom.org>, > <st...@svr.mydom.org>,<st...@svr.mydom.org>,<st...@svr.mydom.org>, > <st...@svr.mydom.org>,<st...@svr.mydom.org>, > Message-ID: <201109081759.8B7F082565A0D33F9A15@p00905q4tw>, > mail_id: 0eFkT73PzE2y, Hits: 25.936, size: 1608, queued_as: E24C916C02A6, > 8169 ms > > This was a single message, addresses to 8 recipients, all of which > happen to be you. It is normal that you received 8 copies and they > all look the same. > > Looks like your virtual alias mapping or alias maps in MTA or in some milter > or before an MTA rewrote original recipients to steve. In a sense that's what's wanted... /etc/postfix/virtual contains: > @mydom.org st...@mydom.org I want all messages to all users delivered to steve. The thing I found surprising is that syslog details that the first message was orig_to ste...@mydom.org (which is reflected in the first message's headers) - and the second message was orig_to subvers...@mydom.org - but this wasn't reflected in the second message... which also appeared to be "To" ste...@mydom.org. There was no mention of subvers...@mydom.org in the second message... and all subsequent messages only mention ste...@mydom.org - not the list of 8/9 email addresses that match the number of duplicated messages received.
>> Is this a bug with Amvisd (possibly exposed my malformed messages)? > Mail header section (and addresses therein) have no effect on mai > delivery. All addresses are sent out-of-band in an SMTP envelope. > Neither amavisd nor an MTA care about To and Cc in a mail header. I understand. I'd expected the mail message header to reflect the address to which the message was sent - as under "normal" circumstances. It struck me as being odd that the email addresses the originator specified would occur no-where in the messages postfix stores. If I send an email with two "To:" recipients - say b...@mydom.org and m...@mydom.org - I get two mails delivered - but each mail details both b...@mydom.org and m...@mydom.org in a single "To:" line in each message. With the spam message, the message claims to be "To:" only the first recipient... and, apart from the fan-out, evidence of the intended recipient is lost. >> Is there some other trick I'm missing - for example, some caveat about >> using spamassassin with postfix virtual aliases? > Double check your address mappings in MTA. The mappings seem to work well for all standard email. An email sent to anyth...@mydom.org is delivered to the mailbox of st...@mydom.org - and has a header which says that it is To: anyth...@mydom.org. This is exactly what I want. I guess what I'm looking for is a better way to handle spams addressed to multiple addresses at my domain... At the moment, a single spam-classified email addressed to N recipients is duplicated N times. Where the message is spam, I'd be happier if it were sent to my spam folder just once.