Glynn Clements writes:
 > 
 > Chris Buenger wrote:
 > 
 > > i try to send mail trough a sendmail server to my isp. sendmail runs on 
 > > a suse 6.1 (2.2.10) box. my isp�s mail server rejects msgs -> sender 
 > > name must resolve
 > > 
 > > q: how to masquerade the relayed msgs?
 > 
 > Set the DM line in sendmail.cf accordingly:
 > 
 >      # who I masquerade as (null for no masquerading) (see also $=M)
 >      DM valid.domain.com

As I also had to discover by trial and error, be sure to list the
domain name that you want to masquerade as in your /etc/hosts file
with a valid IP address.  If you don't, the DM valid.domain.name will
not get used as you expect.

For example, I have my mail routed to a catchall machine answering to
thrillseeker.net.  I set DMthrillseeker.net, however my local hostname
on my own internal lan is rhino.  If I send mail without
thrillseeker.net defined in my /etc/hosts pointing back to my assigned
IP address (this is a cable modem), i.e. I let named resolve it to the
real world thrillseeker.net, then the outbound name always resolves to
rhino.thrillseeker.net, which is not in anyone's tables.

Example:

 Jul 5 18:08:20 rhino sendmail[724]: SAA00724: from=root, size=45,
 class=0, pri=30045, nrcpts=1,
 msgid=<[EMAIL PROTECTED]>,
 relay=root@localhost

 Jul 5 18:08:21 rhino sendmail[729]: SAA00724:
 [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:04,
 xdelay=00:00:01, mailer=esmtp, relay=web73.ntx.net. [209.1.144.182],
 stat=Deferred: 451 <[EMAIL PROTECTED]>... access denied,
 <rhino.thrillseeker.net> does not resolve in DNS

It works fine for me to put thrillseeker.net pointing back to me.
Then the outbound name resolves via the /etc/hosts, and I get what I
want:

 Jul 5 18:12:41 rhino sendmail[742]: SAA00742: from=root, size=45,
 class=0, pri=30045, nrcpts=1,
 msgid=<[EMAIL PROTECTED]>, relay=root@localhost

 Jul 5 18:12:42 rhino sendmail[747]: SAA00742:
 [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:05,
 xdelay=00:00:01, mailer=esmtp, relay=web73.ntx.net. [209.1.144.182],
 stat=Sent (PAA11511 Message accepted for delivery)

Perhaps this is logical to others, but to me if I put
DMthrillseeker.net, then the machine should put that on the outbound
msgid without question.  Why else would I list it in the sendmail.cf?

Billy

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to