1 (edited by mamun.388 2015-06-18 11:54:54)

Topic: gmail and yahoo mail problem

==== Required information ====
- iRedMail version: 0.81
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): roundqube
- Linux/BSD distribution name and version:  centos5.6
- Related log if you're reporting an issue:
====
i am facing problem on my iredmail, not able recive mail from gmail and yahoo.
Jun 17 16:04:19 mail postfix/smtpd[24452]: NOQUEUE: reject: RCPT from unknown[209.85.192.48]: 450 4.7.1 <ss@example.com>: Recipient address rejected: Policy Rejection- Please try later.; from=<sss@gmail.com> to=<ss@example.com> proto=ESMTP helo=<mail-qg0-f48.google.com>

after rebooted it works but now same problem! now again reciving mail from gmail and yahoo.... outgoing is fine problem is incomming... please help

----

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

2 (edited by schnappi 2015-06-18 02:13:59)

Re: gmail and yahoo mail problem

Some suggestions:

1.) Check that outgoing ports 25 and 587 (not sure which iRedMail uses) are open at machine firewall and router level if behind a  NAT, if you use port 465 make sure this is open too

2.) Check that have a DNS TXT entry with your SPF record

3.) Check that you have a static IP with a reverse PTR record and the corresponding DNS TXT entry
(Know for a fact that AOL rejects mail that fails a reverse PTR lookup...not sure about Yahoo or Google)

3

Re: gmail and yahoo mail problem

mamun.388 wrote:

incomming is fine but problem in outgoing.

The log you pasted is related to incoming, please show us log related to outgoing issue.

4

Re: gmail and yahoo mail problem

ZhangHuangbin wrote:
mamun.388 wrote:

incomming is fine but problem in outgoing.

The log you pasted is related to incoming, please show us log related to outgoing issue.

sorry problem is incomming...:( outgoing is fine.

5

Re: gmail and yahoo mail problem

Then please paste the new error message.

6

Re: gmail and yahoo mail problem

Jun 19 02:34:00 mail policyd: rcpt=163, greylist=new, host=87.126.68.178 (unknown), from=hrvg@87-126-68-178.btc-net.bg, to=hr@example.com, size=0
Jun 19 08:34:00 mail postfix/smtpd[22138]: NOQUEUE: reject: RCPT from unknown[87                                                      .126.68.178]: 450 4.7.1 <hr@example.com>: Recipient address rejected: Policy Rejection- Please try later.; from=<hrvg@87-126-68-178.btc-net.bg> to=<hr@example.com> proto=ESMTP helo=<87-126-68-178.btc-net.bg>
Jun 19 08:34:00 mail postfix/smtpd[22138]: disconnect from unknown[87.126.68.178 ]
Jun 19 08:37:20 mail postfix/anvil[22140]: statistics: max connection rate 1/60s for (smtp:87.126.68.178) at Jun 19 08:33:57
Jun 19 08:37:20 mail postfix/anvil[22140]: statistics: max connection count 1 for (smtp:87.126.68.178) at Jun 19 08:33:57
Jun 19 08:37:20 mail postfix/anvil[22140]: statistics: max cache size 1 at Jun 19 08:33:57
Jun 19 08:43:05 mail postfix/qmgr[25838]: 92E5613A80EE: from=<>, size=3183, nrcpt=1 (queue active)
Jun 19 08:43:05 mail postfix/qmgr[25838]: CE79F13A8E7C: from=<root@mail.example.com>                                                      , size=2463, nrcpt=1 (queue active)
Jun 19 08:43:05 mail postfix/qmgr[25838]: D412913A8106: from=<>, size=4218, nrcp                                                      t=1 (queue active)
Jun 19 08:43:05 mail postfix/local[22455]: 92E5613A80EE: to=<root@mail.example.com>,                                                       relay=local, delay=13200, delays=13200/0.03/0/0.08, dsn=4.3.0, status=deferred                                                       (temporary failure)
Jun 19 08:43:05 mail postfix/local[22456]: CE79F13A8E7C: to=<root@mail.example.com>,                                                       relay=local, delay=18594, delays=18594/0.01/0/0.08, dsn=4.3.0, status=deferred                                                       (temporary failure)
Jun 19 08:43:05 mail postfix/local[22455]: D412913A8106: to=<root@mail.example.com>,                                                       relay=local, delay=17200, delays=17200/0.09/0/0.05, dsn=4.3.0, status=deferred                                                       (temporary failure)
Jun 19 08:34:00 mail postfix/smtpd[22138]: disconnect from unknown[87.126.68.178]
Jun 19 08:37:20 mail postfix/anvil[22140]: statistics: max connection rate 1/60s for (smtp:87.126.68.178) at Jun 19 08:33:57
Jun 19 08:37:20 mail postfix/anvil[22140]: statistics: max connection count 1 for (smtp:87.126.68.178) at Jun 19 08:33:57
Jun 19 08:37:20 mail postfix/anvil[22140]: statistics: max cache size 1 at Jun 19 08:33:57
Jun 19 08:43:05 mail postfix/qmgr[25838]: 92E5613A80EE: from=<>, size=3183, nrcpt=1 (queue active)
Jun 19 08:43:05 mail postfix/qmgr[25838]: CE79F13A8E7C: from=<root@mail.example.com>, size=2463, nrcpt=1 (queue active)
Jun 19 08:43:05 mail postfix/qmgr[25838]: D412913A8106: from=<>, size=4218, nrcpt=1 (queue active)
Jun 19 08:43:05 mail postfix/local[22455]: 92E5613A80EE: to=<root@mail.example.com>, relay=local, delay=13200, delays=13200/0.03/0/0.08, dsn=4.3.0, status=deferred (temporary failure)
Jun 19 08:43:05 mail postfix/local[22456]: CE79F13A8E7C: to=<root@mail.example.com>, relay=local, delay=18594, delays=18594/0.01/0/0.08, dsn=4.3.0, status=deferred (temporary failure)
Jun 19 08:43:05 mail postfix/local[22455]: D412913A8106: to=<root@mail.example.com>, relay=local, delay=17200, delays=17200/0.09/0/0.05, dsn=4.3.0, status=deferred (temporary failure)

7 (edited by mamun.388 2015-06-19 12:09:23)

Re: gmail and yahoo mail problem

Jun 19 03:25:15 mail policyd: rcpt=165, greylist=new, host=209.85.214.176 (unknown), from=sro09@gmail.com, to=ahossain@example.com, size=70750
Jun 19 09:25:15 mail postfix/smtpd[23487]: NOQUEUE: reject: RCPT from unknown[209.85.214.176]: 450 4.7.1 <ahossain@example.com>: Recipient address rejected: Policy Rejection- Please try later.; from=<sro09@gmail.com> to=<ahossain@example.com> proto=ESMTP helo=<mail-ob0-f176.google.com>
Jun 19 09:25:15 mail postfix/smtpd[23487]: disconnect from unknown[209.85.214.176]

8

Re: gmail and yahoo mail problem

Policy rejection is caused by greylisting, you should be able to receive this email in up to 30 minutes (maybe longer, but it will eventually arrive in your mailbox).

I don't understand what the real issue is.

mamun.388 wrote:

Jun 19 08:43:05 mail postfix/local[22455]: D412913A8106: to=<root@mail.example.com>, relay=local, delay=17200, delays=17200/0.09/0/0.05, dsn=4.3.0, status=deferred (temporary failure)

Cannot deliver email to root user, do you have an alias for root user in /etc/postfix/aliases?

9

Re: gmail and yahoo mail problem

yes

# Basic system aliases -- these MUST be present.
mailer-daemon:  postmaster
postmaster:     root

# General redirections for pseudo accounts.
bin:            root
daemon:         root
adm:            root
lp:             root
sync:           root
shutdown:       root
halt:           root
mail:           root
news:           root
uucp:           root
operator:       root
games:          root
gopher:         root
ftp:            root
nobody:         root
radiusd:        root
nut:            root
dbus:           root
vcsa:           root
canna:          root
wnn:            root
rpm:            root
nscd:           root
pcap:           root
apache:         root
webalizer:      root
dovecot:        root
fax:            root
quagga:         root
radvd:          root
pvm:            root
amanda:         root
privoxy:        root
ident:          root
named:          root
xfs:            root
gdm:            root
mailnull:       root
postgres:       root
sshd:           root
smmsp:          root
postfix:        root
netdump:        root
ldap:           root
squid:          root
ntp:            root
mysql:          root
desktop:        root

10

Re: gmail and yahoo mail problem

sir, actually problem is not getting incomming mail from others like gmail. yahoo etc.. but outgoing mail is wokring fine. this is the issue.

11

Re: gmail and yahoo mail problem

I suggest you try this:

*) Add below line in /etc/postfix/aliases:

root: username@domain.com

Replace 'username@domain.com' by a real email address which can receive email. e.g. your gmail address.
*) Run command:

# postalias /etc/postfix/aliases

This will fix below error in log file:

mamun.388 wrote:

Jun 19 08:43:05 mail postfix/local[22455]: 92E5613A80EE: to=<root@mail.example.com>, relay=local, delay=13200, delays=13200/0.03/0/0.08, dsn=4.3.0, status=deferred (temporary failure)

Let's see what error message in this notification email.

12 (edited by mamun.388 2015-06-19 13:30:25)

Re: gmail and yahoo mail problem

Subject    Undelivered Mail Returned to Sender
From    MAILER-DAEMON@mail.example.comAdd contact
To    root@mail.example.comAdd contact
Date    Today 03:56 AM
Delivery reportUndelivered Message
This is the mail system at host mail.example.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<root@mail.example.com>: temporary failure
Reporting-MTA: dns; mail.example.com
X-Postfix-Queue-ID: 41BFD13A80EE
X-Postfix-Sender: rfc822; root@mail.example.com
Arrival-Date: Thu, 18 Jun 2015 03:37:01 +0600 (BDT)

Final-Recipient: rfc822; root@mail.example.com
Original-Recipient: rfc822;root@mail.example.com
Action: failed
Status: 4.3.0
Diagnostic-Code: x-unix; temporary failure
Received: from localhost (unknown [127.0.0.1])
    by mail.example.com (Postfix) with ESMTP id 41BFD13A80EE
    for <root@mail.example.com>; Thu, 18 Jun 2015 03:37:01 +0600 (BDT)
X-Virus-Scanned: amavisd-new at mail.example
Received: from mail.ecampl;e ([127.0.0.1])
    by localhost (mail.example [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id 4yVx+P327wG7 for <root@mail.example.com>;
    Thu, 18 Jun 2015 03:36:48 +0600 (BDT)
Received: from mail.example (unknown [127.0.0.1])
    by mail.example (Postfix) with ESMTPS id 0B39013A80DA
    for <root@mail.example.com>; Thu, 18 Jun 2015 03:36:48 +0600 (BDT)
Received: (from root@localhost)
    by mail.example (8.13.8/8.13.8/Submit) id t5HLU1Nx017870;
    Thu, 18 Jun 2015 03:30:01 +0600
Date: Thu, 18 Jun 2015 03:30:01 +0600
Message-Id: <201506172130.t5HLU1Nx017870@mail.example.com>
From: root@mail.example.com (Cron Daemon)
To: root@mail.example.com
Subject: Cron <root@mail> bash /var/vmail/backup/backup_mysql.sh
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

bzip2: Output file /var/vmail/backup/mysql/2015/06/18/mysql-2015.06.18.03.30.01.sql.bz2 already exists.
bzip2: Output file /var/vmail/backup/mysql/2015/06/18/vmail-2015.06.18.03.30.01.sql.bz2 already exists.
==> Backup completed successfully.
==> Detailed log (/var/vmail/backup/mysql/2015/06/18/2015.06.18.03.30.01.log):
=========================
* Starting backup: 2015.06.18.03.30.01.
* Backup directory: /var/vmail/backup/mysql/2015/06/18.
* Backing up databases ...
  - mysql [DONE]
  - vmail [DONE]
  - mysql [DONE]
  - vmail [DONE]
  - policyd [DONE]
  - amavisd [DONE]
  - roundcubemail [DONE]
  - iredadmin [DONE]
* File size:
----
121M    /var/vmail/backup/mysql/2015/06/18/amavisd-2015.06.18.03.30.01.sql.bz2
8.0K    /var/vmail/backup/mysql/2015/06/18/iredadmin-2015.06.18.03.30.01.sql.bz2
440K    /var/vmail/backup/mysql/2015/06/18/mysql-2015.06.18.03.30.01.sql
88K    /var/vmail/backup/mysql/2015/06/18/mysql-2015.06.18.03.30.01.sql.bz2
20K    /var/vmail/backup/mysql/2015/06/18/policyd-2015.06.18.03.30.01.sql.bz2
48K    /var/vmail/backup/mysql/2015/06/18/roundcubemail-2015.06.18.03.30.01.sql.bz2
276K    /var/vmail/backup/mysql/2015/06/18/vmail-2015.06.18.03.30.01.sql
44K    /var/vmail/backup/mysql/2015/06/18/vmail-2015.06.18.03.30.01.sql.bz2
----
* Backup completed (Success? YES).

13

Re: gmail and yahoo mail problem

This is not related to your Gmail/Yahoo issue. Please send some more testing email from Gmail/Yahoo, and let's see whether your mailbox will receive any message.

14

Re: gmail and yahoo mail problem

Jun 19 11:41:35 mail postfix/smtpd[8810]: NOQUEUE: reject: RCPT from unknown[98.136.216.139]: 450 4.7.1 <mamun@example>: Recipient address rejected: Policy Rejection- Please try later.; from=<khan_cse2004@yahoo.com> to=<mamun@example> proto=ESMTP helo=<nm34-vm10.bullet.mail.gq1.yahoo.com>

15

Re: gmail and yahoo mail problem

Again, this is greylisting, not an error. Email will arrive in your mailbox in up to 30 minutes.

Or, you can disable greylisting in Policyd/Cluebringer temporarily for testing.

16

Re: gmail and yahoo mail problem

i have disable graylisting now problem solved. but if gralylisting enable then we don't get mail!.=(