1 (edited by tjgornick 2015-03-18 03:45:00)

Topic: Mail from gmail is rejected but others are accepted

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Ubuntu 14.04.2 LTS
- Related log if you're reporting an issue: /var/log/mail.log
====

Hi,

I can send emails to all providers (including gmail) but cannot receive emails from gmail (all others tested are fine). I have disabled greylisting. Here are examples of my mail.log showing examples of mail accepted and gmail rejected (addressed redacted).


accepted (live.com, hotmail.com, several independent servers, all similar response):

Mar 17 19:17:57 mx postfix/smtpd[6294]: connect from [REDACTED]
Mar 17 19:17:58 mx postfix/smtpd[6294]: 26B68183CB: client=[REDACTED]
Mar 17 19:17:59 mx postfix/cleanup[6300]: 26B68183CB: message-id=[REDACTED]
Mar 17 19:17:59 mx postfix/qmgr[3910]: 26B68183CB: from [REDACTED], size=1556, nrcpt=1 (queue active)
Mar 17 19:17:59 mx postfix/smtpd[6294]: disconnect from [REDACTED]
Mar 17 19:18:00 mx postfix/smtpd[6307]: connect from [REDACTED]
Mar 17 19:18:00 mx postfix/smtpd[6307]: 4C26518404: client=[REDACTED]
Mar 17 19:18:00 mx postfix/cleanup[6300]: 4C26518404: message-id=[REDACTED]
Mar 17 19:18:00 mx postfix/qmgr[3910]: 4C26518404: from=[REDACTED], size=2060, nrcpt=1 (queue active)
Mar 17 19:18:00 mx postfix/smtpd[6307]: disconnect from [REDACTED]
Mar 17 19:18:00 mx amavis[3413]: (03413-01) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL [REDACTED]
[REDACTED] -> [REDACTED], Queue-ID: 26B68183CB, Message-ID: [REDACTED], mail_id: Wk7hjk4iLKvd, Hits: -0.11, size: 1556, queued_as: 4C26518404, dkim_sd=dkim:[REDACTED], 1100 ms
Mar 17 19:18:00 mx postfix/smtp[6302]: 26B68183CB: to=[REDACTED], relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=1.5/0.02/0.03/1.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4C26518404)
Mar 17 19:18:00 mx postfix/qmgr[3910]: 26B68183CB: removed
Mar 17 19:18:00 mx postfix/pipe[6308]: 4C26518404: to=[REDACTED], relay=dovecot, delay=0.07, delays=0.01/0.02/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar 17 19:18:00 mx postfix/qmgr[3910]: 4C26518404: removed


rejected (only gmail, gmail hostnames vary slightly, but message is same):

Mar 17 19:17:21 mx postfix/smtpd[6294]: connect from mail-qc0-x236.google.com[2607:f8b0:400d:c01::236]
Mar 17 19:17:21 mx postfix/smtpd[6294]: NOQUEUE: reject: RCPT from mail-qc0-x236.google.com[2607:f8b0:400d:c01::236]: 450 4.7.1 [REDACTED]: Recipient address rejected: Access denied; from=<[REDACTED]@gmail.com> to=[REDACTED] proto=ESMTP helo=<mail-qc0-x236.google.com>


I have googled everywhere as to whitelisting gmail.com, but I understand you can no longer whitelist a domain in this version (IPs only). Please confirm this. I have also tried adding 0.0.0.0/0 and ::/0 to whitelists in mail.myserver.com/cluebringer and restarted postfix-cluebringer, but the results stay the same.


Let me know if there is any more information I can provide.


Thanks,

Tom G

----

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

2

Re: Mail from gmail is rejected but others are accepted

It could be the fact that GMail is connecting from IPv6. Or a malformed header. Is the TO address same as in the working example?

3

Re: Mail from gmail is rejected but others are accepted

If your mail server doesn't have IPv6 address, please set 'inet_protocols = ipv4' in Postfix config file /etc/postfix/main.cf.

4

Re: Mail from gmail is rejected but others are accepted

Hi and Thanks for the quick replies. This is working now -

7t3chguy - the TO address is indeed the same.

ZhangHuangbin - Though I do have  ipv6 addresses (both internal and external) on the mail server, setting 'inet_protocols = ipv4' in Postfix config file /etc/postfix/main.cf resolves the issue.

Is there anything else I can check as to why I can't receive mail via ipv6? (Also, should I create a new topic for that?)


Thanks for your help.

-Tg

5

Re: Mail from gmail is rejected but others are accepted

tjgornick wrote:

Though I do have ipv6 addresses (both internal and external) on the mail server, setting 'inet_protocols = ipv4' in Postfix config file /etc/postfix/main.cf resolves the issue.

Is there anything else I can check as to why I can't receive mail via ipv6? (Also, should I create a new topic for that?)

If you have IPv6 address on server, your mail server should accept emails sent from Gmail.

Cannot figure it out with pasted log, is it possible to let me login to your server and do some further debug?
Note: ssh access is preferred, root privilege is required to modify config files and check log files. If you don't want to share password, please add my ssh public key in file ~/.ssh/authorized_keys of the ssh account, and mail me (zhb _at_ iredmail dot org) your server address and ssh account.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWD2oZef2kq2CPq/TYuuAeualfL/AH6EW2n2Tzf5DsC8V5OmZAr4S7pdBH4D33T0gFrLq/woin6KXIdoiLF/dwQcPYYUA5wToRxz9cGG5U8TezkSDogjYyhqVQuDnSiiT/RF0uIytuX5e8XkfZS2TLQJTgt0Af23rPEm0TY/zd6XCNx/osdRAP25Sw3lztWkXH9wNs58ncRQjirBx853dI5qycMzBhcWBpUQAc9Yul1dyKG6SpLPbgz2wyufbDOdZOr9lZPa0MdbuTGZ8Ge3c90BQQlRNzZSBmbfeTbFHQacV+kDOvEX10PpRJE9PXnQnwk6HNs2lxsbbPzqaLnNs7 zhb@laptop

6

Re: Mail from gmail is rejected but others are accepted

I sent you an email.

Thanks,
Tg

7

Re: Mail from gmail is rejected but others are accepted

Turns out it's caused by Cluebringer-2.0.10 installed on your server. This version doesn't support IPv6.

8

Re: Mail from gmail is rejected but others are accepted

Thanks for looking into this, Zhang. I'll just keep it set to ipv4 until a later update.


Thanks,

Tom G

9

Re: Mail from gmail is rejected but others are accepted

tjgornick wrote:

Thanks for looking into this, Zhang. I'll just keep it set to ipv4 until a later update.

According to Cluebringer web site (http://wwww.policyd.org/), the latest stable version v2.0.14 was released on Oct 26, 2013. version 2.0.15 was tagged 6 months ago, but no public download link available on web site.

This is a bad situation.

10

Re: Mail from gmail is rejected but others are accepted

UPDATE: my last post was incorrect. tag 2.0.15 is just a development tag, not a final release.

But the truth is, no new version after Oct 26, 2013.

11

Re: Mail from gmail is rejected but others are accepted

That is unfortunate. I hope development hasn't stopped completely. IPv4 will still be around for a long while, at least.

12

Re: Mail from gmail is rejected but others are accepted

I hope Zhang is still planning to build the functionality into iRedAPD as this would solve this issue once and for all

13

Re: Mail from gmail is rejected but others are accepted

7t3chguy wrote:

I hope Zhang is still planning to build the functionality into iRedAPD as this would solve this issue once and for all

Don't worry, I do want to replace Cluebringer by iRedAPD, still need some more time. I'm busy refactoring iRedAdmin-Pro to merge iRedAdmin-Pro-MySQL and iRedAdmin-Pro-PGSQL.

I asked in Cluebringer mailing list about when we will have a new stable release (after Oct 26, 2013) moment ago, i got answer from developer: "when it's ready". Another mailing list member explains that developers have full-time job so we have to be patient and wait for developers to have some spare time to work on Cluebringer.

Personally, i totally understand the situation, i just don't want to use it if it is not under active development for a long time, and saying "when it's ready" is not cool at all. [don't get me wrong, i respect open source software developers, i just don't like the situation.]

14

Re: Mail from gmail is rejected but others are accepted

Plus making it an iRedAPD plugin will give you full control of the functionality and improve integration. If there's anything I can help you with just let me know, quite happy with python

15

Re: Mail from gmail is rejected but others are accepted

7t3chguy wrote:

Plus making it an iRedAPD plugin will give you full control of the functionality and improve integration. If there's anything I can help you with just let me know, quite happy with python

Are you familiar with Python programming? that's great, i think we can make it.

16

Re: Mail from gmail is rejected but others are accepted

Yeah I used Python a year or so ago, so i'd need just a little bit of a refresh on it

17

Re: Mail from gmail is rejected but others are accepted

Let's chat on IRC: freenode.net, channel #iredmail.