[RHCE] [Fwd: Re: redhat /bin/mail help]

Jon Carnes rhce@trilug.org
04 Apr 2003 09:20:30 -0500


Interesting but not always true.

I've edited my sendmail.cf file manually (as is my way ;-) and it has
maintained all my manual changes through several reboots.  Also, some of
the changes I made affected sending... and I only made the changes to
the sendmail.cf file.

So my read is this: Sendmail will use the submit.cf file if present, but
anything defined in sendmail.cf over-rides submit.cf. 

My guess is that the author below, put in something that re-applies his
*.mc files with each reboot.  I'm using a stock RH8.0 install and it
blissfully leaves my manually edited files alone.

Jon

On Fri, 2003-04-04 at 08:52, Jeremy Portzer wrote:
> Some sendmail information from another list that I thought might be
> interesting to consider.  I didn't know that there was now a sendmail.cf
> and a submit.cf, for example.  Also note that these files get
> overwritten automatically on reboot, so you really DO need to make
> changes to the .mc files instead of the .cf files directly.
> 
> --Jeremy
> 
> -----Forwarded Message-----
> 
> > From: Kendall Lloyd <klloyd@mindspring.com>
> > To: lug@lists.ncsu.edu
> > Subject: Re: redhat /bin/mail help
> > Date: 02 Apr 2003 21:44:12 -0500
> > 
> >   I finally figured out the problem and I'll outline it for those who 
> > are  interested. This is from the manual errata
> > 
> > " The section on Sendmail fails to mention that Red Hat Linux 8.0 ships 
> > with Sendmail version 8.12. In this version of Sendmail, the application 
> > is split into two parts: one for receiving mail and one for sending it. 
> > The receiving application still uses /etc/mail/sendmail.cf as its 
> > configuration file. However, if present, the sending application uses 
> > /etc/mail/submit.cf as its configuration file (/etc/mail/submit.cf is 
> > installed by default under Red Hat Linux 8.0)."
> > 
> > So to fix my problem I modified the line D{MTAHost}[127.0.0.1] in 
> > submit.cf to be the ip of the mail server I wanted to use for my relay. 
> > In this case, I am running messagewall for an anti-spam server which for 
> > now can only bind to one ip. So I just set the MTAHost ip to be that of 
> > the public ip of messagewall.  Beware though, the errata also say
> > 
> > " Another important point is that the configuration files (both 
> > sendmail.cf and submit.cf) are automatically updated when the system is 
> > rebooted. This means any changes not present in the corresponding .mc 
> > files in /etc/mail will be lost."
> > 
> > So i modifed the msp line in submit.mc also.
> > 
> > Kendall
> > 
> > 
> > 
> > Michael Donaghy wrote:
> > > I'd take a guess that a sendmail daemon needs to be running so that it
> > > can delivery messages to mail servers who don't immediately accept an
> > > incoming message.  For the past several releases from Red Hat, sendmail
> > > only listens on "localhost" (127.0.0.1) in a default configuration,
> > > meaning that you aren't running a mail server as seen by the outside
> > > world.
> > > 
> > > On Sun, 2003-03-30 at 23:03, Kendall Lloyd wrote:
> > > 
> > >>  I know I must be missing something very elementary, but I cannot get 
> > >>my box to send out email unless the sendmail daemon is running. I'm on 
> > >>Red Hat 8.0 with the minimal install. I'm used to being able to do 
> > >>something like this on other systems, even without sendmail running
> > >>
> > >>echo test | /bin/mail -s "test" me@somedomain.com
> > >>
> > >>but when I do this, I get something like this instead
> > >>
> > >>Mar 30 22:48:42 hostname sendmail[869]: h2V3mgV7000869: 
> > >>to=me@somedomain.com, ctladdr=root (0/0), delay=00:00:00, 
> > >>xdelay=00:00:00, mailer=relay, pri=30040, relay=[127.0.0.1] [127.0.0.1], 
> > >>dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
> > >>
> > >>Why does /bin/mail or /usr/lib/sendmail on Red Hat 8 need the daemon to 
> > >>be running? How do I get around this?
> > >>
> > >>  I have googled and I have searched the Red Hat knowledge base to no 
> > >>avail. I've tried fiddling with the DaemonOptions in sendmail.cf and 
> > >>I've tried setting up a mailertable. I really want this to be working so 
> > >>that I can send out mail from cron jobs, but I don't want to run a mail 
> > >>daemon.
> > >>
> > >>Any help, hints, or general wisdom appreciated,
> > >>Kendall
> > > 
> > > 
> > > 
> > 
> > 
> >