1847093 Members
6210 Online
110262 Solutions
New Discussion

Re: sendmail

 
Diego Fernandez
Regular Visitor

sendmail

sendmail: rejecting connections on port 25
7 REPLIES 7
Antoanetta Naghiu
Esteemed Contributor

Re: sendmail

If you had properly configured sendmail (see for hepl lots of other posts about that, there in forum), check /etc/services if
smtp 25/tcp line is a valid line (not comment out or missed) and recycle inetd daemon. (inetd.conf -c).
Hope this helps.
Anthony deRito
Respected Contributor

Re: sendmail

Silly question, but do you have a line in your /etc/services file that looks like this:

smtp 25/tcp # Simple Mail Transfr Protocol

If you are using NIS, can you run the command:

ypcat services | grep smtp

and get back the above string?

Tony
CHRIS_ANORUO
Honored Contributor

Re: sendmail

If you mistakenly put a hash in front of the line "smtp 25/tcp", in /etc/services, uncomment it and run inetd -c
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Kofi ARTHIABAH
Honored Contributor

Re: sendmail

It's possible that sendmail is not running on the receiving server...you can check by

# netstat -an | grep "\.25" | grep LISTEN

you should get a line that looks like:

tcp 0 0 *.25 *.* LISTEN

if not, you may have to start sendmail by

#/sbin/init.d/sendmail start

then check again to see that it is running.

You might want to check the /var/adm/syslog/mail.log for any tell-tale messages.

Good luck
nothing wrong with me that a few lines of code cannot fix!
Diego Fernandez
Regular Visitor

Re: sendmail

thank you!
Alan Riggs
Honored Contributor

Re: sendmail

If the posters above solved your problem, please reward their efforts with some points.
Berlene Herren
Honored Contributor

Re: sendmail

Diego, if sendmail is rejecting connections, then that may mean your system is too busy for sendmail to work. You can adjust sendmail by setting the following in the sendmail.cf and then stopping/restarting sendmail.

Queue-Only Load Average
In order to limit load on a very busy system, sendmail can be configured to queue up low priority messages rather than attempt delivery immediately if the five-minute load average is greater than some integer value, by default 8. This value is defined on the line beginning O QueueLA:
# load average at which we just queue messages
#O QueueLA=8 >> double to 16

Refuse-Connections Load Average
In order to limit load on a very busy system, the sendmail daemon can be configured not to accept SMTP connections if the five- minute load average is greater than some integer value, by default 12. This value is defined on the line beginnin O RefuseLA:
# load average at which we refuse connections
#O RefuseLA=12 >> double to 24


/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

ps -ef | grep sendmail

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm