postfix

Postfix tips

Postfix freebsd cron problem

Once you install postfix on your freebsd box, you might notice the following problem.

In /var/log/maillog:

Jul 20 00:35:00 jenova postfix/sendmail[49605]: fatal: munin(842): No recipient addresses found in message header

In /var/log/cron:

Jul 20 11:05:00 jenova cron[53366]: NSSWITCH(_nsdispatch): nis, passwd_compat, endpwent, not found, and no fallback provided

Edit /etc/nsswitch.conf

group: files
passwd: files

IP adress reputation

Learn about one IP adress reputation : http://multirbl.valli.org/ .

Send a mail using telnet

Send a mail using telnet

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 jenova.nogafa.org ESMTP Postfix (NOGAFA)
helo www.com
250 jenova.nogafa.org
mail from: test1234@nogafa.org
250 2.1.0 Ok
rcpt to: test1234@nogafa.org
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
test1807
.
250 2.0.0 Ok: queued as 54A2D5E0002E
quit
221 2.0.0 Bye
Connection closed by foreign host.

Test tls with openssl

openssl s_client –tls1_3 -starttls smtp -crlf -connect 127.0.0.1:587