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

Jeremy Portzer rhce@trilug.org
04 Apr 2003 08:52:43 -0500


--=-DudkSzntvo1JWZGzLpTN
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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
>=20
>   I finally figured out the problem and I'll outline it for those who=20
> are  interested. This is from the manual errata
>=20
> " The section on Sendmail fails to mention that Red Hat Linux 8.0 ships=20
> with Sendmail version 8.12. In this version of Sendmail, the application=20
> is split into two parts: one for receiving mail and one for sending it.=20
> The receiving application still uses /etc/mail/sendmail.cf as its=20
> configuration file. However, if present, the sending application uses=20
> /etc/mail/submit.cf as its configuration file (/etc/mail/submit.cf is=20
> installed by default under Red Hat Linux 8.0)."
>=20
> So to fix my problem I modified the line D{MTAHost}[127.0.0.1] in=20
> submit.cf to be the ip of the mail server I wanted to use for my relay.=20
> In this case, I am running messagewall for an anti-spam server which for=20
> now can only bind to one ip. So I just set the MTAHost ip to be that of=20
> the public ip of messagewall.  Beware though, the errata also say
>=20
> " Another important point is that the configuration files (both=20
> sendmail.cf and submit.cf) are automatically updated when the system is=20
> rebooted. This means any changes not present in the corresponding .mc=20
> files in /etc/mail will be lost."
>=20
> So i modifed the msp line in submit.mc also.
>=20
> Kendall
>=20
>=20
>=20
> 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.
> >=20
> > On Sun, 2003-03-30 at 23:03, Kendall Lloyd wrote:
> >=20
> >>  I know I must be missing something very elementary, but I cannot get=20
> >>my box to send out email unless the sendmail daemon is running. I'm on=20
> >>Red Hat 8.0 with the minimal install. I'm used to being able to do=20
> >>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:=20
> >>to=3Dme@somedomain.com, ctladdr=3Droot (0/0), delay=3D00:00:00,=20
> >>xdelay=3D00:00:00, mailer=3Drelay, pri=3D30040, relay=3D[127.0.0.1] [12=
7.0.0.1],=20
> >>dsn=3D4.0.0, stat=3DDeferred: Connection refused by [127.0.0.1]
> >>
> >>Why does /bin/mail or /usr/lib/sendmail on Red Hat 8 need the daemon to=
=20
> >>be running? How do I get around this?
> >>
> >>  I have googled and I have searched the Red Hat knowledge base to no=20
> >>avail. I've tried fiddling with the DaemonOptions in sendmail.cf and=20
> >>I've tried setting up a mailertable. I really want this to be working s=
o=20
> >>that I can send out mail from cron jobs, but I don't want to run a mail=
=20
> >>daemon.
> >>
> >>Any help, hints, or general wisdom appreciated,
> >>Kendall
> >=20
> >=20
> >=20
>=20
>=20
>=20
--=20
/=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\
| Jeremy Portzer       jeremyp@pobox.com       trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D/

--=-DudkSzntvo1JWZGzLpTN
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA+jY4rb5/3vMwae5IRAlbBAJ4+lG9ppLarS1bVcp673VMG9LWunwCfSXTl
nV1IKJS2QL4B8P/aBEmQIAI=
=vSor
-----END PGP SIGNATURE-----

--=-DudkSzntvo1JWZGzLpTN--