Operating System - Linux
1838894 Members
3519 Online
110131 Solutions
New Discussion

redhat ES3.0 - trying to get sendmail to work

 
Jeff Hoevenaar
Frequent Advisor

redhat ES3.0 - trying to get sendmail to work

In previous version of Redhat (7.x) I could just change 3-4 lines in the sendmail.cf file and the email would be forwarded. w/ RedHat ES 3.0 it does not appear to be that simple. I can not find any good documentation on how to configure sendmail!!

I get the following error.

WARNING: local host name (chpcpt02) is not qualified; fix $j in config file
root... Connecting to [127.0.0.1] via relay...
root... Deferred: Connection refused by [127.0.0.1]
4 REPLIES 4
HGN
Honored Contributor

Re: redhat ES3.0 - trying to get sendmail to work

Hi

The /etc/mail/sendmail.cf file needs to have a relayhost, DS$m will send to default relay host if it reachable on the network, also you can restart the service /etc/init.d/sendmail restart

Hope this helps

Rgds

Gopi
Jeff Hoevenaar
Frequent Advisor

Re: redhat ES3.0 - trying to get sendmail to work

I have changed the DS line. The sendmail daemon does not have to be running to forward email - only for recieving.

There is something different about how this version of sendmail has to be configured and i don't know what it is. I believe it has to do with the sendmail.mc file???
Andre ten Bohmer
Occasional Advisor

Re: redhat ES3.0 - trying to get sendmail to work

These are the steps I followed on a RH EL AS 3 server:

# up2date -i sendmail-cf
# cd /etc/mail
edit the sendmail.mc file
# m4 sendmail.mc > sendmail.cf
# /etc/init.d/sendmail restart

Cheers,
Andre
Stuart Browne
Honored Contributor

Re: redhat ES3.0 - trying to get sendmail to work

Yes, there is something different about the sendmail in RH8+ (including ES/AS3).

It has split the sending of email into two segments. The part which receives external, and the part that queues/sends locally generated mail.

To do either now, you need the 'sendmail' service running.

By default, the receiving part will only listen on the local host, so you can use your local system as an SMTP gateway.

It also queues the mail in different locations (/var/spool/mqueue for receiving mail, and /var/spool/clientmqueue for locally generated stuff).
One long-haired git at your service...