Using Procmail to filter local cron email messages

Keith ac7xc1nx at comcast.net
Tue Jul 7 11:54:22 UTC 2009


Hi,
  I use fetchmail with postfix & procmail to retrieve my email from mail 
servers and procmail to my Ubuntu 9.04 Linux box. The problem that I 
encounter is that when cron runs it generates and sends a email to the
local user account. When this email is sent it is not filtered with
procmail and stays in my INBOX /var/mail/USERNAME . Is there a way
to call procmail from postfix to filter messages? In fetchmail I use
wants mda /usr/bin/procmail to call procmail to filter email messages.

# Configuration created Sat Jun 13 11:40:27 2009 by fetchmailconf 1.54 $Revision: 5165 $
poll mail.pop3server.net with proto POP3 auth password and options uidl
user 'USERNAMETHERE' there with password 'secret' is 'USER' here 
options keep ssl
  mda '/usr/bin/procmail -d %T'



-- 
Best Regards, Keith




More information about the ubuntu-users mailing list