sendmail configuration

Geofrey Rainey Geofrey.Rainey at tvnz.co.nz
Tue Sep 15 11:10:12 UTC 2009


Are you using mail to both receive and send, or only send?

If you're using it to only send mail, then do the following:

Go to /etc/mail, here you should find a file called submit.mc

Edit this file and update the parameter and add something like this
anywhere to the file:

define('SMART_HOST','relay.domain.com')dnl

And if there's an entry containing something like 'SMTP', '127.0.0.1'
etc, comment it out by preceding it with dnl (or removing it or
whatever).

Then type the following:

# m4 submit.mc > submit.cf

(You'll need to ensure two packages are installed for this, sendmail-cf
and m4)

If you're using sendmail to receive mail, submit sendmail.mc/cf for each
submit.mc/cf above, then restart sendmail.


-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Kalyan Sundar
Sent: Tuesday, 15 September 2009 10:58 p.m.
To: General Red Hat Linux discussion list
Subject: sendmail configuration

Hi All,
I am trying to configure sendmail on Linux server.

After the configuration the maillog show below message:

Sep 15 12:19:30 ebizrep sendmail[31924]: n8F8GoWo031924: from=root,
size=70,
class=0, nrcpts=1, msgid=<
200909150817.n8F8H5Us031927@<servername>.domain.com<200909150817.n8F8H5U
s031927@%3Cservername%3E.domain.com>>,
relay=root at localhost
Sep 15 12:19:30 ebizrep sendmail[31924]: n8F8GoWo031924:
to=<mail_id>@<domain>.com <to=%3Cmail_id%3E@%3Cdomain%3E.com>,
delay=00:02:40, mailer=esmtp, pri=30070, dsn=4.4.3, stat=queued
Sep 15 12:19:45 ebizrep sendmail[31927]: n8F8H5Us031927: from=root,
size=83,
class=0, nrcpts=1, msgid=<
200909150817.n8F8H5Us031927@<servername>.domain.com<200909150817.n8F8H5U
s031927@%3Cservername%3E.domain.com>>,
relay=root at localhost
Sep 15 12:19:45 ebizrep sendmail[31927]: n8F8H5Us031927:
to=<mail_id>@<domain>.com <to=%3Cmail_id%3E@%3Cdomain%3E.com>,
delay=00:02:40, mailer=esmtp, pri=30083, dsn=4.4.3, stat=queued
The mail status is showing as queued which makes me think that  the
sendmail
configuarion is not properly done.

how to I make the existing mail=esmtp to mailer=relay and
relay=root at localhost to relay=<smtpserver.domain.com>

I am new to this topic. Kindly give your inputs which ll be very helpful
to
proceed further.

Thanks,
Kalyan
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
==========================================================
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz 
==========================================================
CAUTION:  This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s).  This information
is not to be used or stored by any other person and/or organisation.





More information about the redhat-list mailing list