Post edited 8:44 am – November 1, 2010 by shanmugasundaram s
Hi consultant,
I just downloaded the package postfix-2.5.1-1.mysql.sasl2.vda.rhel5.rpm from postfix rpm download section in vacation response,since vacation response needs postfix 2.5.1 package.But this postfix rpm doesn't support pcre.
By checking postconf -m it show following support.
btree
cidr
environ
hash
ldap
mysql
nis
proxy
regexp
static
unix
So i have configured bcc with regexp support.By doing the following steps and this method is very easy to configure also.
We need to put entry in postfix configuration file /etc/postfix/main.cf like this
recipient_bcc_maps = regexp:/etc/postfix/bcc_regexp
sender_bcc_maps = regexp:/etc/postfix/bcc_regexp
and creating file /etc/postfix/bcc_regexp with entry like this if we want all domains archive to one email-id
/.*/ bcc_email_id(ex:- user1@localhost.com)
if we want particular domain mails to archive put entry in /etc/postfix/bcc_regexp like this
/localhost.com/ user1@localhost.com
Then restart the MailScanner service.