On Sun, Apr 23, 2000 at 05:18:32PM -0400, Glenn Bajana wrote:
> 
> Is this a Sendmail thing to be fixed, a /etc/resolv.conf or
> /etc/hostname issue? I've tried looking into Olaf Kirch's book, but I
> found no answer.

    If you're using sendmail as your MTA, then it's most probably replacing
your configured hostname on the way out. You need to set up sendmail to
masquerade as your ISP. 

Note: This fix is RedHat5.2-centric, transposition to your
distribution is up to you:

I suggest you add these 3 lines to /usr/lib/sendmail-cf/cf/redhat.mc

MASQUERADE_AS(iaw.on.ca)
FEATURE(masquerade_envelope)
define(`SMART_HOST',`mail.iaw.on.c')

Then rebuild redhat.cf with "m4  ../m4/cf.m4 redhat.mc > redhat.cf"

Save a copy of your /etc/sendmail.cf, install redhat.cf as
/etc/sendmail.cf, and restart sendmail.

The MASQUERADE_AS line tells sendmail to claim that the mail is coming
from the iaw.on.ca domain. FEATURE(masquerade_envelope) enables the
masquerade_envelope feature, and the definition of SMART_HOST tells
sendmail to send all non-local mail to your ISP's mailer. Your ISP's
mailer should relay mail to the destination for you. Many systems will
do a DNS lookup on your IP address, and reject mail if it looks funny
- there's even a world-wide list of IPs connected to modems that gets
rejected. Let your ISP's mailer do the work for you.

    Cheers,

    Mike

Reply via email to