James Pifer:
> I've setup a postfix server as a closed relay to only deliver/forward
> email for my domain. I believe I have everything working as desired,
> except for what is getting logged.
>
> If I connect to postfix with a portable mail client on my local network
> and send a message through it, I see the connection in the logs. For
> example:
>
> Oct 25 13:55:29 server2 postfix/smtpd[3146777]: connect from
> unknown[10.10.5.27]
> Oct 25 13:55:29 server2 postfix/smtpd[3146777]: 424B7407AB55:
> client=unknown[10.10.5.27]
> Oct 25 13:55:29 server2 postfix/cleanup[314611]: 424B7407AB55:
> [email protected]
> Oct 25 13:55:29 server2 postfix/qmgr[3146764]: 424B7407AB55:
> [email protected], size=643, nrcpt=1 (queue active)
> Oct 25 13:55:29 server2 postfix/smtpd[3146777]: disconnect from
> unknown[10.10.5.27] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
> Oct 25 13:55:29 server2 postfix/relay/smtp[314612]: 424B7407AB55:
> [email protected], relay=10.10.5.18[10.10.5.18]:25, delay=0.35,
> delays=0.08/0.03/0.01/0.23, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued
> as 6D107BDB67F3)
> Oct 25 13:55:29 server2 postfix/qmgr[3146764]: 424B7407AB55: removed
>
> When email is coming in from the outside, whether it is rejected or
> successful, I get no log information. Maybe it's because my internal
> connection is client=unknown? I cn't tell what is being rejected,
> because none of it is logged.
Then the answer is easy: the remote SMTP client is not connecting to Postfix,
but to some other MTA.
Try to connect manually from outside to port 25 (telnet, nc) and
see how the server identifies itself. It should look like this:
$ nc mail.example.com 25
220 mail.example.com ESMTP Postfix
wietse