[NTLUG:Discuss] basic sendmail question/help

MadHat madhat at unspecific.com
Tue Sep 7 09:08:55 CDT 1999


m m wrote:
> 
> Hi All:
> 
> Could anyone help me to set up sendmail?
> my question is pretty simple:
> I have two Linux box connected.
> A) hostname: aaa.my.com    ip: 192.168.0.1
> B) hostname: bbb.my.com    ip: 192.168.0.2
> I set gateway ip 192.168.0.1 (aaa box)
> it is ok on telnet, Apache server...
> For configuring sendmail, I
> 1. add "smtp stream ...." in the etc/inetd on both boxes.

are you running sendmail from inetd or trying to run smtpd from inetd,
these are 2 completely different programs.   I usually run Sendmail as a
standalone daemon (and depending on the distro comes set up that way),
but...

> 2. add aaa.my.com bbb.my.com to Cwlocalhost in etc/sendmail.cf

to which box?  If you did this on both boxes, it will be dilivered
locally. (I am assuming that you didn't just add those 2 to the end of
localhost).

> 3. add aaa.my.com to DM in etc/sendmail.cf

This is masquerading and wouldn't need to be done, unless aaa.my.com is
not the name of the box.  I am not sure if you did this to both boxes or
not...

> 4. add aaa.my.com to DS in etc/sendmail.cf
> (actually it does not work whether I do 2. 3. 4. or not)
> 
> but I can not send mail from
> xxx at aaa.my.com to yyy at bbb.my.com
> How do I achieve it?
> 
> Any suggestion?

More details might be needed.  What distro?  Which files on which boxes
were edited?

-- 
MadHat




More information about the Discuss mailing list