Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

qmail cannot receive  messages from another mailserver

Posted on 2013-02-01
12
Medium Priority
?
1,477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

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
 

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 1500 total points
ID: 38857775
No worries troubleshooting by messages is not the mose efficient way.

Glad you are working
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

636 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