fetchmailrc configuration to receive email for 2 domains
My .fetchmailrc looks like the following:
set logfile "/var/log/fetchmail"
set postmaster "postmaster"
set bouncemail
set no spambounce
set properties ""
poll vmail.myprovider.com with proto POP3 envelope Delivered-To qvirtual mydomain1.com-
localdomains mydomain1.com,mydomain2.com
user 'postmaster' there with password 'password' to * here
On the "vmail.myprovider.com" server I receive email for two domains. How can I add the second domain on the fetchmailrc? When I add a second poll like: "poll vmail.myprovider.com with proto POP3 envelope Delivered-To qvirtual mydomain2.com-" after the first poll, when I run fetchmail all the mail for 'mydomain2.com' is flushed when the first poll runs and as a result I lose all the mail for mydomain2.com
I am not very experienced in working with Linux, so any help is greatly appreciated.
Thank you.
|