Forum

postfix: enable smt...
 
Notifications
Clear all

postfix: enable smtpd auth

2 Posty
1 Users
0 Reactions
1,704 Widok
0
Topic starter

on port 587 with STARTTLS

2 Answers
0
Topic starter

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
0
Topic starter

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

Odpowiedź

Author Name

Author Email

Your question *

Preview 0 Revisions Saved
Share: