> -----Original Message-----
> From: Jake Colman [mailto:colman@;ppllc.com]
> Sent: Wednesday, October 23, 2002 11:30 AM
> To: RedHat List
> Cc: Edward Dekkers
> Subject: Re: mail configuration problem
> 
> 
> 
>     >> For postfix, you just set the "mydomain = " field to 
>        the domain name in question.
> 
>     ED> For sendmail add:
> 
>     ED> MASQUERADE_AS(`<your host/domain name here>')
> 
>     ED> To the sendmail.mc, then run 'm4 /etc/sendmail.mc > 
> /etc/sendmail.cf'
> 
> I added MASQUERADE_AS to my .mc file, regenerated the .cf 
> file and restarted sendmail.
> 
> My email is still being rejected with the same error "domain
> of sender address does not exist".  Even with the MASQUERADE_AS,
> the server receiving my email still sees the actual domain name
> in use on my server which is bogus and not resolvable.  Shouldn't
> MASQUERADE_AS tricked it so it looks like it came from somewhere
> else?

No, the MASQUERADE_AS changes the sender address of the envelope, not the
hostname (FQDN) your system announces itself as during the HELO handshake.

You seem to have a couple of choices here:

1) Change the hostname of your system to something that can be resolved in
DNS?

2) Change sendmail config so that it announces itself as a resolvable system
during the HELO. Which may or may not work. Some e-mail systems are
configured so tight that they will see this config change as a spoof
attempt. 

Anyway, a couple of related options from the sendmail cf/README file.

M4 Variable Name        Configuration   Description & [Default]
================        =============   =======================
confMAILER_NAME         $n macro        [MAILER-DAEMON] The sender name used
                                        for internally generated outgoing
                                        messages.
confDOMAIN_NAME         $j macro        If defined, sets $j.  This should
                                        only be done if your system cannot
                                        determine your local domain name,
                                        and then it should be set to
                                        $w.Foo.COM, where Foo.COM is your
                                        domain name.

Based on your post, I would think the DOMAIN_NAME option is what you need.

If I were in your shoes, I would first type:

dig -x <ip addr of your system>

If it returns the reverse name, then use that FQDN for the $j macro above.
It dig does not return a reverse name, then your basically SOL until your
get with your network admin, ISP or whatever to resolve this problem.

Another useful command to view sendmail's hostname (or what it derived at
startup) is:
# sendmail -bt -d0.1 </dev/null

Good luck
Steve Cowles



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to