tansiwo
asked on
qmail cannot receive messages from another mailserver
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/r119VbD2 006876 (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,
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/r119VbD2
<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,
can you post the output of qmail-showctl output
ASKER
qmail-showctl output is:
(domain name is replaced to mydomain.com ,sorry)
[root@ps2 ~]# /var/qmail/bin/qmail-showc tl
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}&receive r=%{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 ~]#
(domain name is replaced to mydomain.com ,sorry)
[root@ps2 ~]# /var/qmail/bin/qmail-showc
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=%{
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 ~]#
Just to clarify, you can send mail internally and externally. You can not receive email from external.
ASKER
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,
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,
Try to telnet from external by name not ip
Also post the full deferred message you get. You can replace with mydomain I just need to see the complete error
ASKER
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?
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?
ASKER
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
Same response:
220 ps2.mydomain.com - Welcome to Qmail Toaster Ver. 1.3 SMTP Server ESMTP
ASKER
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=06jasj c@facebook mail.com>
MDeferred: Connection reset by [113.160.130.162]
rRFC822; tuyenvt@mydomain.com
RPFD:<tuyenvt@mydomain.com >
H?P?Return-Path: <“>
Thanks,
[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
$rESMTP
$smx-out.facebook.com
${daemon_flags}
${if_addr}210.198.92.225
S<notification+zj4o=06jasj
MDeferred: Connection reset by [113.160.130.162]
rRFC822; tuyenvt@mydomain.com
RPFD:<tuyenvt@mydomain.com
H?P?Return-Path: <“>
Thanks,
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
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
ASKER
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.
|'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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.