Solved

qmail cannot receive  messages from another mailserver

Posted on 2013-02-01
12
1,340 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
ID: 38844621
can you post the output of qmail-showctl output
0
 

Author Comment

by:tansiwo
ID: 38845827
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
ID: 38845902
Just to clarify,  you can send mail internally and externally.  You can not receive email from external.
0
 

Author Comment

by:tansiwo
ID: 38845933
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
ID: 38845935
Try to telnet from external by name not ip
0
 
LVL 8

Expert Comment

by:R_Edwards
ID: 38845940
Also post the full deferred message you get.  You can replace with mydomain I just need to see the complete error
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:tansiwo
ID: 38845970
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
ID: 38845974
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
ID: 38846020
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
ID: 38850664
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
ID: 38857772
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
ID: 38857775
No worries troubleshooting by messages is not the mose efficient way.

Glad you are working
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
InvalidinSMTP Error when sending from drafts 4 198
Exchange 2013 - OWA Timeout 7 70
Emails returning to sender 3 31
Shared address book Outlook with Unix IMAP/POP3 server 2 50
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.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
To show how to generate a certificate request 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 Servers >> Certificates…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

948 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

23 Experts available now in Live!

Get 1:1 Help Now