§2024-04-30

  1. if
alexlai@h2Jammy:~$ grep smtpd_sasl_auth_enable /etc/postfix/main.cf
# smtpd_sasl_auth_enable = yes
alexlai@h2Jammy:~$ grep smtpd_sasl_security_options /etc/postfix/main.cf
smtpd_sasl_security_options = noanonymous,noplaintext
alexlai@opi58G:~/scripts$ telnet h2jammy.yushei.net 25
Trying 59.126.118.193...
Connected to h2jammy.yushei.net.
Escape character is '^]'.
220 h2jammy.yushei.net ESMTP Postfix (Ubuntu)
EHLO yushei.me
250-h2jammy.yushei.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
AUTH PLAIN
503 5.5.1 Error: authentication not enabled
MAIL FROM: alexlai@yushei.me
250 2.1.0 Ok
RCPT TO: alexlai@h2jammy.yushei.net
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: testing # smtpd_sasl_auth_enable = yes            

Time 2024-04-30 08:53
Hi
Bye
.
250 2.0.0 Ok: queued as F22304024BDBE
^K
502 5.5.2 Error: command not recognized
quit
221 2.0.0 Bye
Connection closed by foreign host.

alexlai@h2Jammy:~$ mail 
"/home/alexlai/Maildir": 8 messages 2 new
     1 Mail Delivery Syst 日  四  28 05: 100/4157  Undelivered Mail Returned to Sender
     2 alexlai@h2Jammy.yu 日  四  28 06:  24/1167  *** SECURITY information for h2Jammy.yushei.net ***
     3 Nextcloud          日  四  28 06: 346/15798 Email setting test
     4 alexlai@h2jammy.yu 日  四  28 07:  15/596   testing h2jammy.yushei.net relay
     5 Mail Delivery Syst 日  四  28 07:  89/3642  Undelivered Mail Returned to Sender
     6 alexlai@h2jammy.yu 日  四  28 07:  24/1105  testing h2jammy.yushei.net relay
>N   7 Nextcloud          日  四  28 12: 346/15798 Email setting test
 N   8                    二  四  30 00:  12/498   testing # smtpd_sasl_auth_enable = yes
? 

  1. if,
alexlai@h2Jammy:~$ grep smtpd_sasl /etc/postfix/main.cf
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain = 
# smtpd_sasl_security_options = noanonymous,noplaintext
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = noanonymous
smtpd_sasl_auth_enable = yes