MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: bluemerlin on 2014-01-15, 15:09:33

Title: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-15, 15:09:33
All outgoing mail is getting stuck in the queue.

Within log manager mail log is blank.

I have tailed /var/log/kloxo/maillog and /var/log/kloxo/smtp.log and the both see no updates.

I have looked in /var/log/qmail also I just can't find any mail logs to diagnose.
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-15, 15:17:31
Read http://forum.mratwork.com/kloxo-mr-tips-and-tricks/(tip)-how-to-setup-qmail-on-kloxo-mr/
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-15, 15:26:56
I've done this already and incoming mail works fine. Which file does log manager look at for mail logs?

It's only outgoing mail that gets stuck in the queue
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-15, 16:33:50
try 'sh /script/fixmail-all; sh /script/restart-mail'
Title: Re: outgoing mail stuck in queue
Post by: chrisf on 2014-01-15, 17:04:07
Mail log: /var/log/maillog ;)

Flush the queue, sometimes a stuck message will cause havoc!
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 10:21:22
try 'sh /script/fixmail-all; sh /script/restart-mail'

Already done this many times. But did it again problem persists.


Mail log: /var/log/maillog ;)

Flush the queue, sometimes a stuck message will cause havoc!

Queue was flushed many times. Also deleted the queue before posting here. All messages sent since deletion are still waiting in queue. I have no /var/log/maillog file.
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 10:23:15
Better inform here 'sh /script/sysinfo; hostname -f; hostname -s; cat /etc/hosts'.
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 10:31:43
A. Kloxo-MR: 6.5.0.f-2013121703

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql-5.5.34-1.el6.x86_64
   2. PHP: php-5.3.27-3.el6.x86_64
   3. Httpd: httpd-2.2.26-1.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.29.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64
   7. Dns: bind-9.9.4-1.P1.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1877       1751        125          0        199        359
   -/+ buffers/cache:       1191        685
   Swap:          991          3        988

kloxo-2.blue4it.co.uk
kloxo-2
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
94.23.154.51 kloxo-2.blue4it.co.uk kloxo-2
### begin - add by Kloxo-MR
94.23.154.51 kloxo-2.blue4it.co.uk kloxo-2
### end - add by Kloxo-MR
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 11:07:08
Try:
Code: [Select]
yum clean all
yum update
sh /script/cleanup
sh /script/fixmail-all
sh /script/restart-mail
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 11:47:47
Try:
Code: [Select]
yum clean all
yum update
sh /script/cleanup
sh /script/fixmail-all
sh /script/restart-mail

Just completed this. Deleted the mail queue. Sent a new outgoing mail, it just sits in the queue. Mail log in log manager is empty. Incoming mail still working STMP is running.

Seems to be the same as it was at the start of the thread.
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 11:53:25
What about sending mail to another domain/subdomain but in the same server?.

Is /var/log/maillog file empty?.
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 12:02:06
What about sending mail to another domain/subdomain but in the same server?.

Is /var/log/maillog file empty?.

Mail in same server works fine. I presume its an issue with outgoing to destination port 25. To diagnose this issue i need to see the maillog.

/var/log/maillog was missing as I said before. I've created it but it's still empty.
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 12:05:53
Running 'telnet localhost 25' and what's you see?.
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 12:07:27
BTW, how to send your mail. Via webmail, mail client or application?. If using webmail, try roundcube and telaen.
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 12:36:47
[root@kloxo-2 ~]# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 kloxo-2.blue4it.co.uk - Welcome to Qmail ESMTP


I use thunderbird mail client. Just tried roundcube same problem.

Still no maillog data
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 12:42:44
Try disable spamdyke in 'mail server config' and better running 'sh /script/fixmail-all; sh /script/restart-mail' after.
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 13:12:59
Try disable spamdyke in 'mail server config' and better running 'sh /script/fixmail-all; sh /script/restart-mail' after.

Done, deleted queue, sent new mail. Same issue.
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 13:41:43
Qmail already update because spamdyke not able together with rblsmtpd.

So, try:
Code: [Select]
yum clean all
yum update
sh /script/fixmail-all
sh /script/restart-mail

BTW, you issue appear on all domains/subdomains?. Or, only for certain domains/subdomains?.
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 14:58:31
Qmail already update because spamdyke not able together with rblsmtpd.

So, try:
Code: [Select]
yum clean all
yum update
sh /script/fixmail-all
sh /script/restart-mail

BTW, you issue appear on all domains/subdomains?. Or, only for certain domains/subdomains?.

Completed, still the same issue, outgoing mail stuck in queue, no maillog data. All domains.
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 15:20:49
So, it's something wrong with your server.

Give me an access to your server (ssh and panel) and send information to my PM.
Title: Re: outgoing mail stuck in queue
Post by: chrisf on 2014-01-16, 15:33:16
Please try:

Code: [Select]
service rsyslog restart

then:
Code: [Select]
svc -u /var/qmail/supervise/authlib/log
svc -u /var/qmail/supervise/send/log
svc -u /var/qmail/supervise/smtp-ssl/log
svc -u /var/qmail/supervise/smtp/log

flush the queue, then:

Code: [Select]
qmailctl stop
qmailctl start

Inform if /var/log/maillog starts working. 
Title: Re: outgoing mail stuck in queue
Post by: chrisf on 2014-01-16, 15:35:19
Or let Mustafa fix it.  :)
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 15:56:22
So, it's something wrong with your server.

Give me an access to your server (ssh and panel) and send information to my PM.

Info in PM.
Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-16, 16:46:34
I think the problem is your setting for dns.

Please change for all your domains in intodns.com.
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-16, 16:56:49
Please explain further (perhaps in PM.) I don't use the DNS on Kloxo at all.


If DNS was an issue why would my domains receive mail correctly?
Title: Re: outgoing mail stuck in queue
Post by: chrisf on 2014-01-16, 19:40:49
Did you do as I requested above?  I will help.
Title: Re: outgoing mail stuck in queue
Post by: bluemerlin on 2014-01-17, 01:08:39
Did you do as I requested above?  I will help.

Thanks, I have mail logs.

Confirmed what I expected.  Problems connecting to remote smtp server.

Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/

Title: Re: outgoing mail stuck in queue
Post by: MRatWork on 2014-01-17, 05:57:56
Error 'Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/' is clear