I got a third-party application running on localhost
trying to send mails with postfix via smtp on the same machine. The problem is that postfix seems to refuse mails to some recipients:
Content of /var/log/mail
Sep 1 00:05:35 myhost postfix/smtpd[20574]: connect from localhost[127.0.0.1]
Sep 1 00:05:35 myhost postfix/smtpd[20574]: B70E59A050: client=localhost[127.0.0.1]
Sep 1 00:05:35 myhost postfix/smtpd[20574]: lost connection after DATA (0 bytes) from localhost[127.0.0\
.1]
Meanwhile the sending application says:
cannot send mail to recipient@... please check connectivity
This error only happens with some recipients.
I checked my main.cf
:
mynetworks = 127.0.0.1/32, 192.76.247.2/32, 192.76.247.3/32, 192.76.247.4/32
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
Is there anything I missed? Or is there any other setting to restrict recipients?
Running postconf, mail_version = 2.9.4
on SLES11 SP3
Sending mails to the same domains using
echo "test" | mail -s "test" notworking@domain.com
works without problems.
TCP dump output
11 0.001483 127.0.0.1 127.0.0.1 SMTP 107 C: RCPT TO:myrec@domain.de>
12 0.002311 127.0.0.1 127.0.0.1 SMTP 80 S: 250 2.1.5 Ok
13 0.002485 127.0.0.1 127.0.0.1 SMTP 72 C: DATA
14 0.002555 127.0.0.1 127.0.0.1 SMTP 103 S: 354 End data with <CR><LF>.<CR><LF>