My organization uses internal.com as our internal domain name. So the Postfix relay server is serverX.internal.com. I need my mail to go out as having come from the example.com domain, e.g. serverX.example.com.
In my config file I have defined "myorigin = $mydomain" and then "mydomain = serverX.example.com".
Yet, message headers are showing on the next smtp server as:
Received: from serverX.internal.com (serverX.internal.com [#.#.#.#]) by serverY.example.com (serverY.example.com) with SMTP id E2.A9.14253.7F16DBF5; Tue, 24 Nov 2020 14:41:43 -0500 (EST)
The problem is that the mail is being labeled as SPAM because internal.com has been registered by someone else and it is on some SPAM blacklists.
How can I make sure that my mail headers show the message as coming from serverX.example.com rather than from serverX.internal.com?
Any help is greatly appreciated.
In my config file I have defined "myorigin = $mydomain" and then "mydomain = serverX.example.com".
Yet, message headers are showing on the next smtp server as:
Received: from serverX.internal.com (serverX.internal.com [#.#.#.#]) by serverY.example.com (serverY.example.com) with SMTP id E2.A9.14253.7F16DBF5; Tue, 24 Nov 2020 14:41:43 -0500 (EST)
The problem is that the mail is being labeled as SPAM because internal.com has been registered by someone else and it is on some SPAM blacklists.
How can I make sure that my mail headers show the message as coming from serverX.example.com rather than from serverX.internal.com?
Any help is greatly appreciated.