1830207 Members
1163 Online
109999 Solutions
New Discussion

Re: Linux POP Utility

 
Johan Nielsen
Advisor

Linux POP Utility

I have read through several of sendmail and pop related questions in the FAQ but was not able to find the answer to my question. I'm trying to replace my Exchange server with a Linux box. My exchange server is currently popping out and collecting e-mail from one account with multiple aliases and distributing it accordingly as part of the IMC. Is there a utility that will pop out and collect mail from a POP server and place it in various inboxes on a linux box? I suspect procmail may come into play. Thanks in advance.
4 REPLIES 4
Johan Nielsen
Advisor

Re: Linux POP Utility

it looks like fetchmail is the answer...
Tony Contratto
Respected Contributor

Re: Linux POP Utility

Hi Johan,

Fetchmail may work for this, but be sure to read this part of the man page:

http://www.tuxedo.org/~esr/fetchmail/fetchmail-man.html#25

--
Tony
got root?
Tim Clarke
Advisor

Re: Linux POP Utility

I endorse the fetchmail recommendations above for fetching mail from an external POP account. I've just been through the whole mail process and can recommend www.qmail.org (and associated packages) for the local POP/SMTP/IMAP functions. You'll need this if you have ex-Exchange users who aren't local users on your Linux box.
Nicolas Portais
Frequent Advisor

Re: Linux POP Utility

Hi Johan,

i use sendmail + cyrus-imapd and it works perfectly. you can use SASLDB authentification method: the username/passwd are stored in a different database (more secure than /etc/passwd).

cyrus-imapd home page: http://asg.web.cmu.edu/cyrus/imapd/

my sendmail config.mc file:

include(../m4/cf.m4)dnl
OSTYPE(linux)dnl
define(`confTRUSTED_USER', `cyrus')dnl
DOMAIN(generic)dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
FEATURE(always_add_domain)dnl
FEATURE(local_procmail)dnl
MASQUERADE_AS(yourdomain.com)dnl
MASQUERADE_DOMAIN(hostname.yourdomain.com)dnl
GENERICS_DOMAIN(hostname.yourdomain.com)dnl
FEATURE(genericstable)dnl
FEATURE(masquerade_envelope)dnl
define(`SMART_HOST', `smtp:[mail.yourdomain.com]')dnl
define(`confSMTP_MAILER', `smtp8')dnl
define(`confDEF_CHAR_SET', `ISO-8859-1')dnl
define(`confCOPY_ERRORS_TO', `Postmaster')dnl
define(`SMTP_MAILER_FLAGS', `e9')dnl
define(`CYRUS_MAILER_FLAGS', `SA5@')dnl
define(`CYRUS_BB_MAILER_FLAGS', `S')dnl
define(`confLOCAL_MAILER',`cyrus')dnl
MAILER(local)dnl
MAILER(cyrus)dnl
MAILER(smtp)dnl

LOCAL_RULE_0
R$=N $: $#local $: $1
R$=N < @ $=w . > $: $#local $: $1
Rbb + $+ < @ $=w . > $#cyrusbb $: $1

Put your local user in the file /etc/mail/sendmail.cN.

--
Nicolas