Auto Local Sorting with Fetchmail and POP3 Account at ISP
Posted: 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).
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!
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!