fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]Fetchmail with Qmail

2005-11-29 04:49:59
robert(_at_)digitalphx(_dot_)com writes:

Im testing fetchmail with this fetchmail file:

poll some.com proto pop3 nodns
    user user(_at_)some(_dot_)com with password pass is 
email(_at_)user(_dot_)com here
    mda "/var/qmail/bin/qmail-inject -f%F %T"
    fetchall forcecr

This works as to deliver the email but it doesnt appear to send it to
Spamassassin.

To qmail, it looks as though the mail originated locally.

Im on Fedora Core 2 using Qmail with qmail-scanner and Spamassassin
3.0.1. How do I get the email sent to SA so it can filter out spam and
follow the rules I have setup like a normal email that hits our server
would go through?

I tried sendmail instead of qmail-inject, same outcome. It just delivers
the email, even if I have the from address in my block list. If I sent
directly from the blocked email to my mailbox it gets blocked like it
should, for some reason its skipping SA. I tried add the line
QS_Spamassassin="on" or whatever to the tcp.smtp file, but still no
luck.

Of course not, you aren't using SMTP.

Remove the mda option and its argument, if your scanner is SMTP
based. Note that message will appear to originate from 127.0.0.1 or from
one of your externally visible IP addresses depending on fetchmail's
version.

Besides that, I generally advise against using qmail-inject, you don't
benefit from using it, contrary to what some people claim. qmail's
"sendmail" wrapper does the same job (accept mail to send it to someone)
and understands the same environment variables, plus it has a standard
command set so you don't need to reconfigure every single application
for each of your users again should you decide that day that qmail
doesn't cut the mustard. Using qmail-inject is just a waste of time.

-- 
Matthias Andree

_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
http://lists.ccil.org/cgi-bin/mailman/listinfo/fetchmail-friends