Again sa-exim and fetchmail
Richard Bergmair <[email protected]>
| Newsgroups | gmane.mail.exim.spamassassin |
|---|---|
| Message-ID | <[email protected]> |
Can't anybody give me a hint? I can't believe I'm the first one, trying to do this! ---------- Forwarded Message ---------- Subject: sa-exim and fetchmail Date: Sat, 26 Apr 2003 15:40:02 +0200 From: Richard Bergmair <[email protected]> To: [email protected] Hi! I've just set up my new mail-environment using exim 4.14, SpamAssassin-2.53 and sa-exim 2.2. I receive both mail sent directly to my MTA, and mail sent to my provider's mail-account. I use fetchmail 5.6.5 in deamon-mode to poll my provider's POP3-server for new mail, and now I want to get rid of spam sent directly to my MTA, as well as spam lying around in my providers mailbox. Filtering seems to work perfectly. I don't *receive* any more spam that spamassassin can identify as such, but it's not deleted from the POP3-account. I assume that this is due to fetchmail: Fetchmail gets all mail from the POP3-account and opens an SMTP-connection to the localhost, simply forwarding mail to exim. Before exim gets to see it sa-exim runs spamassassin to check, whether it's spam, and rejects it. (I've set "SAEximRunCond: 1" in spamassassin.conf, since the normal check for local deliveries would prevent SpamAssassin to be run on mail coming from fetchmail) That's why fetchmail can't deliver that mail, so it doesn't delete it from the mailbox. In fetchmail(1) I read, that fetchmail deletes mail only if the delivery was either successful, or it receives one of the error-codes [571, 550, 501, 554] which usually indicate that mail was rejected due to spam-checking. Doesn't sa-exim send one of these error-codes, or what could be the reason, that spam remains in the mailbox, after running fetchmail on a spammed mailbox? Thanks a lot! Richard -------------------------------------------------------