Linux/Mailserver/Small Office Smarthost: Difference between revisions
< Linux | Mailserver
(Die Seite wurde neu angelegt: „This configuration is based on Ubuntu 12.04 LTS * preparing the system <blockquote> <pre> mkdir /srv/mail/virtual groupadd -g 5000 vmail useradd -s /usr/sbin/…“) |
No edit summary |
||
Line 17: | Line 17: | ||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
auth_mechanisms = plain | auth_mechanisms = plain # optional: login | ||
#!include auth-master.conf.ext | #!include auth-master.conf.ext # disable | ||
!include auth-passwdfile.conf.ext | !include auth-passwdfile.conf.ext | ||
</pre> | </pre> | ||
Line 29: | Line 29: | ||
log_path = /var/log/dovecot | log_path = /var/log/dovecot | ||
auth_debug = yes # | auth_debug = yes # for debugging only | ||
mail_debug = yes # | mail_debug = yes # | ||
verbose_ssl = yes # | verbose_ssl = yes # | ||
Line 35: | Line 35: | ||
</blockquote> | </blockquote> | ||
* /etc/dovecot/conf.d/10-mail.conf | |||
<blockquote> | |||
<pre> | |||
mail_location = maildir:/srv/mail/virtual/%d/%n | |||
</pre> | |||
</blockquote> | |||
* /etc/dovecot/conf.d/10-master.conf | |||
<blockquote> | |||
<pre> | |||
service auth { | |||
... | |||
unix_listener /var/spool/postfix/private/auth { | |||
mode = 0660 | |||
# Assuming the default Postfix user and group | |||
user = postfix | |||
group = postfix | |||
} | |||
... | |||
} | |||
</pre> | |||
</blockquote> | |||
<blockquote> | <blockquote> |
Revision as of 22:48, 12 March 2013
This configuration is based on Ubuntu 12.04 LTS
- preparing the system
mkdir /srv/mail/virtual groupadd -g 5000 vmail useradd -s /usr/sbin/nologin -u 5000 -g 5000 vmail id vmail
postfix
dovecot
- /etc/dovecot/conf.d/10-auth.conf
auth_mechanisms = plain # optional: login #!include auth-master.conf.ext # disable !include auth-passwdfile.conf.ext
- /etc/dovecot/conf.d/10-logging.conf
log_path = /var/log/dovecot auth_debug = yes # for debugging only mail_debug = yes # verbose_ssl = yes #
- /etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:/srv/mail/virtual/%d/%n
- /etc/dovecot/conf.d/10-master.conf
service auth { ... unix_listener /var/spool/postfix/private/auth { mode = 0660 # Assuming the default Postfix user and group user = postfix group = postfix } ... }
touch /var/log/dovecot chown vmail:vmail /var/log/dovecot chmod 660