Solved

qmail cannot receive  messages from another mailserver

Posted on 2013-02-01
12
1,323 Views
Last Modified: 2013-02-05
Hi,
I have qmail server , installed by qmailtoaster typically.

A few months running normally, but yesterday, suddenly qmail server cannot
receive messages from another servers.
 I checked below:

1. On Sender mailserver , message cannot send to qmail ,and queued  as:
    Running /var/spool/mqueue/r119VbD2006876 (sequence 97 of 998)
    <user@mydomain.com>... Deferred: Connection reset by [qmail IP Addr]

2. Sender mailserver can send messages  to another mailservers.
   (It seems the sender mailserver is normally running)

3. On qmail server , domestic messages can send/receive.

4. from  sender mailserver , manually send to qmail using telnet is
   normally sent.

   telnet [qmail server name] smtp
   220 mydomain.com - Welcome to Qmail Toaster Ver. 1.3 SMTP Server ESMTP

    It seems OK.

5.On qmail server , no rejected  error logs in /var/log/qmail/smtp,send , /var/log/maillog
   

How can I investigate this problem?

Regards,
0
Comment
Question by:tansiwo
  • 6
  • 6
12 Comments
 
LVL 8

Expert Comment

by:R_Edwards
Comment Utility
can you post the output of qmail-showctl output
0
 

Author Comment

by:tansiwo
Comment Utility
qmail-showctl  output is:
 (domain name is replaced to mydomain.com ,sorry)

[root@ps2 ~]# /var/qmail/bin/qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 509.
subdirectory split: 23.
user ids: 7790, 7791, 7792, 0, 7793, 7794, 7795, 7796.
group ids: 2107, 2108.

badhelo: (Default.) Any HELO host name is allowed.

badmailfrom:
.*\ @.* MAIL FROM denied if it matches this pattern.
!.*@.*\..* MAIL FROM denied if it matches this pattern.
.*%.* MAIL FROM denied if it matches this pattern.

badmailfromnorelay: (Default.) Any MAIL FROM is allowed.

badmailto:
[\(\)] RCPT TO denied if it matches this pattern.
[\{\}] RCPT TO denied if it matches this pattern.
@.*@ RCPT TO denied if it matches this pattern.
[\%] RCPT TO denied if it matches this pattern.
[\!] RCPT TO denied if it matches this pattern.

badmailtonorelay: (Default.) No RCPT TO are specifically denied.

badloadertypes:

badloadertypes.cdb: Modified recently enough; hopefully up to date.

badmimetypes:

badmimetypes.cdb: Modified recently enough; hopefully up to date.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is ps2.mydomain.com.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: Remote concurrency is 60.

databytes: SMTP DATA limit is 104857600 bytes.

defaultdomain: Default domain name is mydomain.com.

defaulthost: Default host name is mydomain.com.

doublebouncehost: (Default.) 2B recipient host: ps2.mydomain.com.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is ps2.mydomain.com.

helohost: (Default.) SMTP client HELO host name is ps2.mydomain.com.

idhost: (Default.) Message-ID host name is ps2.mydomain.com.

localiphost: (Default.) Local IP address becomes ps2.mydomain.com.

locals:
Messages for localhost are delivered locally.

me: My name is ps2.mydomain.com.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is mydomain.com.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: Message lifetime in the queue is 86400 seconds.

rcpthosts:
SMTP clients may send messages to recipients at mydomain.com.
SMTP clients may send messages to recipients at .mydomain.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: SMTP greeting: 220 ps2.mydomain.com - Welcome to Qmail Toaster Ver. 1                                                                                                              .3 SMTP Server.

smtproutes:
SMTP route: :ps.mydomain.com

srs_domain: (Default.) SRS domain name is .

srs_secrets: (Default.) No secrets

srs_maxage: (Default.) SRS maxage is 21.

srs_hashlength: (Default.) SRS hashlength is 4.

srs_hashmin: (Default.) SRS hashmin is 4.

spfbehavior: The SPF behavior is 0.

spfexp: (Default.) The SPF default explanation is: 550 See http://spf.pobox.com/                                                                                                              why.html?sender=%{S}&ip=%{I}&receiver=%{xR}.

spfguess: (Default.) The guess SPF rules are: .

spfrules: (Default.) The local SPF rules are: .

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains:
Virtual domain: mydomain.com:mydomain.com

clientcert.pem: I have no idea what this file does.

tlsclientciphers: I have no idea what this file does.

domainkeys: I have no idea what this file does.

logcount: I have no idea what this file does.

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.

locals.lock: I have no idea what this file does.

simversions.cdb: I have no idea what this file does.

tlsserverciphers: I have no idea what this file does.

simcontrol.cdb: I have no idea what this file does.

dh512.pem: I have no idea what this file does.

xxxlocals: I have no idea what this file does.

blacklists: I have no idea what this file does.

logsize: I have no idea what this file does.

policy: I have no idea what this file does.

simcontrol: I have no idea what this file does.

dh1024.pem: I have no idea what this file does.

virtualdomains.lock: I have no idea what this file does.

servercert.pem: I have no idea what this file does.

rsa512.pem: I have no idea what this file does.

rcpthosts.lock: I have no idea what this file does.
[root@ps2 ~]#
0
 
LVL 8

Expert Comment

by:R_Edwards
Comment Utility
Just to clarify,  you can send mail internally and externally.  You can not receive email from external.
0
 

Author Comment

by:tansiwo
Comment Utility
Internal  send   : OK
Internal receice : OK
External send    : OK
External receive : NG
  (Deferred: Connection reset by [server'sIP ADDR])

But from Client PC, smtp connection using telnet
 seems OK

telnet ps2.mydomain.com smtp

220 ps2.mydomain.com - Welcome to Qmail Toaster Ver. 1.3 SMTP Server ESMTP
mail from:<tansiwo@hotmail.com>
250 ok
rcpt to:<tansiwo@mydomain.com>
250 ok
data
354 go ahead
Subject:test
test
.
250 ok 1359771934 qp 606


Thanks,
0
 
LVL 8

Expert Comment

by:R_Edwards
Comment Utility
Try to telnet from external by name not ip
0
 
LVL 8

Expert Comment

by:R_Edwards
Comment Utility
Also post the full deferred message you get.  You can replace with mydomain I just need to see the complete error
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:tansiwo
Comment Utility
I configure  mail relay from ps.mydomain.com (sendmail) to ps2.mydomain.com (qmail) .

ps(sendmail)'s /etc/mail/mailertable
  mydomain.com smtp:[113.160.130.162]


ps(sendmail)'s /var/log/messages
 Feb  2 11:42:47 dns1 sendmail[6310]: r1147k9S010687: to=<thuybd@mydomain.com>, delay=22:35:00, xdelay=00:00:00, mailer=smtp, pri=9504596, relay=[113.160.130.162], dsn=4.0.0, stat=Deferred: Connection reset by [113.160.130.162]


ps2(qmail)'s /var/log/maillog
  no smtp logs from ps.mydomain.com ,only internal


ps2(qmail)'s /var/log/qmail/smtp
  no smtp logs from ps.mydomain.com ,only internal


 What should I check another log file?
0
 

Author Comment

by:tansiwo
Comment Utility
I tried telnet from external  ,using IP and name.

Same response:
  220 ps2.mydomain.com - Welcome to Qmail Toaster Ver. 1.3 SMTP Server ESMTP
0
 

Author Comment

by:tansiwo
Comment Utility
Deffered queue  sample is:

[root@dns1 mqueue]# cat qfr0VGnaEI029753
V8
T1359650976
K1359776592
N123
P11111453
I8/2/916038
MDeferred: Connection reset by [113.160.130.162]
Fwbs
$_outmail024.snc7.facebook.com [69.171.232.158]
$rESMTP
$smx-out.facebook.com
${daemon_flags}
${if_addr}210.198.92.225
S<notification+zj4o=06jasjc@facebookmail.com>
MDeferred: Connection reset by [113.160.130.162]
rRFC822; tuyenvt@mydomain.com
RPFD:<tuyenvt@mydomain.com>
H?P?Return-Path: <“>


Thanks,
0
 
LVL 8

Expert Comment

by:R_Edwards
Comment Utility
Tansiwo,
     Hope you had a good weekend, sorry i was not able to continue.

I am ensuring that i have all information correct

1. you have your qmail set to relay (forward) messages to your sendmail server
2. you can send mail out
3. youcan send and receive messages internally

do all your users connect to the qmail or send mail server?
for incomming mail does it all go to the qmail server first then to sendmail?

Thank you for your patience
-=Richard
0
 

Author Comment

by:tansiwo
Comment Utility
Edward,

 |'m sorry ,  I re-installed the mail server  last weekend.
  It works fine at the new server.


>1. you have your qmail set to relay (forward) messages to your sendmail server
   yes
>2. you can send mail out
   yes
>3. youcan send and receive messages internally
   yes


I managed two servers, JP (sendmail) , VietNam(qmail).

In VietNam , Internet provider  doesn't provide reserve-DNS ,
  so I configure  all incoming/outgoing messages   first receive JP sendmailserver , next relay to VN  qmail  server , vice versa.

All VN users connect smtp/pops to VN qmailserver , not access JP sendmail server directly.

 
To read logs  closely ,  I found  some  messages can relay (under 5%)
It seems
I doubt concurrencyremote and concurrencyincoming ,   but it seems no problem  on qmail-showctl response.

I give up repair this server ,because of  no time.
I'm so sorry.

Thank you very much for your help.
0
 
LVL 8

Accepted Solution

by:
R_Edwards earned 500 total points
Comment Utility
No worries troubleshooting by messages is not the mose efficient way.

Glad you are working
0

Featured Post

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

The Microsoft Exchange server database may become damaged or corrupted due to many reasons, such as system failure. When this happens, it is usually urgent to restore the system to a stable and working state. There are different symptoms and causes …
Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now