Auto Local Sorting with Fetchmail and POP3 Account at ISP

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

rimshot

Auto Local Sorting with Fetchmail and POP3 Account at ISP

Postby rimshot » Mon Jun 18, 2007 3:07 pm

Hello fellow Scalix Users

First of all, Respect to the Scalix Creators. You guys rock!! This product is a winner!!

This post is not a question, but rather a solution to using fetchmail to collect mail from your ISP and deliver it to the correct scalix user on a your server (which can be behind a behind a firewall).

I am assuming that you have a fully working scalix server and fetchmail is also setup.

My scenario : I have 2 different pop3 accounts with 2 different domains (domain1.com and domain2.com). These are not global accounts, but rather accounts with many aliases. Cumbersome, I know, but it keeps spam to a minimum.

I have 10 users on the scalix system. Some just have domain1.com or domain2.com accounts. Others have both domain1 and domain2 accounts. All I did was put the following lines into my fetchmailrc file (everything in "< brackets>" must be substitued with your specifc details without the brackets).

Code: Select all


set postmaster "<postmaster email address of your choice>"
set bouncemail
set properties ""

#for domain1.com collection#
poll <isp.mailserver.address> with proto pop3
localdomains <domain1.com>
user "<domain1 username>" pass "<domain1 password>" to smtphost <local server ip>

#for domain2.com collection#
poll <isp.mailserver.address> with proto pop3
localdomains <domain2.com>
user "<domain2 username>" pass "<domain2 password>" to smtphost <local server ip>


WARNING! Make sure you put the full local IP address of your scalix server in <local server ip> (without the brackets). DO NOT use localhost or 127.0.0.1 as it will cause routing havoc.

And that's all! Fetchmail will collect the mail and transfer the TO,CC, or BCC address to the local SMTP service and Scalix will be able to deliver it 'cause it will recognize the addresses!

I hope this helps cause it took me a week to get it working.

Happy Scalixing!

KevinAnderson

Postby KevinAnderson » Mon Jun 18, 2007 5:25 pm

I'll just add that this is single threaded, and works awesome for small installations, I've even used it for migrations, but when the number of users climbs, the single threaded nature of this becomes a bottleneck. When I needed to check 500 users, it took well over an hour to run through a single cycle. The recipients perceived this as the email system being slow.

For "special" users, I simply added them twice. Once at the beginning, and once half way through. That made them run twice as often, minimizing the impact of the lag time between runs.

Kev.

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Mon Jun 18, 2007 6:30 pm

Thanks for the Kudos, and thanks Kevin for adding your experience.

If you guys want to flesh out http://www.scalix.com/wiki/index.php?ti ... /Fetchmail with some of your experience, then others will be able to find what you've written more easily.

/c


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 11 guests

cron