Hi all! I'm trying to configure some mail boxes on my LAN. The idea is to fetch remote mail from some pop3 accounts that we have in external providers, so that my internal users can later retreive the messages from our local server but not from the external pop3 providers. Besides, some of these users have several pop3 accounts with different login/passwords combinations. I'd like them to recover all of their messages from only from one account name, that is, to do some kind of 'mail routing' from several external pop3 accounts to only one internal pop3 account. Is there any easy way to configure a system like that? Perhaps with fetchmail? I have a sendmail daemon running on my linux box with for mail transmitting purposes. Best regards, Jose L. Rojano
Hello Jose, Your problem is easily fixed with as you suspected - fetchmail. Now, I know fetchmail can do this "all in one go", which I have never used ( I only have at most five users at a time ) but this is what I did per user: In the users home directory, create a file ".fetchmailrc" Lets assume that your user has three accounts poll mailserver.bogus.net proto pop3 user worf pass bloodwine poll mail.other.com proto pop3 user chief pass ugh poll popserv.somewhere.org user donald pass duck Now lets assume that the account with other.com is the primary account, and the other two are used for play. We would like to fetch the mail from the primary account every twenty minutes all day, and every hour in the night.
From the play accounts, we settle for every hour. Then the crontab for that user would look like this
20,40 7-20 * * * fetchmail mail.other.com 2>&1 >/dev/null 0 * * * * fetchmail -a 2>&1 >/dev/null The .fetchmailrc must be chmod 600 or 400, owned by the user. Fetchmail can use much more complicated rules, giving you control over where the mail is sent etc, but I have only done what works for me so more advanced features would be a discussion for other fetchmail gurus :> -tosi Þann þriðjudagur 22 maí 2001 11:40 skrifaðir þú:
Hi all!
I'm trying to configure some mail boxes on my LAN. The idea is to fetch remote mail from some pop3 accounts that we have in external providers, so that my internal users can later retreive the messages from our local server but not from the external pop3 providers. Besides, some of these users have several pop3 accounts with different login/passwords combinations. I'd like them to recover all of their messages from only from one account name, that is, to do some kind of 'mail routing' from several external pop3 accounts to only one internal pop3 account.
Is there any easy way to configure a system like that? Perhaps with fetchmail? I have a sendmail daemon running on my linux box with for mail transmitting purposes.
Best regards,
Jose L. Rojano
* Tor Sigurdsson
Hello Jose,
poll mailserver.bogus.net proto pop3 user worf pass bloodwine poll mail.other.com proto pop3 user chief pass ugh poll popserv.somewhere.org user donald pass duck
You can do the same thing as the root user and place the .fetchmailrc under /root directory and then have a look to teh /usr/share/doc/packages/fetchmail directory to learn how to start fetchmail with the bootup process using the init script followed bt insserv fetchmail to set the correct sequence. Use of fetchmailconf can help you to get it going in the X environment HTH -- Togan Muftuoglu
participants (3)
-
Jose L. Rojano
-
Togan Muftuoglu
-
Tor Sigurdsson