Postfix: How to accept email from a specific non-existing domain?

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 I have

smtpd_client_restrictions       = permit_mynetworks,

in /etc/postfix/access I have

<server's ip>                 OK         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[ip address]: 554 5.1.8 <[email protected]>: Sender address rejected: Domain not found; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<>

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/, place the server’s IP address in mynetworks.

Example (where the IP addres is

mynetworks = [::ffff:]/104 [::1]/128

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.