I'm having trouble adding a second pop3 account to my mutt/fetchmail/procmail configuration. I have it receiving mail and sending mail to the second pop3 account, but I just have a couple of questions.
-my .muttrc looks like
Code:
set spoolfile = $HOME/mail/inbox
set folder = $HOME/mail
-my .fetchmailrc looks like
Code:
poll "pop3.first.mailserver.com" # tell fetchmail where to look
protocol pop3 # we use the POP-protocol
username "name" ssl # who am i ?
password " " # passwords are always secret ;-)
mimedecode # automaticaly deal with mime (attachements)
mda "/usr/bin/procmail -d %s" # tell fetchmail which MDA to use
poll "pop3.second.mailserver.com" # tell fetchmail where to look
Code:
protocol pop3 # we use the POP-protocol
username "name" ssl # who am i ?
password " " # passwords are always secret ;-)
mimedecode # automaticaly deal with mime (attachements)
mda "/usr/bin/procmail /home/user/.procmailrc.secondmailserver.com" # tell fetchmail which MDA to use
-my .procmailrc.secondmailserver.com looks like
Code:
LINEBUF=4096
VERBOSE=no
PMDIR=$HOME/.procmail
INCLUDERC=$PMDIR/rc.maillists
HOME=/home/rjm # where is our homedir
MAILDIR=$HOME/mail/
SENDMAIL=/usr/sbin/sendmail
DEFAULT=/var/spool/mail/inbox.secondmailserver.com # what is the default place to store mail
LOGFILE=$PMDIR/.procmaillog.secondmailserver.com # keep a log
-my .procmail/rc.maillists looks like
Code:
:0:
* ^To:.*user@second.mailserver.com
/home/user/mail/user@second.mailserver.com
I'm able to send and receive mail for my
user@second.mailserver.com account. But the second.mailserver.com mail is being spooled to $HOME/mail/user@second.mailserver.com instead of what I have configured in my .procmailrc.secondmailserver.com file (DEFAULT=/var/spool/mail/inbox.secondmailserver.com). It looks like procmail is not logging to $PMDIR/.procmaillog.secondmailserver.com. Any ideas on why this is going on?