LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   sendmail, messages bouncing, Domain of sender address does not exist (https://www.linuxquestions.org/questions/linux-server-73/sendmail-messages-bouncing-domain-of-sender-address-does-not-exist-4175650511/)

mfoley 03-19-2019 05:45 PM

sendmail, messages bouncing, Domain of sender address does not exist
 
I have a problem that just started since installing a Sonicwall firewall, although I don't see how that would affect this problem. Possibly coincidence.

I'm sending message from a server on our office LAN. They are failing with the following message:
Code:

  ----- The following addresses had permanent fatal errors -----
<jfdadsf@att.net>
    (reason: 553 5.1.8 <hprsportal@webserver.hprs.local>... Domain of sender address portal@webserver.hprs.local does not exist)

The address shown is the local LAN address of this server. The public address is webserver.ohprs.org. In my sendmail.cf file I have:
Code:

define(`SMART_HOST',`mail.hprs.local')dnl
dnl MASQUERADE_AS(`ohprs.org')
dnl FEATURE(`masquerade_envelope')
dnl FEATURE(`masquerade_entire_domain')

The webserver host is sending via a local SMART_HOST relay. I have all the masquerades turned on.

Why is it going out with webserver.hprs.local and not simply ohprs.org or even webserver.ohprs.org?

mfoley 03-19-2019 05:56 PM

Doh! I see now that I have dnl ahead of the masquerade statments! I've removed that and will monitor the emails to see if they're going through now.

I don't know why I commented those lines out in the first place. I didn't make a comment about it. I guess I find out why the hard way.

Later ...

Yup, uncommenting the masquerades seems to have fixed the problem.

"Stupid is as stupid does." --Forest Gump


All times are GMT -5. The time now is 12:54 PM.