[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Sendmail configuration question
- From: Bob McClure Jr <robertmcclure earthlink net>
- To: redhat-install-list redhat com
- Subject: Re: Sendmail configuration question
- Date: Sun, 19 May 2002 14:07:30 -0500
On Sun, May 19, 2002 at 10:58:28AM -0700, Mark Champion wrote:
> I'm a little confused. In my /etc/hosts file, it specifically tells me not
> to change the first line
>
> 127.0.0.1 localhost.localdomain localhost
That is correct. You need that line.
> I have added an additional line that contains my ip address and my fqdn.
> That's ok, right?
That's absolutely correct.
> I don't think I've edited /etc/sendmail.cf, but I did edit
> /etc/mail/sendmail.mc and added
>
> DMhomeip.net - where homeip.net is my domain name (without my
> machine name).
>
> That solved another problem is was having.
Hmm. I presume that is a known domain. You are saying you are
masquerading as that domain.
> I have not edited /etc/mail/local-host-names. It contains only the original
> commented line
>
> # local-host-names - include all aliases for your machine here
That is OK.
> I can send mail to most other email addresses without problem. I just have
> a problem
> with this one email address.
>
> mchampion bigfoot com
This may be where you need to get friendly with the .mc file that was
the source for the sendmail.cf. Your _envelope_ return address is
probably <your_username>@<machine_name>.homeip.net, and some MTAs are
not buying it. I had the same problem.
First, make sure you have, or get the sendmail-cf package. The .mc
file you need is /usr/share/sendmail-cf/cf/redhat.mc. That's what
generated your /etc/sendmail.cf. I'd leave it alone and copy it to
myown.mc, or whatever you want to call it.
First a note about the .mc file: the 'dnl' string is a comment
delimiter.
Add the line
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
If the "DM..." line, above really worked, then you should also make
sure there is a line:
MASQUERADE_AS(homeip.net)
It will generate the line you want in the .cf file. Then generate the
myown.cf file:
./Build myown.cf
Now go to the /etc/mail directory and create or add to the file
"genericstable" with the line
<your_uid> mchampion bigfoot com
That will tell sendmail to translate your local userid in the
_envelope_ "from" address to a known email address.
Then save off the existing /etc/sendmail.cf. You may need to back up
to it.
cd /etc
cp -p sendmail.cf sendmail.cf.works_mostly
Copy your new .cf into place:
cp /usr/share/sendmail-cf/cf/myown.cf sendmail.cf
And restart sendmail:
/etc/init.d/sendmail restart
If you have a problem, restore the old sendmail.cf and restart
sendmail. Otherwise, try it out.
There is a whole world of info about the .mc file in
/usr/share/doc/sendmail/README.cf from the sendmail-doc package.
Cheers,
--
Bob McClure, Jr. | We have enough youth.
Bobcat Open Systems, Inc. | How about a fountain of SMART?
robertmcclure earthlink net |
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]