System Administration
Showing results for 
Search instead for 
Do you mean 

sendmail dsn=5.0.0, stat=Service unavailable message

Regular Advisor

sendmail dsn=5.0.0, stat=Service unavailable message


sendmail returned with error message in maillog file (dsn=5.0.0, stat=Service unavailable). I checked the /etc/hosts file, and added 'sendmail:localhost:allow' to /etc/hosts.allow. I still getting the same error message.
I also see the error message in /var/spool/mail/a342675 file (a342675 is the user sending e-mail).
----- Transcript of session follows -----
... while talking to gyrelay:
>>> MAIL From: SIZE=570
<<< 554 Mail from a342675@faya4l2.fay.goodyear.com rejected for policy reasons.
554 5.0.0 Service unavailable
I know sendmail port 25 is up running, also the sendmail daemon.
[root@faya4l2 mail]# netstat -alpn |grep sendmail
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 937/sendmail: accep
unix 2 [ ] DGRAM 1623925 937/sendmail: accep
[root@faya4l2 mail]#

[root@faya4l2 mail]# ps -ef | grep sendmail
root 937 1 0 16:17 ? 00:00:00 sendmail: accepting connections
smmsp 946 1 0 16:17 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

Thanks for any reply.

take easy, enjoy life
3 REPLIES
Honored Contributor Honored Contributor

Re: sendmail dsn=5.0.0, stat=Service unavailable message

Are you running any milters (check for X lines in your sendmail.cf)? If you are, and they aren't running, you'll get this error.

That being said, the 'for policy reasons' is interesting. What does your '/etc/mail/access' say?
One long-haired git at your service...
Regular Advisor

Re: sendmail dsn=5.0.0, stat=Service unavailable message

The contents of /etc/mail/access file.
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY


I have another system and the sendmail works.
I copied the sendmail.cf file from the working system, and still failed.

Below is from maillog file

1PFTC1T032535: m1PFTH1T032537: DSN: Service unavailable
take easy, enjoy life
Regular Advisor

Re: sendmail dsn=5.0.0, stat=Service unavailable message

It is fixed, after I add correctly fully qualified domain name in /etc/hosts file.

Thanks.
take easy, enjoy life