[Dovecot] Dovecot and Postfix Authentication
I am a student and am trying to get a mail server setup for a project. I have all of the Postfix configuration taken care of, but I am confused by the way that authentication works with Dovecot in the mix. As a user of the system, am I supposed to authenticate myself to Postfix, Dovecot, both individually, or both together? My Postfix users are stored in a PostgreSQL database, should Dovecot also be connected to this db? Some basic pointers on how this setup ought to look is all that I'm hoping for.
Thank you, Christopher
On 30 Aug 2013, at 20:37 , Christopher Trom <chtrom@gmail.com> wrote:
As a user of the system, am I supposed to authenticate myself to Postfix,
No. Postfix has no authentication methods on its own.
<http://www.postfix.org/SASL_README.html>
Yes.
Some basic pointers on how this setup ought to look is all that I'm hoping for.
Certs
ssl_cert = </etc/ssl/certs/dovecot.pem ssl_key = </etc/ssl/private/dovecot.pem
Dovecot 2.x
For postfix to talk to:
service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } }
allow IMAP only
protocols = imap
For IMAP users to get their mail
service imap-login { inet_listener imaps { port = 993 ssl = yes } }
For SQL users to authenticate
Note that UID and GID and mail_location are for MY system
if all your users are in sql, you can get mail_location from
the database
userdb { args = /etc/dovecot/dovecot-sql.conf.ext default_fields = uid=vpopmail gid=vchkpw mail_location=/usr/local/virtual/%u driver = sql }
-- 'Ah... I see that the new traffic division is having the desired effect.' He indicated a large pile of paper. 'I am getting any amount of complaints from the Carters' and Drovers' Guild. Well done. Do pass on my thanks to Sergeant Colon and his team.' 'I will, sir.' 'I see in one day they clamped seventeen carts, ten horses, eighteen oxen and one duck.' 'It was parked illegally, sir.'
participants (2)
-
Christopher Trom
-
LuKreme