On Mon, 1 Mar 2004, Steven Dickenson wrote: > David B Funk wrote: > > IF you configure your mail system in such a way that the Envelope From > > address is available to SpamAssassin, then the 'whitelist_from_rcvd' > > functionality works just fine to whitelist -all-kinds- of lists > > (including this one. ;). > > Anyone know if this setup works using Fetchmail? Fetchmail pulls my > mail off the imap server at my hosting provider, then throws it at Exim > as an SMTP session. Will fetchmail still feed it the correct envelope > from address? I'm not sure that it can know the envelope from, seeing > as how these messages have already been (technically) delivered. > > Steven
Strictly speaking Fetchmail cannot do it unless your LDA (Local Delivery Agent) adds a recognized header that contains the Envelope From. SA is writtent to look for "From" type addresses in a number of specific headers: Envelope-Sender: X-Envelope-From: Return-Path: Resent-From: So as long as your mail system has some way of putting the Envelope From into one of these headers (either before or during the delivery process) your SA should be good to go. For example, I use the UWashington IMAP server kit. I use its "tmail" program as the LDA. It takes the Envelope From and uses it to generate a "Return-Path:" header during the delivery process. That would work for your Fetchmail configuration. I do my SA filtering via sendmail using miltrassassin to call spamd. I modified miltrassassin to take the Envelope From address and use it to synthesize a "X-Envelope-From:" header as it passed the message to spamd. -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{