1

Topic: Able to send mails but can not receive any

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition.
- Linux/BSD distribution name and version:
Distributor ID: Debian
Description:    Debian GNU/Linux 8.9 (jessie)
Release:        8.9
Codename:       jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB / MySQL
- Web server (Apache or Nginx): Apache2
- Manage mail accounts with iRedAdmin-Pro?: Regular version
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
Nothing appears in the log files, may be looking at the wrong ones
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Able to send mails but can not receive any

If no any log in Postfix log file, please check your DNS records (A + MX) first, then check network firewall rules, make sure port 25 is open.

3 (edited by dinh 2017-10-07 23:27:02)

Re: Able to send mails but can not receive any

ZhangHuangbin wrote:

If no any log in Postfix log file, please check your DNS records (A + MX) first, then check network firewall rules, make sure port 25 is open.

They should be correct; I checked the documentations on how to set them up on the Forums aswell..
DNS

I have the fail2ban plugin disabled

Ports should be open aswell, telnet on port 25 works aswell


root@mail:~# iptables -L -n
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            state RELATED,ESTA                                           BLISHED
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0            icmptype 8
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:80
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:443
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:25
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:587
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:110
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:995
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:143
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:993

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

My hostname is: mail.dinhware.org and my mail uses @dinhware.org
What am I missing I cant seem to figure it out

4

Re: Able to send mails but can not receive any

When you try command "telnet mail.dinhware.org 25", any log in Postfix log file? /var/log/maillog

5 (edited by dinh 2017-10-08 19:39:36)

Re: Able to send mails but can not receive any

ZhangHuangbin wrote:

telnet mail.dinhware.org 25

Yes I get this

Oct  8 14:37:16 mail postfix/postscreen[23449]: CONNECT from [MY_IP_ADRESS]:58781 to [194.135.95.21]:25
Oct  8 14:37:16 mail postfix/dnsblog[23451]: addr MY_IP_ADRESS listed by domain zen.spamhaus.org as 127.0.0.10
Oct  8 14:37:22 mail postfix/postscreen[23449]: DNSBL rank 3 for [MY_IP_ADRESS]:58781

When I disconnect

Oct  8 14:39:00 mail postfix/postscreen[23449]: HANGUP after 99 from [MY_IP_ADRESS]:58781 in tests after SMTP handshake
Oct  8 14:39:00 mail postfix/postscreen[23449]: DISCONNECT MY_IP_ADRESS]:58781

6

Re: Able to send mails but can not receive any

Looks fine. But why no log in Postfix when email sent from other server? firewall?

7 (edited by dinh 2017-10-08 21:50:53)

Re: Able to send mails but can not receive any

ZhangHuangbin wrote:

Looks fine. But why no log in Postfix when email sent from other server? firewall?

Not sure, I went with a fresh setup and just took all default settings iRedMail gave me

Just checked my inbox and found a bunch of these messages:


Error when sending messages to the following receivers or groups:

business@dinhware.org (business@dinhware.org)
Your message could not be delivered. Despite repeated delivery attempts for your message, an error occurred while querying the domain name of the recipient in the DNS (Domain Name System).

For more information and tips on how to resolve this issue, visit this article: http://go.microsoft.com/fwlink/?LinkId=389361.


Is there anything wrong with my DNS Settings I posted above?



I have just tried sending an E-Mail to business@mail.dinhware.org just because I was curious
This appeared in my maillog

Oct  8 16:36:25 mail postfix/postscreen[25769]: CONNECT from [40.92.68.78]:58772 to [194.135.95.21]:25
Oct  8 16:36:31 mail postfix/postscreen[25769]: PASS NEW [40.92.68.78]:58772
Oct  8 16:36:31 mail postfix/smtpd[25780]: connect from mail-oln040092068078.outbound.protection.outlook.com[40.92.68.78]
Oct  8 16:36:31 mail postfix/smtpd[25780]: Anonymous TLS connection established from mail-oln040092068078.outbound.protection.outlook.com[40.92.68.78]: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)
Oct  8 16:36:32 mail postfix/smtpd[25780]: NOQUEUE: reject: RCPT from mail-oln040092068078.outbound.protection.outlook.com[40.92.68.78]: 550 5.1.1 <business@mail.dinhware.org>: Recipient address rejected: User unknown in local recipient table; from=<private@email.adress> to=<business@mail.dinhware.org> proto=ESMTP helo=<EUR02-HE1-obe.outbound.protection.outlook.com>
Oct  8 16:36:32 mail postfix/smtpd[25780]: disconnect from mail-oln040092068078.outbound.protection.outlook.com[40.92.68.78]

Furthermore I got an instant reply back

mail.dinhware.org has rejected your message to the following e-mail addresses.
business@mail.dinhware.org (business@mail.dinhware.org)
The address to which you sent your message was not found in the target domain. It may be misspelled, or it does not exist. Try to resolve the problem by doing one or more of the following:
Send the message again, but before you do this, delete the address and re-enter it. If your e-mail program automatically proposes an address to use, do not select it.
Delete the AutoComplete cache for recipients in your e-mail program by following the steps in this article: Status Code 5.1.1 . Send the message again, but before you do so, delete the address and re-enter it.
To make sure you are using the correct address, contact the recipient in a different way (eg, by telephone). Also, ask if an e-mail forwarding rule is set up that might forward your message to an incorrect address.


Additionaly: I have also setup SSL certificates with Lets-Encrypt for dinhware.org and mail.dinhware.org, not sure if this has to do with the issue

8

Re: Able to send mails but can not receive any

Still clueless

9

Re: Able to send mails but can not receive any

dinh wrote:

Your message could not be delivered. Despite repeated delivery attempts for your message, an error occurred while querying the domain name of the recipient in the DNS (Domain Name System).

This is the key.

Checked your DNS, the MX record is wrong:

dinhware.org.        10799    IN    MX    10 mail.dinhware.org.dinhware.org.

Domain name "mail.dinhware.org.dinhware.org" is not pointed to an IP address, so i think it should be "mail.dinhware.org", but not "mail.dinhware.org.dinhware.org".

10

Re: Able to send mails but can not receive any

ZhangHuangbin wrote:
dinh wrote:

Your message could not be delivered. Despite repeated delivery attempts for your message, an error occurred while querying the domain name of the recipient in the DNS (Domain Name System).

This is the key.

Checked your DNS, the MX record is wrong:

dinhware.org.        10799    IN    MX    10 mail.dinhware.org.dinhware.org.

Domain name "mail.dinhware.org.dinhware.org" is not pointed to an IP address, so i think it should be "mail.dinhware.org", but not "mail.dinhware.org.dinhware.org".

Thank you very much, this was it... Not sure how that slipped my sight!
Going to buy you a coffee now! Thanks for helping me out!