[BUGS] Sendmail as forwarder

Jerahmy Pocott quakenet1 at optusnet.com.au
Thu Jan 3 05:56:37 EST 2008


I worked out the cause of my frustrations..

On 03/01/2008, at 5:12 AM, Jerahmy Pocott wrote:

>> The "masquerade" features in Sendmail re-write the sender address
>> which,
>> I think, is what you're wanting. I have never had the need to use
>> those
>> options myself.
>> <http://www.sendmail.org/doc/sendmail-current/cf/README>
>
> Right,
>
> So I added:
>
> MASQUERADE_AS(`public.domain')
>
> to my sendmail.mc, did a make all and copied it to sendmail.cf and
> restarted sendmail. How ever it's still not working! Now in the mailq
> I have this:
>
> <user at box.local.domain>
> (Deferred: 450 4.1.8 <user at box.local.domain>: Sender address rejected:
> Domain not found)
> <quakenet1 at optusnet.com.au>
> (Deferred: 450 4.1.8 <user at box.local.domain>: Sender address rejected:
> Domain not found)

The issue was that sendmail thought it didn't need to change the  
domain because the server was a host inside the domain, that didn't  
help however since there is no DNS mapping to the server in the real  
world, just to the base domain.

So I have user at server.domain.com and I want sendmail to change it to user at domain.com 
, I tested it by changing the server to server.test.com and sendmail  
then happily mapped out going mail to domain.com. So any ideas on how  
I can get it to drop the sub-domain on the out going mail? I tried  
putting FEATURE(masquerade_entire_domain) but this had no effect. I  
also tried specifically specifying  
MASQUERADE_DOMAIN(`server.domain.com'), however this also didn't do  
anything.

Shouldn't this be fairly simple to achieve?


More information about the BUGS mailing list