
mouss at netoyen
May 6, 2008, 2:06 PM
Post #4 of 9
(158 views)
Permalink
|
Stefan Jakobs wrote: > Hello list, > > here is a part of the header from a mail I like to whitelist: > > X-Spam-Status: Yes, score=6.958 tagged_above=-999 required=5 > tests=[BAYES_00=-2.599, NO_RELAYS=-0.001, SPOOF_COM2COM=2.272, > SPOOF_COM2OTH=2.044, URIBL_BLACK=1.955, URIBL_PH_SURBL=1.787, > URIBL_WS_SURBL=1.5] > Received: from server.mydomain.tld ([127.0.0.1]) > by localhost (server.mydomain.tld [127.0.0.1]) (amavisd-new, port 10024) > with LMTP id YNy7nG6dpfBy for <root[at]server.mydomain.tld>; > Tue, 6 May 2008 03:06:45 +0200 (CEST) > Received: by server.mydomain.tld (Postfix, from userid 0) > id 158EE552D2F; Tue, 6 May 2008 03:06:45 +0200 (CEST) > To: root[at]server.mydomain.tld > From: stats[at]server.mydomain.tld > > The mail contains some mail statistics and therefore sometimes some URIs which > are blacklisted. I can not change the content. That's why I like to use: > whitelist_from_rcvd stats[at]server.mydomain.tld mydomain.tld > > But that will not work! How can I whitelist this mail without > using 'whitelist_from stats[at]server.mydomain.tld'? > I see from your headers that you use postfix and amavdis-new, and that such messages are submitted with the sendmail command. if you trust the machine (no php mail to outside), then you can skip filtering for mail submitted via sendmail. to do so, just add -o content_filter= to the "pickup" service in master.cf if you don't trust the machine, things get a bit more complex but it's still feasible. alternatively, use amavisd-new (policy banks, whitelists, ...). but if you rely on the sender address, make sure to reject it in your smtpd (you don't want to give spammers an open road).
|