Operating System - HP-UX
1827824 Members
2022 Online
109969 Solutions
New Discussion

Problem connections with sendmail

 
Jairo Campana
Trusted Contributor

Problem connections with sendmail

Hello, I have a problem with sendmail version 8.13.1, the basic problem is that I lose connection to por smtp randomly

the sendmail its runing and up.
the card network its up and respons, no error in car, no error in switch and ouput debug

*************************************
telnet 10.1.1.11 25
nothing -->no response
***********************************
telnet 10.1.1.11 25
220 ESMTP only users authorized for server turbo
***************************************
ramdonly response automatic..


the number of conecctions is good

Is a server for relay smtp

Regards

legionx
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: Problem connections with sendmail

mailq

is mail queuing and not geting on the box.

sendmail -v -q

process the mail queue.

ps -ef | grep sendmail

Is the daemon running?
/etc/rc.config.d/mailservs

Is the SENDMAIL_SERVER=0 or 1

1 means start sendmail.

To manually start the daemon.

/sbin/init.d/sendmail start



Diagnostics:

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

.


good diagnostics.

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
Jairo Campana
Trusted Contributor

Re: Problem connections with sendmail

sendmail runing in solaris 8 when made truss
obtaing:

poll(0xFFBED020, 1, 5000) Err#91 ERESTART
legionx
Jairo Campana
Trusted Contributor

Re: Problem connections with sendmail

/usr/lib/sendmail -v -q
Warning: .cf file is out of date: sendmail 8.13.1 supports version 10, .cf file is version 9

SENDMAIL_SERVER=1

ps -ef | grep sendmail
root 11316 10295 0 16:05:12 ? 0:00 /usr/lib/sendmail -bd -q1h
root 11400 10295 0 16:06:03 ? 0:00 /usr/lib/sendmail -bd -q1h
root 11346 10295 0 16:05:42 ? 0:00 /usr/lib/sendmail -bd -q1h
root 11361 10295 0 16:05:52 ? 0:00 /usr/lib/sendmail -bd -q1h
.......
ps -ef|grep sendmail|wc -l|grep -v grep
107


/usr/lib/sendmail -v -d8.99 -d38.99 someone@some.net
openmap() dequote:dequote NULL: valid
openmap() host:host NULL: valid
getcanonname(some.net), trying files
text_getcanonname(some.net)
getcanonname(some.net), trying dns
dns_getcanonname(some.net, trymx=1)
dns_getcanonname: trying some.net. (AAAA)
;; res_nquerydomain(some.net, , 1, 28)
;; res_query(some.net., 1, 28)
;; res_nmkquery(QUERY, some.net., IN, AAAA)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52186
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; some.net, type = AAAA, class = IN
;; Querying server (# 1) address = 200.10.122.10
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52186
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; some.net, type = AAAA, class = IN
some.net. 3H IN SOA dns.alloy.net. postmaster.alloy.net. (
6 ; serial
30M ; refresh
15M ; retry
3D ; expiry
1D ) ; minimum

;; rcode = 0, ancount=0
NO: errno=19, h_errno=4
dns_getcanonname: trying some.net. (A)
;; res_nquerydomain(some.net, , 1, 1)
;; res_query(some.net., 1, 1)
;; res_nmkquery(QUERY, some.net., IN, A)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52187
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; some.net, type = A, class = IN
;; Querying server (# 1) address = 200.10.122.10
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52187
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4
;; some.net, type = A, class = IN
some.net. 1D IN A 65.75.10.34
some.net. 19h31m26s IN NS dns.ntplx.net.
some.net. 19h31m26s IN NS dns2.ntplx.net.
some.net. 19h31m26s IN NS dns3.ntplx.net.
some.net. 19h31m26s IN NS dns.alloy.net.
dns.alloy.net. 2h55m46s IN A 65.75.10.62
dns.ntplx.net. 10h20m35s IN A 204.213.176.1
dns2.ntplx.net. 10h20m35s IN A 204.213.176.2
dns3.ntplx.net. 10h20m35s IN A 204.213.176.3
YES
dns_getcanonname: some.net
getcanonname(some.net), found
.
collect: Cannot write ./dfiAIGIMWr012458 (bfcommit, uid=2516, gid=102): Permission denied
queueup: cannot create queue file ./qfiAIGIMWr012458, euid=2516, fd=-1, fp=0x0: Permission denied

legionx
Steven E. Protter
Exalted Contributor

Re: Problem connections with sendmail

Permissions are not correct in the /var/spool/mqueue folder.

Also, probably problems in /var/mail

the mqueue folder needs to be owned by bin and the owner needs write permissions on it.

drwxr-xr-x /var/spool/mqueue

That someone@someone.net needs to a real email address. Sorry I didn't make that clear.

It appears you do have good dns resolution. Once the permissions problems are resolved, mail should go through.

check the file /var/adm/syslog/mail.log for more information on this issue.

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
Jairo Campana
Trusted Contributor

Re: Problem connections with sendmail

the path queue is /mail/mqueue

ls -ld /mail
drwxr-xr-x 7 smmps smmps 512 Oct 25 16:49 /mail

ls -ld /mail/mqueue
drwxr-xr-x 2 root smmps 2550272 Nov 18 16:35 /mail/mqueue
legionx
Mark Greene_1
Honored Contributor

Re: Problem connections with sendmail

Does the inability to connect correspond at all to system load? If your system gets to (or close to I believe) 100% busy, sendmail will stop accepting connections.

mark
the future will be a lot like now, only later
Steven E. Protter
Exalted Contributor

Re: Problem connections with sendmail

If its a performance issue, the scripts I'm attaching will help you spot the issue.

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
Jairo Campana
Trusted Contributor

Re: Problem connections with sendmail

My system its stable no exist problems of performance or load cpu, and memory
legionx