1

Topic: INot able to recieve email on newly configured iredmail application

======== Required information ====
- iRedMail version: iRedMail-0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Linux/BSD distribution name and version:  RHEL
- Related log if you're reporting an issue:
====

Hello,

Problem Statement

I have installed iredmail on rhel hosted on an Amazon cloud server. However I am able to login to the web control panel, create a domain etcc… and add users. For one user I have added, I am able to send an email out, but when I reply to this email (i.e sending it back to the originating address), I get

Delivery to the following recipient failed permanently:

     help@isdcgroup.in

Technical details of permanent failure:
DNS Error: DNS server returned answer with no data

----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=JHbjBQjciubCFQdDFuIBIqHx4P420Fa29jj2BNxuHUg=;
        b=s5szCxdsrnhnFeyTOVe48iglvp2BNhR9oE96sWXESsZvZ0gGZ/YCB5N6vjAQxzQMmR
         ooz1daSNrbYW3fXE2SWy1BlVTrLRQW8vmXTdCDTH+PEUTzc0sWpLz8A6XhDocL3IWLJU
         MXhP0BE2S4TNCrH597R5e21aW75MBwLqWbHgMARP+i5AXk4q1NXvJiAjUdtUyDBtnNZC
         nntRLi2EKy/m6PQ9RYdDXE6NLsnUo0T8l+Ts8rPYVQthN6AINuK6ZqxdIb/UbUZYlDMY
         8DVmH+Xs+Q8NxMVYmHUVQ3qKL9l8ZVoFa8SCRcxrAhSXppFRvnC+Mkw1KfTf/aCADmai
         wtNQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=JHbjBQjciubCFQdDFuIBIqHx4P420Fa29jj2BNxuHUg=;
        b=IM41EPamnl+UWfEqyUxu9hrqOPJ8YE/cw/BNgXpGM5lBKdzL/Ahpx9HmMPJYU/QsdP
         CDwQJwOKlM+TADPHN6bXycaB0iT4Q86gk2NPKsbB1pBS7wFDjL8R6wFBmnNe0zMTjwNd
         0Er7aIRsWzo78kRttJOMT/bfIu7BJHOWrSEOlrnS+VG0MXy9uQw5hogYq+CzHE0ezeaB
         mVPoecq9RQ+l+u2KzoNeV5z4jHbf3KHrVSND5m50vdIPfl3+E1Tyo5qHYhAzJX/qEqc4
         JqPkbBWEIpoV7uW+zhQNYzNRl4gSDax/BK3E0T9+Ayp6GPI6jzxlX7nW1GirSZKJ9Aog
         pflw==
MIME-Version: 1.0 

What I have tried to resolve this issue

After installing the application, I had tried changing my hostname. I did the following changes

Changed the hostname, edited the following files, With this my hostname is kept as mail.isdcgroup.com

/etc/hosts
/etc/sysconfig/network

I wrote to amazon to set my reverse dns and the reverse DNS is set correctly

[root@mail ~]# dig mail.isdcgroup.in

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> mail.isdcgroup.in
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20517
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.isdcgroup.in.             IN      A

;; ANSWER SECTION:
mail.isdcgroup.in.      28800   IN      A       54.225.88.30

;; Query time: 16 msec
;; SERVER: 172.16.0.23#53(172.16.0.23)
;; WHEN: Wed Jul 24 07:18:29 2013
;; MSG SIZE  rcvd: 51

[root@mail ~]# dig -x 54.225.88.30

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> -x 54.225.88.30
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65159
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;30.88.225.54.in-addr.arpa.     IN      PTR

;; ANSWER SECTION:
30.88.225.54.in-addr.arpa. 300  IN      PTR     mail.isdcgroup.in.

;; Query time: 10 msec
;; SERVER: 172.16.0.23#53(172.16.0.23)
;; WHEN: Wed Jul 24 07:19:40 2013
;; MSG SIZE  rcvd: 74

I have set the A record, MX record and TXT record in to my DNS (of my domain vendor )

Please see attachment1 for screenshots

The txt record setting was as per the suggestion on a google support post, I had just done the changes and I am assuming my dns update will take some time as the below out put run just now returns

[root@mail ~]# amavisd -c /etc/amavisd/amavisd.conf testkeys
TESTING#1: dkim._domainkey.isdcgroup.in      => invalid (public key: not available)

Below is my “netstat –tap” output..

[root@mail ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 *:submission                *:*                         LISTEN      8166/master
tcp        0      0 isdcgroup.in:distinct32     *:*                         LISTEN      7999/amavisd (maste
tcp        0      0 *:pop3                      *:*                         LISTEN      1373/dovecot
tcp        0      0 isdcgroup.in:10031          *:*                         LISTEN      1646/policyd
tcp        0      0 *:imap                      *:*                         LISTEN      1373/dovecot
tcp        0      0 *:sunrpc                    *:*                         LISTEN      922/rpcbind
tcp        0      0 *:33620                     *:*                         LISTEN      952/rpc.statd
tcp        0      0 *:ssh                       *:*                         LISTEN      935/sshd
tcp        0      0 isdcgroup.in:ipp            *:*                         LISTEN      1020/cupsd
tcp        0      0 *:smtp                      *:*                         LISTEN      8166/master
tcp        0      0 *:sieve                     *:*                         LISTEN      1373/dovecot
tcp        0      0 isdcgroup.in:cbt            *:*                         LISTEN      1631/python
tcp        0      0 *:imaps                     *:*                         LISTEN      1373/dovecot
tcp        0      0 *:pop3s                     *:*                         LISTEN      1373/dovecot
tcp        0      0 isdcgroup.in:10024          *:*                         LISTEN      7999/amavisd (maste
tcp        0      0 isdcgroup.in:10025          *:*                         LISTEN      8166/master
tcp        0      0 *:mysql                     *:*                         LISTEN      1349/mysqld
tcp        0      0 isdcgroup.in:mysql          isdcgroup.in:51483          ESTABLISHED 1349/mysqld
tcp        0      0 isdcgroup.in:51467          isdcgroup.in:mysql          ESTABLISHED 8001/amavisd (ch1-a
tcp        0   1084 ip-10-164-108-135.ec2.i:ssh 115.241.190.149:49704       ESTABLISHED 7737/sshd
tcp        0      0 isdcgroup.in:mysql          isdcgroup.in:51467          ESTABLISHED 1349/mysqld
tcp        0      0 isdcgroup.in:51483          isdcgroup.in:mysql          ESTABLISHED 8002/amavisd (ch1-a
tcp        0      0 *:46187                     *:*                         LISTEN      952/rpc.statd
tcp        0      0 *:sunrpc                    *:*                         LISTEN      922/rpcbind
tcp        0      0 *:http                      *:*                         LISTEN      1505/httpd
tcp        0      0 *:ssh                       *:*                         LISTEN      935/sshd
tcp        0      0 localhost6.localdomain6:ipp *:*                         LISTEN      1020/cupsd
tcp        0      0 *:https                     *:*                         LISTEN      1505/httpd

To test my MX record updation, I tested my SNMP connection using mxtoolbox.com. Below is the output from the tests..


Attachment2 and Attachment3


However I am getting an connection lost in the SMTP transcript which I am unable to comprehend.

I am not able to hit at any point beyond this and need help in figuring out. Please extend your help with troubleshooting tips or redirect me to posts which has been previously raised for this issue (I could find only a recent one and I have done all the troubleshooting mentioned in there)

Post's attachments

attachment1.png 53.62 kb, file has never been downloaded. 

attachment2.png 103.5 kb, file has never been downloaded. 

attachment3.png 22.81 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: INot able to recieve email on newly configured iredmail application

Your email domain name is 'isdcgroup.in', so you must setup correct A and MX records for this domain name, not "mail.isdcgroup.in".

3

Re: INot able to recieve email on newly configured iredmail application

Hello, Thank you so much for the revert, I applied the said changes, However when I try to test by sending an email again, it says

=================================

Delivery to the following recipient failed permanently:

     prashanth@isdcgroup.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain isdcgroup.com by isdcgroup.com. [72.249.167.73].

The error that the other server returned was:
550 No Such User Here"

==================================================================

Appreciate the help

4

Re: INot able to recieve email on newly configured iredmail application

Do you have mail user "prashanth _at_ isdcgroup.com" hosted on your server? If no, then it's a normal reject.

The most confuse thing is, the error message "550 No Such User Here" doesn't look like returned by Postfix. I guess you point A/MX records to an incorrect mail server which doesn't run Postfix as MTA.

5

Re: INot able to recieve email on newly configured iredmail application

Yes, there is a user prashanth@isdcgroup.in on the server and this user is able to send/recieve email internally, for eg prashanth@isdcgroup.in  --- > infor@isdcgroup.in and vice versa. Also prashanth@isdcgroup.in is able to send email to an y gmail account. Issue is only when receiving from external mail accounts. I am using Iredmail which used Postfix. As per your suggestion above I have changed my DNS settings to point to isdcgroup.in . Could you help me with a document (if prepared) of the trouble shooting that should be done in such cases, I have come across some posts earlier in the support forum where users have had this problem, but there seems no logical closure... help much appreciated, thanks..

6

Re: INot able to recieve email on newly configured iredmail application

I have still not been able to solve sad , Need help ...

All my DNS entries looks to be OK, my domain is isdcgroup.in and my server hostname is mail.isdcgroup.in , Will this make a difference or rather could this be a culprit ? , If it is, I can do changes in /etc/hosts and /etc/sysconfig/network to change the domain name, where else in iredmail configs (dovecot, postfix config etc...) do I have to do the changes, Please help....

7

Re: INot able to recieve email on newly configured iredmail application

What's the newest error message?

8

Re: INot able to recieve email on newly configured iredmail application

It is still the same old thing, the same error, I could not proceed beyond it, tried out everything on the DNS front, Please tell me if there is any other option other than re-installation sad , I want to keep it as the last option, thanks

9

Re: INot able to recieve email on newly configured iredmail application

I checked your DNS setting with dig:

1: A record: isdcgroup.in -> 54.225.88.30
2: MX record: isdcgroup.in -> isdcgroup.in (it means emails sent from Gmail/Hotmail/etc to user@isdcgroup.in will be relayed to the server which defined in A record of 'isdcgroup.in).

So far so good.

As you mentioned, you have the same error:

Google tried to deliver your message, but it was rejected by the server for the recipient domain isdcgroup.com by isdcgroup.com. [72.249.167.73].

The error that the other server returned was:
550 No Such User Here"

I repeat myself:

1: obviously, Gmail contacts IP 72.249.167.73 instead of the one defined in you MX/A record: 54.225.88.30. This means maybe your DNS provider caches your DNS records for some time, or, you have WRONG DNS record.

2. "550 No Such User Here" is not a Postfix error message. Postfix should return "User not exist in local mailbox" or something like this if user not exist, not "No Such User Here".

So, it must be a DNS related issue.

10

Re: INot able to recieve email on newly configured iredmail application

It was all a stupidity on my part sad , I was sending a mail to @isdcgroup.com whereas my domain was @isdcgroup.in. Sincerely apologize of this. I am able to receive mail now. However it takes some time after it has hit my server for the email to come in to my inbox... I get the below in my mail.log when the email 1st hits the server..

Aug 16 06:20:56 mail postfix/smtpd[12034]: connect from unknown[209.85.214.66]
Aug 16 06:20:57 mail policyd: connection from: 127.0.0.1 port: 59735 slots: 0 of 2044 used
Aug 16 06:20:57 mail policyd: rcpt=13, greylist=new, host=209.85.214.66 (unknown), from=sarasatya06@gmail.com, to=satya.s@isdcgroup.in, size=0
Aug 16 06:20:57 mail postfix/smtpd[12034]: NOQUEUE: reject: RCPT from unknown[209.85.214.66]: 450 4.7.1 <satya.s@isdcgroup.in>: Recipient address rejected: Policy Rejection- Please try later.; from=<sarasatya06@gmail.com> to=<satya.s@isdcgroup.in> proto=ESMTP helo=<mail-bk0-f66.google.com>
Aug 16 06:20:57 mail postfix/smtpd[12034]: disconnect from unknown[209.85.214.66]


I am not able to understand what Postfix means by "Policy Rejection" and what it means by "Recipient address rejected"

After some time however there has been a retry and the mail gets delivered to the inbox..

Aug 16 06:38:52 mail postfix/smtpd[12161]: connect from unknown[209.85.214.68]
Aug 16 06:38:53 mail policyd: connection from: 127.0.0.1 port: 59844 slots: 0 of 2044 used
Aug 16 06:38:53 mail policyd: rcpt=15, greylist=update, host=209.85.214.68 (unknown), from=sarasatya06@gmail.com, to=satya.s@isdcgroup.in, size=0
Aug 16 06:38:53 mail postfix/smtpd[12161]: 60F7323C76: client=unknown[209.85.214.68]
Aug 16 06:38:53 mail postfix/cleanup[12167]: 60F7323C76: message-id=<CA+2_SMRqqx3SbjS4U4F95BAyXOX0URsQ9eW7WPV4WZjXedF-5g@mail.gmail.com>
Aug 16 06:38:53 mail postfix/qmgr[10076]: 60F7323C76: from=<sarasatya06@gmail.com>, size=1846, nrcpt=1 (queue active)
Aug 16 06:38:53 mail postfix/smtpd[12161]: disconnect from unknown[209.85.214.68]
Aug 16 06:38:56 mail postfix/smtpd[12174]: connect from isdcgroup.in[127.0.0.1]
Aug 16 06:38:56 mail postfix/smtpd[12174]: 0B7FD23C77: client=isdcgroup.in[127.0.0.1]
Aug 16 06:38:56 mail postfix/cleanup[12167]: 0B7FD23C77: message-id=<CA+2_SMRqqx3SbjS4U4F95BAyXOX0URsQ9eW7WPV4WZjXedF-5g@mail.gmail.com>
Aug 16 06:38:56 mail postfix/qmgr[10076]: 0B7FD23C77: from=<sarasatya06@gmail.com>, size=2437, nrcpt=1 (queue active)
Aug 16 06:38:56 mail postfix/smtpd[12174]: disconnect from isdcgroup.in[127.0.0.1]
Aug 16 06:38:56 mail amavis[11654]: (11654-02) Passed CLEAN {RelayedInternal}, LOCAL [209.85.214.68]:51134 [209.85.214.68] <sarasatya06@gmail.com> -> <satya.s@isdcgroup.in>, Message-ID: <CA+2_SMRqqx3SbjS4U4F95BAyXOX0URsQ9eW7WPV4WZjXedF-5g@mail.gmail.com>, mail_id: Fgvh7K8xNpBv, Hits: -99.275, size: 1846, queued_as: 0B7FD23C77, dkim_sd=20120113:gmail.com, 2466 ms
Aug 16 06:38:56 mail postfix/smtp[12171]: 60F7323C76: to=<satya.s@isdcgroup.in>, relay=127.0.0.1[127.0.0.1]:10024, delay=3, delays=0.47/0.03/0.05/2.5, 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 0B7FD23C77)
Aug 16 06:38:56 mail postfix/qmgr[10076]: 60F7323C76: removed
Aug 16 06:38:56 mail postfix/pipe[12175]: 0B7FD23C77: to=<satya.s@isdcgroup.in>, relay=dovecot, delay=0.34, delays=0.02/0.06/0/0.26, dsn=2.0.0, status=sent (delivered via dovecot service)
Aug 16 06:38:56 mail postfix/qmgr[10076]: 0B7FD23C77: removed

See the time gap is almost ~20 mins. Kindly help in understanding from your rich experience and knowledge, Thank You

PS. Thank You once again for bearing with all my stupid issues and patiently going through and answering the queries... Appreciate...

11

Re: INot able to recieve email on newly configured iredmail application

Sorry, I cam across this too on one of your old support posts,

Disable greylisting in /etc/policyd.conf, then restart policyd service.

Restarted, working, thanks a ton