[NTLUG:Discuss] basic sendmail question/help
MadHat
madhat at unspecific.com
Wed Sep 8 08:08:50 CDT 1999
m m wrote:
>
> Hi MadHat:
>
> >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...
>
> this is what I added in inetd.conf on both boxes:
> "smtp stream tcp nowait root /usr/bin/tcpd sendmail -v"
> I do not know which way i did, I just follow the book.
> would you tell me the difference between two different
> programs?
>
I wasn't thinking, some distros come with an entry for smtpd (it just
handles incoming mail and the calls sendmail to deliver it. It is
usually used for security). I didn;t know you had used sendmail in the
inetd.conf. That should be OK.
> I think that I do not care which way to, as long as it works,
> either one is ok to me.
>
Agreed
> >
> > > 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).
>
> unfortunately, I did. i just add those 2 to the end of localhost, of course,
> there space in between. I have try add on both host names on both boxes or
> aaa.my.com on A box, bbb.my.com on B box)
>
I am not 100%, but I would add these to the file /etc/sendmail.cw, one
on each line and only include the names that you want that machine to
receive mail for. So you don't have the same names on both machines.
What this does is tell the machine what mail to accept as it's own and
what to pass on to another box.
> >
> > > 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...
> again, I did lik I put the host name on buth boxes. likeaaa.my.com on A box,
> bbb.my.com on B box
This isn't related to the troubles you are having.
>
> > > 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?..
>
> yeh, I should provide more detail.
>
> The only 2 files I have edited are /etc/sendmail.cf and /etc/inetd.conf, I
> did the same on bothe machines.
>
> I think after installing the Linux (RH6.0), almost basic settings was
> done/configurated automatically. since the sendmail.cf also been generated,
> I just ignore the m4 part, think edit sendmail.cf will do
> basic work. am i wrong?
No, you are not wrong.
The main part that I see right now is the cw lines. I usually use the
/etc/sendmail.cw file, but if you choose not to, have each one on its
own line like:
Cwlocalhost
Cwaaa.my.domain
--
MadHat
More information about the Discuss
mailing list