Ubuntu/Postfix/Saslauthd - SASL 인증 실패: saslauthd 서버에 연결할 수 없음: 권한이 거부됨

Ubuntu/Postfix/Saslauthd - SASL 인증 실패: saslauthd 서버에 연결할 수 없음: 권한이 거부됨

2022-10-19 last update

4 minutes reading errors
이 도움말은 Ubuntu/Postfix/Saslauthd 메일 서버에서 'SASL 인증 실패: saslauthd 서버에 연결할 수 없음: 권한 거부됨' 오류 메시지를 수정하는 방법을 보여줍니다.

로그 파일에 표시된 오류 메시지


Ubuntu의 SMTP-Auth 설정이 있는 Postfix에서 메일 로그에 다음 오류가 표시됩니다.
Apr 26 10:55:19 tcc1 postfix/smtpd[21126]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Apr 26 10:55:19 tcc1 postfix/smtpd[21126]: warning: SASL authentication failure: Password verification failed
Apr 26 10:55:19 tcc1 postfix/smtpd[21126]: warning: laptop.local[192.168.1.2]: SASL PLAIN authentication failed: generic failure

해결책


postfix 사용자를 sasl 그룹에 추가합니다(이렇게 하면 Postfix가 saslauthd에 액세스할 수 있는 권한이 있는지 확인합니다):
adduser postfix sasl
그런 다음 Postfix와 Saslauthd를 다시 시작합니다.
/etc/init.d/postfix restart 
/etc/init.d/saslauthd restart
systemd가 있는 서버에서 다음을 사용하십시오.
service postfix restart
service saslauthd restart