[Gllug] .procmailrc not working
Alex Sayle
alexs at alphacomplex.info
Tue Sep 13 00:25:51 UTC 2005
On 12 Sep 2005, at 22:24BDT, Adrian McMenamin wrote:
> I have set up a new server to handle all mail - copying over all the
> setup on the old server (or so I believed).
>
> But my .procmailrc doesn't appear to be recognised/used.
>
> What should I look to fix?
>
> I am using fetchmail to pull down mail - most of which is directed to
> the account "adrianmail"
>
> The first few lines of .procmailrc are
>
> SHELL = /bin/sh
> SENDMAIL = /usr/sbin/sendmail
>
> :0
> * ^Subject.*SPAM
> /dev/null
>
>
> Yet I am getting email tagged as SPAM in my inbox
>
> .procmailrc is in /home/adrianmail and is 777 (owner and group are
> both
> adrianmail in case that matters).
>
> No doubt I have missed something obvious ... but I don't know what.
> (saidly I have pulled apart the old server as the problems were not
> immediately obvious)
Easy, set the mda on your fetchmailrc to procmail.
The following is what a part of my .fetchmailrc looks like,
the effect is simple, it pulls mail from mail.example.com using POP3
using "my.username.is.cooler.than.yours" and "passw0rd" and injects
mail into unix_username using procmail whilst stripping CRs b|c CRs
are evil.
# .fetchmailrc
poll mail.exmaple.com port 110 with proto POP3
user "my.username.is.cooler.than.yours" there with password
"passw0rd" is
unix_username here options stripcr warnings 3600
mda '/usr/bin/procmail'
keep
This will bypass any MTA on your machine and will deliver mail to your
procmail with out delay or hesitation.
If there is some pressing reason why you need your mail to go though the
MTA (funky mail rewriting/routing or some other reason) and your using
Postfix (which is my choice of MTA) then check that main.cf
(usually located around /etc/postfix/main.cf) has the following line
mailbox_command = procmail -a "$EXTENSION"
# Which happens to be the Debian Default for Postfix.
HTH
--alex
--
[----------------------------------------------------------------------]
Alex Sayle alexs at alphacomplex.info
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list