1

Topic: Unable to receive emails from outside servers

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition.
- Linux/BSD distribution name and version: Debian
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Current issue able to send out emails for unable to receive.

logs for /var/log/mail.log

Mar 28 08:31:21 mail postfix/smtp[28332]: Untrusted TLS connection established to gmail-smtp-in.l.google.com[2404:6800:4003:c02::1a]:25: TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)
Mar 28 08:31:21 mail postfix/smtp[28332]: 78B3B3E2D8: to=<mygmail@gmail.com>, relay=gmail-smtp-in.l.google.com[2404:6800:4003:c02::1a]:25, delay=1.1, delays=0.01/0.04/0.68/0.4, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[2404:6800:4003:c02::1a] said: 550-5.7.1 [2400:8901::f03c:91ff:fecf:6556       7] Our system has detected that 550-5.7.1 this message is likely unsolicited mail. To reduce the amount of spam 550-5.7.1 sent to Gmail, this message has been blocked. Please visit 550-5.7.1  https://support.google.com/mail/?p=Unso … ssageError 550 5.7.1  for more information. p1-v6si3085041plb.745 - gsmtp (in reply to end of DATA command))
Mar 28 08:31:21 mail postfix/cleanup[28321]: A07703E2D9: message-id=<20180328083121.A07703E2D9@mail.taiyuan.com.sg>
Mar 28 08:31:21 mail postfix/qmgr[28244]: A07703E2D9: from=<>, size=4438, nrcpt=1 (queue active)
Mar 28 08:31:21 mail postfix/bounce[28335]: 78B3B3E2D8: sender non-delivery notification: A07703E2D9
Mar 28 08:31:21 mail postfix/qmgr[28244]: 78B3B3E2D8: removed
Mar 28 08:31:21 mail postfix/pipe[28337]: A07703E2D9: to=<info@mydomain.com>, relay=dovecot, delay=0.14, delays=0.01/0.05/0/0.08, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar 28 08:31:21 mail postfix/qmgr[28244]: A07703E2D9: removed
Mar 28 08:43:24 mail postfix/postfix-script[28639]: stopping the Postfix mail system
Mar 28 08:43:24 mail postfix/master[28241]: terminating on signal 15
Mar 28 08:43:25 mail postfix/postfix-script[28807]: starting the Postfix mail system
Mar 28 08:43:25 mail postfix/master[28809]: daemon started -- version 3.1.4, configuration /etc/postfix


When sending out email, the logs respond but when we do the other way round, logs just does not respond anything nor postfix does not even respond.

----

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

2

Re: Unable to receive emails from outside servers

Cannot receive emails? do you have correct A + MX type DNS records for this domain name?

3

Re: Unable to receive emails from outside servers

ZhangHuangbin wrote:

Cannot receive emails? do you have correct A + MX type DNS records for this domain name?


Thank you for your quick reply. Yes I did accordingly. However it have been working fine before but suddenly it just fails. However I have did a change in ssl certs and tested it accordingly that its all working except receiving mails.

4

Re: Unable to receive emails from outside servers

*) Did you get any log in Postfix log file of the incoming connections?
*) If no log in Postfix log file at all, please check your firewall rules (both local iptables, and the network firewall).
*) If you send email from Gmail, the Gmail account should get a bounce message, what's the full content of this bounce message? We need this for troubleshooting.

5 (edited by brijq91 2018-03-29 16:45:38)

Re: Unable to receive emails from outside servers

Somehow this is the mail.log

Mar 29 06:08:09 mail postfix/smtpd[5722]: connect from unknown[91.142.222.23]
Mar 29 06:08:09 mail postfix/smtpd[5722]: disconnect from unknown[91.142.222.23] helo=1 auth=0/1 quit=1 commands=2/3
Mar 29 06:11:29 mail postfix/anvil[5724]: statistics: max connection rate 1/60s for (smtp:91.142.222.23) at Mar 29 06:08:09
Mar 29 06:11:29 mail postfix/anvil[5724]: statistics: max connection count 1 for (smtp:91.142.222.23) at Mar 29 06:08:09
Mar 29 06:11:29 mail postfix/anvil[5724]: statistics: max cache size 1 at Mar 29 06:08:09
Mar 29 06:22:15 mail postfix/smtpd[5830]: error: unsupported dictionary type: [
Mar 29 06:22:15 mail postfix/smtpd[5830]: error: unsupported dictionary type: [
Mar 29 06:22:15 mail postfix/smtpd[5830]: connect from unknown[78.25.64.170]
Mar 29 06:22:16 mail postfix/smtpd[5830]: disconnect from unknown[78.25.64.170] helo=1 auth=0/1 quit=1 commands=2/3

it keeps repeating this set of logs.

As for Gmail there is no bounce message however I only manage to be able to receive time out message bounce email


Mail Delivery Subsystem <mailer-daemon@googlemail.com>
2:29 PM (6 minutes ago)

to me
Error Icon
Delivery incomplete
There was a temporary problem while delivering your message to testaccount@mydomain.com Gmail will retry for 46 more hours. You'll be notified if the delivery fails permanently.
LEARN MORE
The response was:
The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720 [mydomain.com 11.222.222.22: timed out]


Final-Recipient: rfc822; testaccount@mydomain.com
Action: delayed
Status: 4.4.1
Diagnostic-Code: smtp; The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
[mydomain.com 11.222.222.22: timed out]
Last-Attempt-Date: Wed, 28 Mar 2018 23:29:55 -0700 (PDT)
Will-Retry-Until: Fri, 30 Mar 2018 22:29:50 -0700 (PDT)





The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720 [mydomain.com 11.222.222.22: timed out]


1. I have the same domain name pointing to server a running my website.
2. Now this mail server is as server b and i do have mail.mydomain.com pointing to this server
3. However now the return mail shows that it is getting response to my server a which is not a mail server to begin with.

Thats weird.

6

Re: Unable to receive emails from outside servers

I manange to solve the issue.

1. First was the A Record as I only point mail.mydomain.com bit not the main want.
2. Some Postfix Config restrictions settings.
3. Its working fine now.

Thank You

You can close this issue.