postfix: enable smtpd auth« Wróć do listy pytań

on port 587 with STARTTLS
Wysłane przez mrmucha
Zadane przez 18/12/2017 22:59
0

this solve problems with:

1
2
postfix/master[31635]: warning: process /usr/lib/postfix/smtpd pid 31658 exit status 1
postfix/master[31635]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
postfix/master[31635]: warning: process /usr/lib/postfix/smtpd pid 31658 exit status 1
postfix/master[31635]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

and

1
2
postfix/submission/smtpd[31638]: warning: SASL: Connect to private/auth failed: No such file or directory
postfix/submission/smtpd[31638]: fatal: no SASL authentication mechanisms
postfix/submission/smtpd[31638]: warning: SASL: Connect to private/auth failed: No such file or directory
postfix/submission/smtpd[31638]: fatal: no SASL authentication mechanisms
Wysłane przez mrmucha
Odpowiedziane 18/12/2017 23:03
0

add to : /etc/postfix/main.cf

1
2
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth

edit and modify: /etc/dovecot/conf.d/10-master.conf

1
2
3
4
5
service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
  }
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
  }
}

unhash: /etc/postfix/master.cf

1
2
3
4
5
6
7
8
9
10
11
submission inet n       -       -       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_reject_unlisted_recipient=no
  -o smtpd_client_restrictions=$mua_client_restrictions
  -o smtpd_helo_restrictions=$mua_helo_restrictions
  -o smtpd_sender_restrictions=$mua_sender_restrictions
  -o smtpd_recipient_restrictions=
  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING
submission inet n       -       -       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_reject_unlisted_recipient=no
  -o smtpd_client_restrictions=$mua_client_restrictions
  -o smtpd_helo_restrictions=$mua_helo_restrictions
  -o smtpd_sender_restrictions=$mua_sender_restrictions
  -o smtpd_recipient_restrictions=
  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING
Wysłane przez mrmucha
Odpowiedziane 18/12/2017 23:02