Mxx asked:
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[24044]: NOQUEUE: reject: RCPT from vps1.nonexistingdomain.com[ip address]: 554 5.1.8 <[email protected]>: Sender address rejected: Domain not found; from=<[email protected]> to=<[email protected]> 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.
My answer:
In /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
View the full question and any other answers on Server Fault.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.