wikiv3:postfix_sasl
Table of Contents
Autenticação SASL
# postconf -e "smtpd_sasl_type = dovecot" # postconf -e "smtpd_sasl_path = private/auth" # postconf -e "smtpd_sasl_auth_enable = yes"
# systemctl reload postfix
Método login
root@mail:~# perl -MMIME::Base64 -e 'print encode_base64("bob\@exemplo.org");' Ym9iQGV4ZW1wbG8ub3Jn
root@mail:~# perl -MMIME::Base64 -e 'print encode_base64("123456");' MTIzNDU2
root@mail:~# telnet mail.exemplo.org 25 Trying 198.51.100.240... Connected to mail.exemplo.org. Escape character is '^]'. 220 Bem Vindo - mail.exemplo.org EHLO mail.exemplo.org 250-mail.exemplo.org 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN AUTH LOGIN 334 VXNlcm5hbWU6 Ym9iQGV4ZW1wbG8ub3Jn 334 UGFzc3dvcmQ6 MTIzNDU2 235 2.7.0 Authentication successful quit 221 2.0.0 Bye Connection closed by foreign host.
Método plain
root@mail:~# perl -MMIME::Base64 -e 'print encode_base64("\000bob\@exemplo.org\000123456");' AGJvYkBleGVtcGxvLm9yZwAxMjM0NTY=
root@mail:~# telnet mail.exemplo.org 25 Trying 198.51.100.240... Connected to mail.exemplo.org. Escape character is '^]'. 220 Bem Vindo - mail.exemplo.org HELO mail.exemplo.org 250 mail.exemplo.org AUTH PLAIN 334 AGJvYkBleGVtcGxvLm9yZwAxMjM0NTY= 235 2.7.0 Authentication successful quit 221 2.0.0 Bye Connection closed by foreign host.
wikiv3/postfix_sasl.txt · Last modified: by 127.0.0.1
