Re: [ILUG] qmail, spamassasin and fetchmail

From: John Allman (allmanj at domain houseofireland.com)
Date: Wed 25 Sep 2002 - 09:28:02 IST


John Allman wrote:

> Hi - I'm somewhat a newbie as a mail server administrator so if this
> is a stupidly obvious question please dont flame!
>
> I have a working qmail and spamassasin system. mails coming in get
> passed through spamassasin and all is working ok. Meanwhile there are
> a number of accounts which fetchmail is set up to go and get and pass
> them on to local accounts on the server. The problem is that these
> mails fetched by fetchmail appear not to be going through spamassassin
> at all!:( I read the documentation but was unable to find what i was
> looking for and googling didn't help much either.
>
> As i understand it fetchmail delivers by smtp so in theory this
> _should_ be going through qmail. I checked to see if there was some
> rule saying "dont spam locally generated mails" but was unable to spot
> it (i may have been looking in the wrong place). This is a really
> frustrating problem and i must say it seems beyond me:(
>
> I can post any configuration files or logs that anyone feels would be
> helpful.
>
> thanks,
>
> John Allman
>
Hi - since i only got one reply (off list (thanks Mathew)) i'm guessing
that the problem description was too vague. I am using qmail-scanner to
call spamassassin. I read http://qmail-scanner.sourceforge.net/ which
seemed to imply that /etc/tcpserver/smtp.rules (in my case
/etc/tcp.smtp) would be the problem, however my tcp.smtp seems very
simple and different to the example given on that page:

mail.server.ip.address:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""

I'm left thinking maybe this isn't the problem? The mail server is a
suse 8.0 box and has suse's qmail init script, in which is defined
QMAILQUEUE. Looking through the script, it doesn't seem to have anything
in it that might treat locally generated mails differently.

If its any help my .fetchmailrc looks like this:

set syslog
set daemon 900

poll gpo.iol.ie proto pop3
      user 'user1' there with password 'password' is
'user1 at domain houseofireland.com' here fetchall
      user 'user2' there with password 'password' is
'user2 at domain houseofireland.com' here fetchall

If this all looks ok can somebody please give me a hint as to what else
i should look at? I'm trying to be as specific as i can here but frankly
i'm at a loss. any help or suggestions would be appreciated.

John



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:19:02 GMT