Local mail delivery

MrTalent's Debian config questions go here!

Moderators: Admins, Forum Moderator

Local mail delivery

Postby toxygen on Sat Jan 07, 2006 9:57 am

Local delivery of mail on this box could also be configured, if desired, but this document will not cover that aspect.


Is there any document that cover that certain aspect, local delivery, with tools presented in that howto?
toxygen
 
Posts: 2
Joined: Sat Jan 07, 2006 9:35 am

Postby mr88talent on Sat Jan 07, 2006 5:01 pm

You first need to decide whether you are going to use POP3 or IMAP, (or both) and mailbox or maildir format. Then you have to decide which software to use for your IMAP and/or POP3 server. I suggest Courier which uses maildir format. Maildir format is generally regarded as being less trouble prone. Courier can be quite complex to set up and maintain but I think it is the most reliable. Actually, it's pretty easy if you are simply creating Unix accounts but gets more complex if you are not. There are a few tutorials out there that will give you some idea how to use Courier POP3/IMAP with Debian. As far as local delivery in Postfix goes, the main changes would be moving the local domain(s) from relay_domains to mydestination, and dropping:
local_transport = error:no local mail delivery
local_recipient_maps =

If all the domains are local, you would also drop relay_domains and relay_recipient_maps. Any local domains would also be removed from transport_maps.

Setting up user authentication is probably the hardest part of Courier. For instance: you have to decide if users will have Unix accounts or not (this can affect the ability to forward mail and run user specific programs using procmail or maildrop).

Here are a few links to get you started:
http://www.fatofthelan.com/articles/articles.php?pid=22
http://www.falkotimme.com/howtos/perfec ... /index.php
http://workaround.org/articles/ispmail-sarge/
http://www.courier-mta.org/imap/
http://www.courier-mta.org/?pop3d.html

I also suggest owning (and possibly even reading) a copy of "The book of Postfix".

apt-cache search ^courier

If you think Courier is the way you would like to go, make sure you only install the IMAP and/or POP3 server components of Courier otherwise you may end up accidentally replacing Postfix with the Courier SMTP server.

This is only one way to go. That's the problem. There are many different programs that could be used, and many different ways to integrate them.
I think there are 14 different POP3 servers available in Debian packages, so this gives you an idea why it is hard to give people advice:

http://packages.debian.org/stable/virtual/pop3-server
http://packages.debian.org/stable/virtual/imap-server

Then there are optional LDA (Local Delivery Agent) programs like procmail or maildrop that can fit between Postfix and the mailboxes.
Last edited by mr88talent on Sun Feb 04, 2007 6:01 pm, edited 5 times in total.
User avatar
mr88talent
Moderator
 
Posts: 1618
Joined: Tue Mar 08, 2005 4:19 pm
Location: Salt Lake City

Postby toxygen on Sat Jan 07, 2006 7:16 pm

thank you very much
toxygen
 
Posts: 2
Joined: Sat Jan 07, 2006 9:35 am

Postby mr88talent on Sat Jan 07, 2006 7:45 pm

Oh yeah, when you set up the firewall, include any additional ports you need (110 and/or 143 for example). Simply copy the line for port 25 and change port 25 to 110 (or whatever).

Here is an excerpt from Falko Timme:

If you want to use a POP3/IMAP daemon that has Maildir support (if you do not want to use the traditional Unix mailbox format) you can install Courier-IMAP/Courier-IMAP-SSL (for IMAPs on port 993) and Courier-POP3/Courier-POP3-SSL (for POP3s on port 995).

apt-get install courier-imap courier-imap-ssl courier-pop courier-pop-ssl

<- No

Then configure Postfix to deliver emails to a user's Maildir*:

postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
/etc/init.d/postfix restart
User avatar
mr88talent
Moderator
 
Posts: 1618
Joined: Tue Mar 08, 2005 4:19 pm
Location: Salt Lake City


Return to Debian

Who is online

Users browsing this forum: No registered users and 0 guests