Get mails from external POP3 accounts
I have a Linux server running Mailman, Postfix and Fetchmail. I'm running this at home for a small sailing club, with approximately 10 messages/day. The problem is that I have dynamic IP, and only a no-ip.com basic account.
But the sailing club is so lucky that they have a domain, a web/mailserver and unlimited number of pop3 accounts. So my question is:
How can I set up mailman/postfix to get mails form another, external pop3 account via fetchmail? I've already made the pop3 accounts, like listname-users@domain.com, listname-admins@domain.com etc. But how do I configure fetchmail, postfix and mailman?
Best regards Håkon Strandenes, Norway
At 10:19 PM +0200 2004/05/06, Håkon Strandenes wrote:
How can I set up mailman/postfix to get mails form another, external pop3 account via fetchmail? I've already made the pop3 accounts, like listname-users@domain.com, listname-admins@domain.com etc. But how do I configure fetchmail, postfix and mailman?
The postfix and mailman configurations should be pretty much
completely independent of the fetchmail configuration. Set up fetchmail to download the e-mail from the remote server and deliver it locally, and then postfix and mailman should take care of the rest.
-- Brad Knowles, <brad.knowles@skynet.be>
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania.
SAGE member since 1995. See <http://www.sage.org/> for more info.
What user account should I set fetchmail to deliver the mails to? Does it affect the mail delivery?
Is it any other tricks I have to know about?
Best regards Håkon Strandenes
tor, 06.05.2004 kl. 22.32 skrev Brad Knowles:
At 10:19 PM +0200 2004/05/06, Håkon Strandenes wrote:
How can I set up mailman/postfix to get mails form another, external pop3 account via fetchmail? I've already made the pop3 accounts, like listname-users@domain.com, listname-admins@domain.com etc. But how do I configure fetchmail, postfix and mailman?
The postfix and mailman configurations should be pretty much completely independent of the fetchmail configuration. Set up fetchmail to download the e-mail from the remote server and deliver it locally, and then postfix and mailman should take care of the rest.
At 8:01 AM +0200 2004/05/07, Håkon Strandenes wrote:
What user account should I set fetchmail to deliver the mails to? Does it affect the mail delivery?
I think Hilton has already covered this. It does make a
difference, because otherwise you'd have the wrong messages going to the wrong mailing lists.
Is it any other tricks I have to know about?
You also have to have your ISP give you some sort of way of
distinguishing between the various different addresses that get delivered to your account. Otherwise, all those messages are going to come in and look like they are delivered to you, and you won't know what to do with them.
I think this issue is pretty well explained in the fetchmail documentation.
-- Brad Knowles, <brad.knowles@skynet.be>
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania.
SAGE member since 1995. See <http://www.sage.org/> for more info.
Quoting Håkon Strandenes <haakon.strandenes@seilforening.no>:
I have a Linux server running Mailman, Postfix and Fetchmail. I'm running this at home for a small sailing club, with approximately 10 messages/day. The problem is that I have dynamic IP, and only a no-ip.com basic account.
But the sailing club is so lucky that they have a domain, a web/mailserver and unlimited number of pop3 accounts. So my question is:
How can I set up mailman/postfix to get mails form another, external pop3 account via fetchmail? I've already made the pop3 accounts, like listname-users@domain.com, listname-admins@domain.com etc. But how do I configure fetchmail, postfix and mailman?
If I understand you correctly, you want to be able to post to the list outside of your environment (at home). You want fetchmail to collect 'outside' posts and send them to the list?
If so, then create external POP3 accounts, but in the virtusertable (or similar) make sure the entries are something like this....
yourlistname-request@yourdomain.org.no yourlistname-request
Do this for all the entries required (post, admin, bounces, confirm, join, leave, onwer, subscribe, unsubscribe etc).
Then in your fetchmail script, instead of dumping mail to a local account, do this....
user yourlistname-request with pass password is yourlistname-request
The last bit corresponds to the entry in your aliases table. So instead of dumping the mail into a local account, it passes it through the aliases table just like normal port 25 mail would do.
I hope this all makes sense and if any of the more experienced guys (like BradK) know of a better or cleaner way to do this, please shout.
-- Regards Hilton
Quoting Håkon Strandenes <haakon.strandenes@seilforening.no>:
I have a Linux server running Mailman, Postfix and Fetchmail. I'm running this at home for a small sailing club, with approximately 10 messages/day. The problem is that I have dynamic IP, and only a no-ip.com basic account.
But the sailing club is so lucky that they have a domain, a web/mailserver and unlimited number of pop3 accounts. So my question is:
How can I set up mailman/postfix to get mails form another, external pop3 account via fetchmail? I've already made the pop3 accounts, like listname-users@domain.com, listname-admins@domain.com etc. But how do I configure fetchmail, postfix and mailman?
If I understand you correctly, you want to be able to post to the list outside of your environment (at home). You want fetchmail to collect 'outside' posts and send them to the list?
If so, then create external POP3 accounts, but in the virtusertable (or similar) make sure the entries are something like this....
yourlistname-request@yourdomain.org.no yourlistname-request
Do this for all the entries required (post, admin, bounces, confirm, join, leave, onwer, subscribe, unsubscribe etc).
Then in your fetchmail script, instead of dumping mail to a local account, do this....
user yourlistname-request with pass password is yourlistname-request
The last bit corresponds to the entry in your aliases table. So instead of dumping the mail into a local account, it passes it through the aliases table just like normal port 25 mail would do.
I hope this all makes sense and if any of the more experienced guys (like BradK) know of a better or cleaner way to do this, please shout.
-- Regards Hilton
Quoting Håkon Strandenes <haakon.strandenes@seilforening.no>:
I have a Linux server running Mailman, Postfix and Fetchmail. I'm running this at home for a small sailing club, with approximately 10 messages/day. The problem is that I have dynamic IP, and only a no-ip.com basic account.
But the sailing club is so lucky that they have a domain, a web/mailserver and unlimited number of pop3 accounts. So my question is:
How can I set up mailman/postfix to get mails form another, external pop3 account via fetchmail? I've already made the pop3 accounts, like listname-users@domain.com, listname-admins@domain.com etc. But how do I configure fetchmail, postfix and mailman?
If I understand you correctly, you want to be able to post to the list outside of your environment (at home). You want fetchmail to collect 'outside' posts and send them to the list?
If so, then create external POP3 accounts, but in the virtusertable (or similar) make sure the entries are something like this....
yourlistname-request@yourdomain.org.no yourlistname-request
Do this for all the entries required (post, admin, bounces, confirm, join, leave, onwer, subscribe, unsubscribe etc).
Then in your fetchmail script, instead of dumping mail to a local account, do this....
user yourlistname-request with pass password is yourlistname-request
The last bit corresponds to the entry in your aliases table. So instead of dumping the mail into a local account, it passes it through the aliases table just like normal port 25 mail would do.
I hope this all makes sense and if any of the more experienced guys (like BradK) know of a better or cleaner way to do this, please shout.
-- Regards Hilton
participants (4)
-
Brad Knowles
-
Hilton J Ralphs
-
Hilton J Ralphs
-
Håkon Strandenes