Operating System - Linux
1753379 Members
5409 Online
108792 Solutions
New Discussion юеВ

Re: Sendmail problem on Linux

 
SOLVED
Go to solution
Duffs
Regular Advisor

Sendmail problem on Linux

Hi,

I have an issue getting sendmail working on RH Linux AS3.1. The sendmail-cf pkg has been installed and all neccessary files are available. Everything appears to be fine:

[root@nirs mail]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail: [ OK ]
Shutting down sm-client: [ OK ]
You have new mail in /var/spool/mail/root
[root@nirs mail]# /etc/rc.d/init.d/sendmail start
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
[root@nirs mail]# ps -ef | grep sendmail
root 4155 1 0 11:09 ? 00:00:00 sendmail: accepting connections
smmsp 4164 1 0 11:09 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root 4169 3924 0 11:09 pts/2 00:00:00 grep sendmail

However, whenever I attempt to send myself a test mail
i.e. #echo test | sendmail
the mail doesn't get sent to my relay server and hence my inbox. Can anyone tell me where the relay server gets configured? (presumably sendmail.mc but which parameter?)

Also, on updating the sendmail.cf file I get the followinf error:
[root@nirs mail]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
*** WARNING: missing -T in argument of FEATURE(`access_db', hash -o /etc/mail/access.db)
*** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER()
*** ERROR: MAILER(smtp) already included
*** ERROR: MAILER(procmail) already included
*** ERROR: MAILER(procmail) already included
*** ERROR: MAILER(smtp) already included
WARNING: confAUTO_REBUILD is no longer valid.
There was a potential for a denial of service attack if this is set.


Rgds,
D





4 REPLIES 4
Peter Godron
Honored Contributor

Re: Sendmail problem on Linux

Dermot,
the relay host is normally identified by the DS directive. Have a look for the line "Smart" relay host in the cf file.
Check the mail.log on your server to see the message arrive.
What version of sendmail are you running?
Earlier than 8.12.8?
Regards
Duffs
Regular Advisor

Re: Sendmail problem on Linux

Thats it! Cheers Peter, I was concentrating on the sendmail.mc file but setting the DS directive has effectively solved my problem.
Thanks!
Peter Godron
Honored Contributor
Solution

Re: Sendmail problem on Linux

Dermot,
always prepared to help.
Please mark the solution (;-)) and close the thread.
Thanks
Duffs
Regular Advisor

Re: Sendmail problem on Linux

The DS directive within the 'sendmail.cf' file that names the "Smart" relay host needs to be set to the necessary relay server. You must stop and start sendmail in order for it to take effect.