Kalpin Erlangga Silaen: > Dear Ram, > > On Mon, Apr 20, 2009 at 3:23 PM, Ramprasad <r...@netcore.co.in> wrote: > > Kalpin Erlangga Silaen wrote: > >> > >> Dear All, > >> > >> is it possible to deliver all emails from a certain domain to 2 or 3 > >> server ? > >> > >> eg. > >> server 1 with ip 10.100.200.2 accept domain abc.com > >> server 2 with ip 10.100.200.3 accept domain abc.com > >> > >> both of server have exactly configuration and user/mailbox replication. > >> > >> We need do this since server 1 located in our internal and mostly > >> every weekend has eletrical problem. Server 2 more stable. So we want > >> all email replicate to other server. > >> > >> > > > > use a virtual_alias_map to copy every mail to the backup server > > > > eg > > u...@abc.com ? u...@abc.com,u...@backup.abc.com > > > > Now send mails for abc.com & backup.abc.com to respective servers > > You may use smtp rewrite to remove the "backup." from username before > > sending to the second server > > > > We have thousands user (with single domain to handle). Will we have > thousand lines too ?
/etc/postfix/main.cf recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc.pcre /etc/postfix/recipient_bcc.pcre: /^(.+)@example\.com$/ $...@backup.example.com Test command: $ postmap -q u...@example.com pcre:recipient_bcc.pcre u...@example.com u...@backup.example.com http://www.postfix.org/postconf.5.html#recipient_bcc_maps http://www.postfix.org/pcre_table.html http://www.postfix.org/postmap.1.html Wietse