mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Allow system users to auth on the mail stack and send emails
This commit is contained in:
parent
7636b486c0
commit
f0751aff17
2 changed files with 16 additions and 1 deletions
|
@ -38,16 +38,28 @@ ssl_prefer_server_ciphers = no
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
||||||
|
# Regular Yunohost accounts
|
||||||
passdb {
|
passdb {
|
||||||
args = /etc/dovecot/dovecot-ldap.conf
|
args = /etc/dovecot/dovecot-ldap.conf
|
||||||
driver = ldap
|
driver = ldap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Internally, allow authentication from system user
|
||||||
|
# who might want to send emails (e.g. from apps)
|
||||||
|
passdb {
|
||||||
|
override_fields = allow_nets=127.0.0.1/32,::1/64
|
||||||
|
driver = pam
|
||||||
|
}
|
||||||
|
|
||||||
userdb {
|
userdb {
|
||||||
args = /etc/dovecot/dovecot-ldap.conf
|
args = /etc/dovecot/dovecot-ldap.conf
|
||||||
driver = ldap
|
driver = ldap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
userdb {
|
||||||
|
driver = passwd
|
||||||
|
}
|
||||||
|
|
||||||
protocol imap {
|
protocol imap {
|
||||||
imap_client_workarounds =
|
imap_client_workarounds =
|
||||||
mail_plugins = $mail_plugins imap_quota antispam
|
mail_plugins = $mail_plugins imap_quota antispam
|
||||||
|
|
|
@ -107,7 +107,10 @@ virtual_alias_domains =
|
||||||
virtual_minimum_uid = 100
|
virtual_minimum_uid = 100
|
||||||
virtual_uid_maps = static:vmail
|
virtual_uid_maps = static:vmail
|
||||||
virtual_gid_maps = static:mail
|
virtual_gid_maps = static:mail
|
||||||
smtpd_sender_login_maps= ldap:/etc/postfix/ldap-accounts.cf
|
smtpd_sender_login_maps=
|
||||||
|
ldap:/etc/postfix/ldap-accounts.cf, # Regular Yunohost accounts
|
||||||
|
hash:/etc/postfix/sender_login_maps # Extra maps for system users who need to send emails
|
||||||
|
|
||||||
|
|
||||||
# Dovecot LDA
|
# Dovecot LDA
|
||||||
virtual_transport = dovecot
|
virtual_transport = dovecot
|
||||||
|
|
Loading…
Add table
Reference in a new issue