We need to accept email from a server that sends out using a non-existing domain. That server is not under my control.
In my main.cf I have
smtpd_client_restrictions = permit_mynetworks, hash:/etc/postfix/access, permit_sasl_authenticated
in /etc/postfix/access I have
<server's ip> OK vps1.nonexistingdomain.com OK
However, when I recieve messages from that server in my logs I see:
Jul 26 10:30:07 mail3 postfix/smtpd: NOQUEUE: reject: RCPT from vps1.nonexistingdomain.com[ip address]: 554 5.1.8 <email@example.com>: Sender address rejected: Domain not found; from=<firstname.lastname@example.org> to=<email@example.com> proto=ESMTP helo=<vps1.nonexistingdomain.com>
As another workaround I tried to manually hardcode this hostname:ip into my /etc/hosts, but that makes no difference.
/etc/postfix/main.cf, place the server’s IP address in mynetworks.
Example (where the IP addres is 198.51.100.43):
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 198.51.100.43
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.