Operating System - HP-UX
1839103 Members
5155 Online
110136 Solutions
New Discussion

sendmail: rejecting connections

 
SOLVED
Go to solution
Edwin Ruiz_2
Super Advisor

sendmail: rejecting connections

I can send emails via sendmail.. i have that problem
gtportal: /etc > ps -ef|grep sendmail
root 7566 2909 1 15:54:03 pts/ta 0:00 grep sendmail
root 5577 1 0 15:41:15 ? 0:00 sendmail: rejecting connections
on port 25: load average: 70
Pls Help me
11 REPLIES 11
Michael Schulte zur Sur
Honored Contributor
Solution

Re: sendmail: rejecting connections

Hi,

there is a configuration, that when the machine is too busy, sendmail will not accept connections, but I don't remember, where it is. Look into man sendmail.

Michael
Sridhar Bhaskarla
Honored Contributor

Re: sendmail: rejecting connections

Hi Edwin,

You will need to reduce the load on the box. (uptime). Make sure you don't have any processes or scripts that are causing issues.

Once it is reduced, restart sendmail. /sbin/init.d/sendmail stop; /sbin/init.d/sendmail start

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Edwin Ruiz_2
Super Advisor

Re: sendmail: rejecting connections

ok Thanks i will see...

U know? i could configure my sendmail only using DNS, i dont want to use DNS on that server.. how can i do for configure sendmail withot sendmail.. i want to use a relay host...
Sridhar Bhaskarla
Honored Contributor

Re: sendmail: rejecting connections

Hi,

Not sure if I understood your question. If you want to use relay host, then you will need to add it to the DS macro of /etc/sendmail/sendmail.cf file. Edit that file and search for DS.

You don't need to run sendmail to send mails out. Sendmail will be invoked as a client to send the mails. But to receive, you will need to have it running on the system.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff Schussele
Honored Contributor

Re: sendmail: rejecting connections

HI,

The two sendmail options that control actions under load are as follows:

O QueueLA=8

and

O RefuseLA=12

So at a load of 8 sendmail will queue messages, but attempt no delivery. At load 12 sendmail will not accept mail at all.
SO you either have to adjust these values & bounce sendmail - OR get that load down. I would prefer the latter. Find out why your load is so high & get it down into a normal range.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Edwin Ruiz_2
Super Advisor

Re: sendmail: rejecting connections

Ok!
But.. i can not send email out of my domain, like hotmail, if i have not DNS configure on my system... i want resolv only for /etc/hosts.

Pls help me
Steven E. Protter
Exalted Contributor

Re: sendmail: rejecting connections

I'd be checking overall machine performance ath this point Edwin.

A busy box can't process mail.

mailq |wc -l

Lots of stuff in the mailq

Even on a not busy box this can be a problem.

If you are doing networking via /etc/hosts and there is mail your machine thinks needs to get off the box, eventually the mail queue is going to overflow.

bdf /var

If /var is close to full, sendmail will have no place to spool mail waiting for connection.

check your scripts, especially cron and see if its sending mail off the box.

Or run a diagnostic test:

sendmail -v -d8.99 -d38.99 someone@local.address
type some text

.


If you see any evidence of dns lookup, you've got issues.

Consider relaying mail with the DS directive:

DS
[ip address of relay server]

or hostname

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

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Edwin Ruiz_2
Super Advisor

Re: sendmail: rejecting connections

If i dont use DNS on my server i get that error..

oragt01 /etc/mail >sendmail -v -d8.99 -d38.99 edruiz@taca.com
getcanonname(oragt01), trying dns
dns_getcanonname(oragt01, trymx=1)
dns_getcanonname: trying oragt01. (ANY)
NO: errno=239, h_errno=2
dns_getcanonname: trying oragt01. (A)
NO: errno=239, h_errno=2
getcanonname(oragt01), trying files
text_getcanonname(oragt01)
getcanonname(oragt01), found
seq_map_parse(aliases.files, )
openmap() dequote:dequote NULL: valid
openmap() host:host NULL: valid
getcanonname(taca.com), trying dns
dns_getcanonname(taca.com, trymx=1)
dns_getcanonname: trying taca.com. (ANY)
NO: errno=239, h_errno=2
dns_getcanonname: trying taca.com. (A)
NO: errno=239, h_errno=2
getcanonname(taca.com), trying files
text_getcanonname(taca.com)
getcanonname(taca.com), failed, status=68
taca.com: Name server timeout
edruiz@taca.com... Transient parse error -- message queued for future delivery

I can send email only using DNS.. i want to resolv with /etc/hosts
Steven E. Protter
Exalted Contributor

Re: sendmail: rejecting connections

If the mail never leaves your domain, you can send with /etc/hosts

If any of the mail is considered non-local based on machine setup, you either have to have lots of entries in /etc/hosts or do mail relay with the DS directive to a box that does have DNS.

At this point to figure out the problem I'd actually need to see /etc/hosts.

run some nslookup tests for the target domains and keep changing /etc/hosts until you get good name resolution.

Check for such things as fully qualified domain names. isn.investmenttool.com versus isn

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Edwin Ruiz_2
Super Advisor

Re: sendmail: rejecting connections

I create /etc/nsswitch.conf file on my server with that lines:

hosts: files

sendmail is wotking now...

thanks
Michael Schulte zur Sur
Honored Contributor

Re: sendmail: rejecting connections

Hi,

errno=239 is connection refused.
Have you taken a look at /etc/nsswitch.conf?

Michael