Sendmail delaying mails for 45 mins


 
Thread Tools Search this Thread
Operating Systems Solaris Sendmail delaying mails for 45 mins
# 1  
Old 12-16-2013
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:

Code:
Dec 16 17:00:59 client01 sendmail[24805]: [ID 702911 mail.info] STARTTLS=client, relay=mailhost, version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Dec 16 17:00:59 client01 sendmail[24805]: [ID 801593 mail.info] rBGGG2MP024799: to=<xplus@mycompany.com>, delay=00:44:57, xdelay=00:44:57, mailer=esmtp, pri=124456, relay=mailhost [10.58.1.56], dsn=2.0.0, stat=Sent (Ok: queued as C47E042434F)
Dec 16 17:01:00 client01 sendmail[24898]: [ID 702911 mail.info] STARTTLS=client, relay=mailhost, version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Dec 16 17:01:00 client01 sendmail[24898]: [ID 801593 mail.info] rBGGG2H7024896: to=<xplus@mycompany.com>, delay=00:44:58, xdelay=00:44:57, mailer=esmtp, pri=123116, relay=mailhost [10.58.1.56], dsn=2.0.0, stat=Sent (Ok: queued as 4D6E542434F)
Dec 16 17:01:00 client01 sendmail[24900]: [ID 702911 mail.info] STARTTLS=client, relay=mailhost, version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Dec 16 17:01:00 client01 sendmail[24900]: [ID 801593 mail.info] rBGGG2H9024896: to=<xplus@mycompany.com>, delay=00:44:57, xdelay=00:44:57, mailer=esmtp, pri=124457, relay=mailhost [10.58.1.56], dsn=2.0.0, stat=Sent (Ok: queued as 67EE8424351)

Any ideas on where to start? I've tried looking at sendmail.cf for any default queue options, but it might as well be written in klingon, I can't make head nor tail of the output!
# 2  
Old 12-16-2013
One of the startup options specifies how frequently queued messages are processed. See manpage for -q [Time] option. Do a COLUMS 132 ps -aef | grep sendmail to check for the start up options if any running on the current process. You can temporarily stop the current sendmail and do something like
Code:
sendmail -bd -q

(this would process all queued mail immediately and push process in background).

Code:
sendmail -bd -q10m

(this would process queued mail every 10 minutes

You can also telnet to sendmail ports and test mail server.
(google for how to do that)
# 3  
Old 12-16-2013
a ps -ef returns the following:

Code:
# ps -aef | grep sendmail
   smmsp   608     1   0   Nov 24 ?           0:18 /usr/lib/sendmail -Ac -q15m
    root   610     1   0   Nov 24 ?           3:31 /usr/lib/sendmail -bl -q15m

I do not believe the above is anything out of the ordinary.

Does the syslog output in my first post indicate that the mail relay server is accepting the mail?
# 4  
Old 12-16-2013
I think the STARTTLS messages do not mean a delay.
The mail client is configured to use TLS for outgoing mails.
You should rather look for stat= lines that are not Sent
Code:
grep "stat=" /var/log/syslog | grep -v "stat=Sent"

# 5  
Old 12-16-2013
I think it could be a slow relay so the path the mail is taking could be an issue. The "relay=" value above in your log entries. So, from the process list you show it is set to 15 minutes queue processing time I think. Try sending mail from the host to itself. Then try sending mail withing your domian, then outside your domain. You can stop and start sendmail to send the main immediately so you don't have to wait for the queue time. I sometimes will telnet to the smtp port of a mail server to see how it responds (if security allows it). So you could test your relay servers.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

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,... (11 Replies)
Discussion started by: Mysturji
11 Replies

2. Solaris

Solaris - Sendmail - Adding .com.gr in external senders e-mails

Hello Everybody ! I'm Harry from Athens Greece and i have a problem with my Sendmail 8.13.3 installed on Solaris SunOS ultra 5.10. The problem is that when someone sends to us an e-mail and his e-mail address is like : xxxx@xxxx.com, our e-mail server adds up in the senders address a .com.gr... (2 Replies)
Discussion started by: Mcasim
2 Replies

3. Shell Programming and Scripting

Help with delaying script and implementing checks before completion

Hello everyone, I was wondering if any of you could help me with this. I am an absolute beginner and don't know how to program, but I can follow a tutorial and tweak code sometimes. My understanding of programing is limitted to what for and while loops do, and how if then else logic works. That... (2 Replies)
Discussion started by: tomeurp
2 Replies

4. UNIX for Advanced & Expert Users

Some mails not scanned by SpamAssassin 3.4.1 w sendmail/procmail on Fedora 21

We have a user who has about a 50% missed rate on spam detection. I'm wondering if his user prefs or something is preventing scanning of all messages? SpamAssassin version 3.4.1, running on Perl version 5.20.3, sendmail Version 8.15.2 The contents of the user_prefs file: # How many points... (2 Replies)
Discussion started by: RobbieTheK
2 Replies

5. Shell Programming and Scripting

tail for 15 mins

Hi, I want to write a script which will tail a particular file for 15 mins and then sleep for 10 mins and again tail for 15 mins. This cycle will go on for a limited period of time. How can i ensure that tail command will run for 15 mins before calling sleep command Thanks (6 Replies)
Discussion started by: @bhi
6 Replies

6. UNIX for Advanced & Expert Users

Sendmail Script don't deliver mails

Hi, i've got a problem with a sendmail script, which sends HTML mails. Some mail will rejected by the mail server, because the fqdn doesn't exist. Where can i set the sender-domainname by sendmail? My mail server say: "Sender address rejected: Domain not found;", which is correct... (3 Replies)
Discussion started by: rainbowwarrior
3 Replies

7. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies

8. Solaris

Sendmail error delaying relay

When I try to send mail, sendmail delays a lot. After monitoring syslog, I noticed that sendmail starts with this first message... waits a minute and gives the second message... waits another minute and then sends off the email. How do I correct this in sendmail or completly disable it. I'm sending... (0 Replies)
Discussion started by: adelsin
0 Replies

9. UNIX for Dummies Questions & Answers

Steps to configure sendmail to receive e-mails

Hi Unix Gurus, Please help me out here. Please tell me the steps to conigure sendmail to receive emails (same way we configure outlook client in windows)? Thanks in advance. -Dejavu (1 Reply)
Discussion started by: DejaVu
1 Replies

10. Solaris

how to send mails to users on exchange server from sendmail/solaris(mailx)

Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies
Login or Register to Ask a Question