Page 1 of 1

Fetchmail for global pop3 account

Posted: Wed Feb 14, 2007 3:32 am
by EYoder
I use a global pop3 account (global@mydomain.com) which is a catch all that recieves any mail addressed to mydomain.com. Is there a way to have fetchmail retrieve mail from this acount then push it to scalix and have Scalix route it to each user? For example, we recieve user1@mydomain.com and user2@mydomain.com in the global@mydomain.com account and I want Scalix to sort these out and send them to its respective users at mydomain.local. I'v figured out how to have fetchmail send them to a paticular user in Scalix but can't figure out how to just send them to Scalix for routing.

Posted: Wed Feb 14, 2007 9:53 pm
by EYoder
With a little more research I was able to get things prettty much as I wanted. It turns out that I missed

Code: Select all

 smtphost mydomain.com
in the fetchmailrc file. Now my problem is that I can't get a catchall to work. Any incorrect addresses bounce back to the sender.

My fetchmailrc file looks like this:

Code: Select all

set postmaster "administrator@mydomain.com"
set bouncemail
set properties ""
poll mail.mydomain.com with proto POP3
localdomains mydomain.com
user global@mydomain.com password mypassword to smtphost mydomain.com


My output from fetchmail looks like this:

Code: Select all

1 message for global@mydomain.com at mail.mydomain.com (4797 octets).
reading message global@mydomain.com@mail27.myprovider.com:1 of 1 (4797 octets) .fetchmail: SMTP error: 550 5.1.1 <missspelled@mydomain.com>... User unknown
fetchmail: mail from FETCHMAIL-DAEMON@server.mydomain.local bounced to sender@domain.com
... flushed


I have added this code to the smtpd.cfg file:

Code: Select all

CATCH @mydomain.com administrator@mydomain.com


Any help would really be appreciated. :wink:

Posted: Wed Feb 14, 2007 11:51 pm
by florian
You should not add the CATCH clause to the smtpd.cfg file.

Instead you should be using fetchmail in "multidrop" mode. Please google for it and you should find hints on how to update your fetchmailrc.

Cheers,
Florian.

Posted: Thu Feb 15, 2007 10:10 am
by EYoder
Thanks for the responce. The funny thing is its now its working even though I didn't put fetchmail in multidrop mode. I still get the notificaiton from fetchmail that it's bouncing back to the sender but it never shows up at the sender and the message is now going to my catch all. Is there any reason I can't leave it just the way it is? You know if it ain't broke don't fix it!

By the way Scalix is greate I'm really blown away by all the features.

Thanks again.

Posted: Thu Feb 15, 2007 11:25 am
by EYoder
After a little furthur testing I am noticing some odd behavior. 1) E-mail looses its formating, in otherwords when I send a message with increased font size or different color it comes through in black fonts and at a default size of 12 even though their were diferent colors and sizes of fonts in the email. On the other hand when a message comes into my catchall It has all its formatting intact. Anothe odd thing I'm noticing is that if I send a message to mutiple users and include one or more incorect addresed messages all usesers will recieve two copies of the message. One with correct formatting and one without.

You mentioned using fetchmail in multidrop mode but I was wondering if this was a good idea since I read in the man pages that using multidrop mode to poll a single addres for multiple users can cause problems. I'm trying to avoid having to contact my isp every time I add a new user. Thats why I had set up a global catch all with my isp. The other thing I would like to be able to do is check any email not properly addressed that was sent to mydomain.com.

Thanks Again