Sponsored Content
Special Forums UNIX and Linux Applications Sendmail delay: 3 mins 11 secs... Every time. Post 303002772 by Mysturji on Friday 1st of September 2017 05:43:22 AM
Old 09-01-2017
Sendmail delay: 3 mins 11 secs... Every time.

Hi all,
I would like some help with a sendmail problem:
We have a new system comprising of 4 T7-1 servers, each hosting 5 LDOMs, all domains running Solaris 11.3
All emails sent from every one of these domains (including the control domains) sit in the queue for 3 mins 11 secs (sometime 3m 12s, or 3m 13s) before being delivered.
I've exhausted my googling skills investigating red herrings and blind alleys and now I'm stumped.
I have included some sanitised output below, showing the problem. I used "sendmail -v" here purely for the verbose output: The same delay occurs with mailx.
Any help would be greatly appreciated.
#########################################################
Code:
root@myldom:~# sendmail -v my.name@company.uk < test.txt
my.name@company.uk... Connecting to [127.0.0.1] via relay...
220 myldom.fqdn.uk ESMTP Sendmail 8.15.1+Sun/8.15.1; Thu, 31 Aug 2017 16:33:21 +0100 (BST)
>>> EHLO myldom.fqdn.uk
250-myldom.fqdn.uk Hello localhost.fqdn.uk [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<myuser@myldom.fqdn.uk> SIZE=21
250 2.1.0 <myuser@myldom.fqdn.uk>... Sender ok
>>> RCPT To:<my.name@company.uk>
>>> DATA
250 2.1.5 <my.name@company.uk>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .

# (Wait 3 mins 11 secs...)

050 <my.name@company.uk>... Connecting to company.uk. via esmtp...
050 <my.name@company.uk>... Connecting to mailhost.fqdn.uk via esmtp...
050 220 exchangeserver.fqdn.uk Microsoft ESMTP MAIL Service ready at Thu, 31 Aug 2017 16:36:31 +0100
050 >>> EHLO myldom.fqdn.uk
050 250-exchangeserver.fqdn.uk Hello [10.10.3.102]
050 250-SIZE 37748736
050 250-PIPELINING
050 250-DSN
050 250-ENHANCEDSTATUSCODES
050 250-STARTTLS
050 250-X-ANONYMOUSTLS
050 250-AUTH NTLM
050 250-X-EXPS GSSAPI NTLM
050 250-8BITMIME
050 250-BINARYMIME
050 250-CHUNKING
050 250 XRDST
050 >>> STARTTLS
050 220 2.0.0 SMTP server ready
050 >>> EHLO myldom.fqdn.uk
050 250-exchangeserver.fqdn.uk Hello [10.10.3.102]
050 250-SIZE 37748736
050 250-PIPELINING
050 250-DSN
050 250-ENHANCEDSTATUSCODES
050 250-AUTH NTLM LOGIN
050 250-X-EXPS GSSAPI NTLM
050 250-8BITMIME
050 250-BINARYMIME
050 250-CHUNKING
050 250 XRDST
050 >>> MAIL From:<myuser@myldom.fqdn.uk> SIZE=382
050 250 2.1.0 Sender OK
050 >>> RCPT To:<my.name@company.uk>
050 >>> DATA
050 250 2.1.5 Recipient OK
050 354 Start mail input; end with <CRLF>.<CRLF>
050 >>> .
050 250 2.6.0 <201708311533.v7VFXK30006527@myldom.fqdn.uk> [InternalId=80298708569789, Hostname=exchangeserver.fqdn.uk] Queued mail for delivery
050 <my.name@company.uk>... Sent (<201708311533.v7VFXK30006527@myldom.fqdn.uk> [InternalId=80298708569789, Hostname=exchangeserver.fqdn.uk] Queued mail for delivery)
250 2.0.0 v7VFXLXx006528 Message accepted for delivery
my.name@company.uk... Sent (v7VFXLXx006528 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 myldom.fqdn.uk closing connection
root@myldom:~#

During the delay before sending, I ran the following in another session:

Code:
root@myldom:~# mailq;sendmail -v -q
                /var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
v7VFXLXx006528*      21 Thu Aug 31 16:33 <myuser@myldom.fqdn.
                                         <my.name@company.uk>
                Total requests: 1

Running /var/spool/mqueue/v7VFXLXx006528 (sequence 1 of 1)
v7VFXLXx006528: locked
root@myldom:~#

... And this is what appears in the log:

Code:
root@myldom:~# grep v7VFXLXx006528 /var/log/syslog
Aug 31 16:33:21 myldom sendmail[6528]: [ID 801593 mail.info] v7VFXLXx006528: from=<myuser@myldom.fqdn.uk>, size=382, class=0, nrcpts=1, msgid=<201708311533.v7VFXK30006527@myldom.fqdn.uk>, proto=ESMTP, daemon=MTA-v4, 

relay=localhost.fqdn.uk [127.0.0.1]
Aug 31 16:36:34 myldom sendmail[6528]: [ID 801593 mail.info] v7VFXLXx006528: to=<my.name@company.uk>, ctladdr=<myuser@myldom.fqdn.uk> (111/100), delay=00:03:13, xdelay=00:03:13, mailer=esmtp, pri=30382, relay=mailhost.fqdn.uk 

[10.10.0.98], dsn=2.0.0, stat=Sent (<201708311533.v7VFXK30006527@myldom.fqdn.uk> [InternalId=80298708569789, Hostname=exchangeserver.fqdn.uk] Queued mail for delivery)
Aug 31 16:36:34 myldom sendmail[6527]: [ID 801593 mail.info] v7VFXK30006527: to=my.name@company.uk, ctladdr=myuser (111/100), delay=00:03:14, xdelay=00:03:13, mailer=relay, pri=30021, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent 

(v7VFXLXx006528 Message accepted for delivery)
root@myldom:~#

Many thanks in advance



Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 09-01-2017 at 07:37 AM.. Reason: Added CODE tags.
 

10 More Discussions You Might Find Interesting

1. Solaris

lock time delay

I have a Sol system. The lock timeout is default 15 minutes. I tried to make it longer but cannot by lock -t timeout Anyon can tell me the cmd in solai for this please. A thank in advance (2 Replies)
Discussion started by: part-time-user
2 Replies

2. Shell Programming and Scripting

ls -e to find out File modification time in secs

Hi All, I would like to know the file modification time till seconds in Unix. So I tried ls -e and it worked fine. This Solaris 5.10 -rw-rw-r-- 1 test admin 22 Sep 12 11:01:37 2008 test_message But I am not able to run the same command in SOlaris 5.6 and also in AIX/HP Is there... (3 Replies)
Discussion started by: rahulkav
3 Replies

3. Shell Programming and Scripting

Calculating delay time - bash

Hi, I am having the following problem. test > hourOfDay=06 ; delayTime=$(((9-$hourOfDay)*60)) ; echo $delayTime 180 test > hourOfDay=07 ; delayTime=$(((9-$hourOfDay)*60)) ; echo $delayTime 120 test > hourOfDay=08 ; delayTime=$(((9-$hourOfDay)*60)) ; echo $delayTime bash: (9-08: value... (5 Replies)
Discussion started by: jbsimon000
5 Replies

4. Shell Programming and Scripting

Time delay for awk

I have an awk script, and want to introduce a time delay. How can I do this? (3 Replies)
Discussion started by: kristinu
3 Replies

5. Shell Programming and Scripting

how to calculate the time 10 mins ago?? unix

Hi guys, Im trying to subtract time in ksh script. i.e. basically im querying a database and i want to get the time 10mins before hand..(from) in ksh CurrMin=$(date "+%M") from=`expr $CurrMin - 10` to=$CurrMin however if i run this i say at 2 or 3 mins past the hour, i.e.... (7 Replies)
Discussion started by: k00061804
7 Replies

6. UNIX for Advanced & Expert Users

getting time mins ago

Hi I trying to get 5 mins ago time using below command echo `date +%R -d "1 min ago"` but this is giving only current time. Please help (6 Replies)
Discussion started by: cka
6 Replies

7. Solaris

Login delay after entering id (40 secs) same after entering pw

Hi all, I have just installed Solaris 10 on an old Fujitsu Primepower 650 which has been wiped clean. I haven't installed anything apart from the OS yet, so the machine is 99% idle. I get long delays when logging in, first after entering the id then another long delay after entering a valid... (8 Replies)
Discussion started by: longjon
8 Replies

8. Red Hat

Delay in sending email to-from localhost in Sendmail

Hi Friends, I am very much new to sendmail or any other mta. I just installed sendmail 8.14 on my rhel6 machine. I was trying to send email to local user but after entering the message when i press CTRL-D it simply hangs. I also tried sending email via mutt but again mutt also hangs. It sends... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

9. Shell Programming and Scripting

How to get past 30 mins time in Solaris?

Hi guys, could you help to find a way to get the past 30 mins time in solaris. version: bash-3.00# uname -a SunOS solaris 5.10 Generic_142910-17 i86pc i386 i86pc I had tried the following ways, it works fine in GNU Linux, but doesn't work in Solaris. # date Tue Apr 2 01:01:49 CST... (4 Replies)
Discussion started by: ambious
4 Replies

10. Solaris

Sendmail delaying mails for 45 mins

Hi, I'm trying to send out mails from my server using mailx, however everytime I send one, it appears to be held in the /var/spool/mqueue for 44 mins before being sent. I'm quite new to sendmail, so don't really know where to start with this /var/log/syslog displays the following: Dec 16... (4 Replies)
Discussion started by: badoshi
4 Replies
All times are GMT -4. The time now is 01:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy