Praedor Atrebates grabbed a keyboard and wrote: > > I have logged directly into my popmail server (yahoo) via the web and find > that the spam message isn't being repeatedly sent - the same message is > causing a problem over and over. Yahoo tagged it as spam and put it in my > bulk mail folder on their site. When fetchmail retrieved messages, it would > apparently have problems with that message and send me the error message > email instead of the actual spam. > > I am not sure why...is there a way to fix fetchmail so it wont do this > anymore? Instead of having a problem with a message and sending me a > bazillion error messages every time it sees the undelivered/undeliverable > message/spam, can I not just set fetchmail to dump the message?
Yes, if fetchmail sees an error from your local MTA, it tends to not delete the message from the remote site, because it thinks there's a problem. You *can* tell it what a spam reject on your local MTA is, however. For example, I've got a few checks at the postfix level that will reject a detected spam message before it ever *gets* to the user's mailbox. As such, spamassassin isn't coming into play yet. Spam that it detects, it rejects with a 550 error code. You can tell fetchmail that a given error code (or range of codes) is a spam reject and to not attempt redelivery (I.E., it will go ahead and delete the message from the remote server). Here's what I have in my .fetchmailrc to do this: set postmaster "postmaster" set bouncemail set no spambounce set properties "" poll <remote host> with proto IMAP user '<blah>' there with password '<blah>' is '<blah>' here antispam 550 That last line ("antispam 550") tells it that a 550 code coming from postfix on my machine is a spam reject. It will then quietly delete the message from the far end as though it had delivered it. Try putting in the reject code that you're seeing at your end from your local postfix/qmail/sendmail daemon, and see if that helps. --Dave -- David Guntner GEnie: Just say NO! http://www.akaMail.com/pgpkey/davidg or key server for PGP Public key
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com