Fetchmail + Procmail

#

’’‘$HOME/.fetchmailrc’’’

set postmaster user set no bouncemail

defaults mda “/usr/bin/procmail -d %T” fetchall

poll imap.gmail.com protocol IMAP port 993 user “username@fqdn.com” password “somepasss” ssl folder INBOX,centos,opensolaris,partners,Banco, keep is “user” here

poll mail.server.org protocol IMAP port 993 user “username” password “somepassword” ssl keep is “user” here }}}

#

’’‘$HOME/.procmailrc’’’

SHELL=/bin/sh PMDIR=$HOME/.procmail LOGFILE=$HOME/logs/procmail.log LOG=” “ VERBOSE=yes MAILDIR=$HOME/Mail

:0:

  • ^From:.*centos.org CentOS

:0:

  • ^From:.*opensolaris.org OpenSolaris

:0:

  • ^TO_username@fqdn.com Personal

:0:

  • ^TO_username@gmail.com Gmail }}}