On 2006/09/06 13:19, Cedric Brisseau wrote: > I think spamd can't help a lot since mails aren't received directly. > Maybe you have similar cases with spamassassin+clamav or relaydb, > procmail ?
spamassassin and smtp-vilter works quite nicely for this, you will want to generate an /etc/mail/access containing the list of valid usernames so you can reject unknown users with an SMTP error rather than having bounces for all the spam sent to unknown addresses being backscattered to the people whose addresses were forged:- To:example.com error:550 5.1.1 No such user To:[EMAIL PROTECTED] OK To:[EMAIL PROTECTED] OK To:[EMAIL PROTECTED] OK for msexchange you can generate this from the LDAP directory - install openldap and have a script run a query like so:- $ ldapsearch -b OU=SBSUsers,OU=Users,OU=MyBusiness,DC=example,DC=com -D cn=Administrator,cn=Users,dc=example,dc=com -w password proxyaddresses and parse the output, generate /etc/mail/access and run makemap on it. (that example is for SBS, there will be some small variation for non-SBS servers).