ingenito
asked on
Sendmail not working
Hello,
I am trying to set up Sendmail on Linux 9. It is installed correctly and running. When I type
service sendmail status
I get
sendmail (pid 29918) is running...
I am trying to just connect to the server by doing a 'telnet localhost 25' and this is not working. I get a:
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
So if I stop and start sendmail I get this error:
ns1:/etc/mail # service sendmail stop
Shutting down sendmail: [ OK ]
Shutting down sm-client: [FAILED]
ns1:/etc/mail # service sendmail start
Starting sendmail: 554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[FAILED]
Starting sm-client: [ OK ]
I am not sure what this message means. Also, my /etc/mail/sendmail.cf is zero length. Is this the problem? If I try to do 'make -C /etc/mail' nothing changes, the file is still zero length. Thanks.
I am trying to set up Sendmail on Linux 9. It is installed correctly and running. When I type
service sendmail status
I get
sendmail (pid 29918) is running...
I am trying to just connect to the server by doing a 'telnet localhost 25' and this is not working. I get a:
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
So if I stop and start sendmail I get this error:
ns1:/etc/mail # service sendmail stop
Shutting down sendmail: [ OK ]
Shutting down sm-client: [FAILED]
ns1:/etc/mail # service sendmail start
Starting sendmail: 554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[FAILED]
Starting sm-client: [ OK ]
I am not sure what this message means. Also, my /etc/mail/sendmail.cf is zero length. Is this the problem? If I try to do 'make -C /etc/mail' nothing changes, the file is still zero length. Thanks.
ASKER
The file is still zedro length. Here is the error:
ns1:/etc/mail # m4 ./sendmail.mc > ./sendmail2.cf
./sendmail.mc:10: m4: Cannot open /usr/share/sendmail-cf/m4/ cf.m4: No such file or directory
I read something about needing sendmail-cf installed which it appears I do not. Where can I dowload the code from? Thanks.
ns1:/etc/mail # m4 ./sendmail.mc > ./sendmail2.cf
./sendmail.mc:10: m4: Cannot open /usr/share/sendmail-cf/m4/
I read something about needing sendmail-cf installed which it appears I do not. Where can I dowload the code from? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks jlevie!
This is a problem. Try:
cd /etc/mail
touch sendmail.mc
make
and see if you have a non-zero length sendmail.cf. If sendmail.cf looks reasonable (somethin on the order of 55kb or so) execute:
killall sendmail
service sendmail start
However, if sendmail.cf is still zero length I'd guess there's some problem with your sendmail.mc that is causing m4 to abort when trying to build sendmail.mc. To see what the error is execute:
cd /etc/mail
m4 sendmail.mc >sendmail.cf
and post the errors here.