Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2018-12-30 21:02:00
Size: 245
Editor: PieterSmit
Comment:
Revision 5 as of 2019-04-19 14:14:19
Size: 620
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Line 4: Line 3:
Line 10: Line 10:
ehlo testconnection
auth plain (base64encodedstring)
Line 12: Line 14:
 * test sasl (/etc/sasldb2 )with {{{
# sasldblistusers2
# testsaslauthd -u user -p password -f /var/spool/postfix/var/run/saslauthd/mux
}}}

 * add user to sasl {{{
saslpasswd -c -u mail.example.com -a smtpauth test
}}}

 * view postfix smtp logs using journalctl {{{
journalctl -u postfix@-.service -f
}}}

SMTP Simple mail transfer protocol

Debug smtp sasl starttls authentication

  • Connect and move to tls protected channel

    $ openssl s_client -starttls smtp -crlf -connect vigor.nz:25
    ehlo testconnection
    auth plain (base64encodedstring)
  • test sasl (/etc/sasldb2 )with

    # sasldblistusers2
    # testsaslauthd -u user -p password -f /var/spool/postfix/var/run/saslauthd/mux
  • add user to sasl

    saslpasswd -c -u mail.example.com -a smtpauth test
  • view postfix smtp logs using journalctl

    journalctl -u postfix@-.service  -f

...

smtp (last edited 2024-02-08 09:50:04 by PieterSmit)