mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Postfix can't access rmilter socket due to chroot
This commit is contained in:
parent
d4e4d01b4f
commit
2cf4768aa1
3 changed files with 7 additions and 2 deletions
|
@ -39,6 +39,11 @@ do_post_regen() {
|
|||
sudo chown _rmilter /etc/dkim/*.mail.key
|
||||
sudo chmod 400 /etc/dkim/*.mail.key
|
||||
|
||||
# fix rmilter socket permission (postfix is chrooted in /var/spool/postfix )
|
||||
sudo mkdir -p /var/spool/postfix/run/rmilter
|
||||
sudo chown -R postfix:_rmilter /var/spool/postfix/run/rmilter
|
||||
sudo chmod g+w /var/spool/postfix/run/rmilter
|
||||
|
||||
[ -z "$regen_conf_files" ] && exit 0
|
||||
|
||||
# reload systemd daemon
|
||||
|
|
|
@ -141,7 +141,7 @@ smtp_reply_filter = pcre:/etc/postfix/smtp_reply_filter
|
|||
# Rmilter
|
||||
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
|
||||
milter_protocol = 6
|
||||
smtpd_milters = unix:/var/tmp/rmilter.sock
|
||||
smtpd_milters = unix:/run/rmilter/rmilter.sock
|
||||
|
||||
# Skip email without checking if milter has died
|
||||
milter_default_action = accept
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# pidfile - path to pid file
|
||||
pidfile = /run/rmilter/rmilter.pid;
|
||||
|
||||
bind_socket = unix:/var/tmp/rmilter.sock;
|
||||
bind_socket = unix:/var/spool/postfix/run/rmilter/rmilter.sock;
|
||||
|
||||
# DKIM signing
|
||||
dkim {
|
||||
|
|
Loading…
Add table
Reference in a new issue