Sending Email From random hostname

I am trying to send email from my webserver to email server via phpmail.

The webserver has a random hostname e,g abc.examplehost.net

The problem is that postfix on my email server rejects to receive these emails saying;

Domain not found 450

Considering I don't want to change hostname of my webserver. How can I make the emailserver let these emails go through without much compromise on security.

I'll truly appreciate some help here.

1 Reply

Check your Postfix configuration, in particular the smtpdsenderrestrictions setting. Does it include one (or both) of the rejectunknownsenderdomain or rejectunverified_sender options?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct