Date: Sun, 22 Jul 2001 13:31:03 -0400 From: John Capo <jc@irbs.com> To: freebsd-isp@FreeBSD.org Subject: Re: IMAP servers Message-ID: <20010722133103.A7059@tortugas.irbs.com> In-Reply-To: <3B5AED0F.F8CE7C64@buckhorn.net>; from bob@buckhorn.net on Sun, Jul 22, 2001 at 10:11:11AM -0500 References: <3B5AED0F.F8CE7C64@buckhorn.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Last week I switched from postfix/procmail delivering to Maildirs for virtual domains to postfix/procmail/cyrus. Virtual domains are easy to implement with postfix and cyrus. I let postfix map user@domain.com to imap+user_domain_com with a mysql table and virtual_maps=mysql:/blahblahblah. Procmail is the mailbox_command delivery agent. I created a fallback_transport to procmail via the pipe driver: procmail unix - n n - - pipe flags=R user=cyrus argv=/usr/local/bin/procmail USER=${user} EXTENSION=${extension} Users in /etc/passwd have their mail delivered by the mailbox_command, in my case procmail, and everything goes to procmail/cyrus via the fallback_transport. I use procmail because it was the easy to implement junkmail filtering and attachment filename munging to disable the sircam worm and friends. The fallback_transport could be directly to cyrus or to cyrus via some other filter. The mailbox_command could be something other than procmail. A minimal ~cyrus/.procmailrc: DELIVERMAIL="/usr/local/cyrus/bin/deliver" :0 | $DELIVERMAIL $EXTENSION I modified lib/auth_unix.c to map '@', '%', and '.' in usernames to '_' since '.' is the mailbox seperator in cyrus. This lets me assign unique usernames/mailboxes like joe@domain.com, joe@otherdomain.com, joe@yadomain.com, and so on. Netscape POP does not permit user@domain.com style usernames. Netscape turns user@domain.com to user@domain.com@popserver.com so I tell Netscape POP users to use user%domain.com instead. user@domain.com does work for Netscape IMAP and Outlook POP. Bottom line is if you let postfix do the virtual domain to mailbox name mapping, and you don't need user@domain.com style usernames, cyrus works out of the box. John Capo IRBS Engineering, Inc. Quoting Bob Martin (bob@buckhorn.net): > I've decided that it's time to re-invent our e-mail system. Sendmail has > already been replaced by postfix. Now it's time to deal with IMAP. > > What I need is an IMAP server that handles virtual domains, "virtual" > (non system) users, and that can handle different imap name spaces. SASL > authentication is also a must, as is a very low price tag. Scalability > and performance would be nice, but at the moment, it's not essential. > > I've narrowed it down to 2 servers. > Cyrus. Does everything but virtual domains. > Courier. Does everything but user defined name spaces. > > As it stands now, I'm going to "fix" one of the two. Question is, which > one? > > I really have 2 questions. 1) Is there another well developed IMAP > server I should look at? 2) If you are using one of these 2, what are > it's good and bad points. > > If you'll reply to me off list, I'll summarize and post the summary back > to the list. > > Thanks for the help! > Bob Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010722133103.A7059>