Hi All,
Forwarding is enabled in my pop server all the mails to my domain will come to this pop emial ID sample@xyz.com. Using fetchmail I will download all the mails to my local server, Please tell me how will I distribute the mails to the local users.
Thanks in Advance, Bye Ram
____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
On Monday 08 Aug 2005 11:08 am, Ramang G wrote:
Hi All,
Forwarding is enabled in my pop server all the mails to my domain will come to this pop emial ID sample@xyz.com. Using fetchmail I will download all the mails to my local server, Please tell me how will I distribute the mails to the local users.
i assume you are using postfix. your internet domain is xyz.com your local machine is xyz.web
your fetchmailrc will be:
poll xyz.com proto POP3 no dns envelope Envelope-To timeout 90 user sample@xyz.com password xxx to * here
in postfix main.cf put these lines:
canonical_maps = hash:/etc/postfix/canonical virtual_alias_maps = hash:/etc/postfix/virtual
in /etc/postfix/canonical put this line
(.*) $1@xyz.com
and in /etc/postfix/virtual put this line:
(.*)@xyz.com $1
compile canonical and virtual and restart postfix. Postfix will now deliver all mail addressed to user@xyz.com to user@xyz.web. When testing this out, make sure you run fetchmail with --keep option so that no mail is lost