Author Topic: Can't receive mail.  (Read 18262 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can't receive mail.
« on: May 23, 2015, 10:33:30 PM »
I have been messing with system from countless hour to figure out why I can't receive mail, I have enabled DKIM and SPF , I can send mail out properly but can't receive any.

I get error from mailllog :

Code: [Select]
NOQUEUE: reject: RCPT from nm22-vm2.bullet.mail.ne1.yahoo.com[98.138.91.210]: 451 4.3.5 Server configuration error; from=<someEmailAddress@yahoo.com> to=<eti@etalkindia.com> proto=ESMTP helo=<nm22-vm2.bullet.mail.ne1.yahoo.com>
[/cod]

Same happens also when I send mail from Gmail to this server.

Tried a lots of things based of online suggestion, nothing works. Any idea what is it about ?

Offline
*
Re: Can't receive mail.
« Reply #1 on: May 24, 2015, 08:52:58 PM »
May be I did not explain properly,
I am using CWP 0.9.8.6

at : http://blabla:2030/index.php?module=postfix_manager

If when I enable following and rebuild mail server:   

"AntiSpam/AntiVirus (recommended): ClamAV, Amavis & Spamassassin, Requires 1Gb+ RAM"
rDNS Check (recommended):       Drop all emails if no rDNS/PTR
Install DKIM & SPF (recommended):      Installs DKIM & SPF, enables DKIM for New Accounts and Domains
Reject Unknown Hostname (NOT recommended):      WARNING: Reject unless the hostname has valid DNS record.


Then incoming mail stops working,.

I checked logs :
Code: [Select]
NOQUEUE: reject: RCPT from nm22-vm2.bullet.mail.ne1.yahoo.com[98.138.91.210]: 451 4.3.5 Server configuration error; from=<someEmailAddress@yahoo.com> to=<eti@etalkindia.com> proto=ESMTP helo=<nm22-vm2.bullet.mail.ne1.yahoo.com>
I also get mail notification about error, eg. if I try go send mail with Google :

Quote
Postfix SMTP server: errors from mail-pd0-f176.google.com[209.85.192.176
Transcript of session follows.

 Out: 220 my.server-name.com ESMTP Postfix
 In:  EHLO mail-pd0-f176.google.com
 Out: 250-my.server-name.com
 Out: 250-PIPELINING
 Out: 250-SIZE 204800000
 Out: 250-ETRN
 Out: 250-STARTTLS
 Out: 250-AUTH PLAIN LOGIN
 Out: 250-AUTH=PLAIN LOGIN
 Out: 250-ENHANCEDSTATUSCODES
 Out: 250-8BITMIME
 Out: 250 DSN
 In:  STARTTLS
 Out: 220 2.0.0 Ready to start TLS
 In:  EHLO mail-pd0-f176.google.com
 Out: 250-my.server-name.com
 Out: 250-PIPELINING
 Out: 250-SIZE 204800000
 Out: 250-ETRN
 Out: 250-AUTH PLAIN LOGIN
 Out: 250-AUTH=PLAIN LOGIN
 Out: 250-ENHANCEDSTATUSCODES
 Out: 250-8BITMIME
 Out: 250 DSN
 In:  MAIL FROM:<sine-address@Gmail.com> SIZE=3644
 Out: 250 2.1.0 Ok
 In:  RCPT TO:<my-email@server-name.com>
 Out: 451 4.3.5 Server configuration error
 In:  DATA
 Out: 454 4.5.1 Error: no valid recipients
 In:  QUIT
 Out: 221 2.0.0 Bye


For other details, see the local mail logfile

And in log files I get this (/var/log/maillog)
Quote
setting up TLS connection from mail-pd0-f178.google.com[209.85.192.178]
May 24 16:40:40 cherry-birch postfix/smtpd[9910]: Anonymous TLS connection established from mail-pd0-f178.google.com[209.85.192.178]: TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)
May 24 16:40:40 cherry-birch postfix/smtpd[9910]: warning: unknown smtpd restriction: "reject_rbl_clientzen.spamhaus.org"
May 24 16:40:40 cherry-birch postfix/smtpd[9910]: NOQUEUE: reject: RCPT from mail-pd0-f178.google.com[209.85.192.178]: 451 4.3.5 Server configuration error; from=<sine-address@gmail.com> to=<my-email@server-name.com> proto=ESMTP helo=<mail-pd0-f178.google.com>

I hope this time I explained properly..

I saw few previous related question but not working in my case.







Offline
*
Re: Can't receive mail.
« Reply #2 on: May 24, 2015, 09:01:43 PM »
It looks while giving details about problem I found the qcause of issue, its small bug in the entries created in /etc/postfix/main.cf

They are :
Code: [Select]
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_rbl_clientzen.spamhaus.org,reject_rbl_clientbl.spamcop.net,reject_rbl_clientdnsbl.sorbs.net,check_policy_service unix:private/spfpolicy

But should be :

Code: [Select]
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_rbl_client zen.spamhaus.org,reject_rbl_client bl.spamcop.net,reject_rbl_client dnsbl.sorbs.net,check_policy_service unix:private/spfpolicy
Posting here so that can help others.

Offline
*
Re: Can't receive mail.
« Reply #3 on: May 25, 2015, 12:21:33 PM »
It looks while giving details about problem I found the qcause of issue, its small bug in the entries created in /etc/postfix/main.cf

They are :
Code: [Select]
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_rbl_clientzen.spamhaus.org,reject_rbl_clientbl.spamcop.net,reject_rbl_clientdnsbl.sorbs.net,check_policy_service unix:private/spfpolicy

But should be :

Code: [Select]
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_rbl_client zen.spamhaus.org,reject_rbl_client bl.spamcop.net,reject_rbl_client dnsbl.sorbs.net,check_policy_service unix:private/spfpolicy
Posting here so that can help others.

thanks a lot,
previously I removed all of them to have it working, see here: http://forum.centos-webpanel.com/centos-webpanel-bugs/cwp-0-9-8-6-rebuilt-mail-server-could-not-receive-send-email/msg2952/#msg2952