[TriLUG] Mail Question

Dean Price dprice153 at charter.net
Fri Sep 26 22:10:57 EDT 2003


Ok guys, I have googled the snot out of this one... Maybe someone in here
can give it a try.

I have a mail server running postfix, procmail, spamassassin, fetchmail,
gotmail, and fetchyahoo.

Every thing coming directly to me and the stuff that fetchmail pulls in
gets processed through procmail and spamassassin. the mail that gotmail
and fetchyahoo pull in is going through procmail but is not getting tagged
by spamassassin.

here are all relevant files.

      .procmailrc

MAILDIR=$HOME # Default mail directory
DEFAULT=/var/spool/mail/deano
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log.`date +%y-%m-%d`

###SpamAssassin
:0fw
* < 256000
| /usr/bin/spamc

:0e
EXITCODE==$?

##Catch SPAM
:0
* ^X-Spam-Flag: YES
* ^X-Spam-Level: \*\*\*\*\*\*
SPAM

###To '' *@TriLUG.org '' INBOX '' m
:0:
* ^To.**@TriLUG.org
TriLUG

###To '' *@yahoo.com '' Yahoo '' m
:0:
* ^To.**@yahoo.com
Yahoo

###To '' *@hotmail.com '' HotMail '' m
:0:
* ^To.**@hotmail.com
HotMail

           .gotmailrc

# This is a sample gotmail configuration file. Rename it to .gotmailrc
# and place it in your home directory to use it.

# See the manpage for more options!

username=deano153 at hotmail.com
password=XXXXXXXXX
domain=hotmail.com
forward=deano at price4.org
only-new
delete
#use-procmail
#procmail-bin=/usr/bin/procmail
# folders="Inbox , Junk Mail"
retry-limit=3

          .fetchmailrc

poll mail.charter.net
        proto pop3
        user "dprice153"
        pass "XXXXXXXX"
        is deano
        nokeep

          .fetchyahoo

username = deano153
password = XXXXXXXX
use-https = 0
use-spool = 1
spool = /usr/bin/procmail
spool-mode = pipe
use-proxy = 0
proxy-host = proxy.hostname.com
proxy-port = 80
proxy-username = proxyAuthenicationUserName
proxy-password = proxyAuthenicationPassword
use-forward = 0
mail-host = localhost
send-to = deano at price4.org
send-from = deano at price4.org
new-messages-only = 1
no-delete = 0
folder = Inbox
quiet = 0
get-external = 0
no-errors = 0
empty-trash-after = 0
empty-trash-before = 0
empty-bulk = 1
repeat-interval = 0
leave-unread = 0
no-from-line = 0
logout = 0
status-only = 0

          crontab entries

deano 	Yes 	fetchmail -m "/usr/bin/procmail -d %T"
        Yes 	fetchyahoo.pl
        Yes 	gotmail

The only difference here is that fetchmail uses command line options. and
gotmail and fetchyahoo do not accept options.

Dean Price
deano at price4.org
dprice at charter.net
dean.price at ctg.com
910-797-3895



More information about the TriLUG mailing list