1

Topic: Only certain mails are received

==== Required information ====
- iRedMail version:  0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mysql
- Linux/BSD distribution name and version:  Ubuntu 12.04.2
- Related log if you're reporting an issue: /var/log/mail.log (attached)
====

Hi guys,

I set up iredmail and I am able to send emails with out any issue.
However, I am unable to receive emails from most email address.
At first I was only able to receive from hotmail. Even gmail was not getting delivered.
Then I checked the /etc/postfix/helo_access.pcre file to see that gmail to be blacklisted.
Once I enable that I received from gmail.
But I still can't receive emails from any others.

I send a mail to another email address I have (me@myotherdomain.com) and that mail box was able to receive it.
But when I hit reply, it gets bounced back mentioning "No Such User Here". But it can't be because I have that user created, send the email through roundcube and all I was doing is hitting the reply button.

Upon further inspection of awstat config?=smtp
I have 3 SMTP error code types.
451    Requested mail action aborted: error in processing
504    Command parameter not implemented
999    Unknown error

When an email is bounced the 451 number of emails gets increased.

I have attached the /var/log/mail.log looks to be showing some info but I can't understand them since my linux knowledge is close to zero.

Your help is greatly appreciated.

----

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

2

Re: Only certain mails are received

elabuwa wrote:

Then I checked the /etc/postfix/helo_access.pcre file to see that gmail to be blacklisted.

iRedMail doesn't block the real Gmail message in this file, the item 'gmail.com' in this file is used to reject forged emails. So, you're wrong to remove it in this file.

elabuwa wrote:

it gets bounced back mentioning "No Such User Here"

This error message is not generated by Postfix, that means that server connected to a wrong mail server (not your iRedMail server). So you have to check your DNS records (MX and/or A records) first.

elabuwa wrote:

I have attached the /var/log/mail.log looks to be showing some info but I can't understand them since my linux knowledge is close to zero.

No attachment in your post. It's better to paste related log in your post directly, not attach a file.

3

Re: Only certain mails are received

Hi Zhang,

Thank you for the reply.
I will uncomment the entry for the gmail line.

I checked the DNS entries for my domain (I am using digital ocean if it helps)
Below is the only MX entry I have.
MX 1    mail.mydomain.com. (Should this be just mydomain.com.)?

The only A record (with @ is pointing towards my server Ip)
@    IN A    128.199.xxx.xx.

Those are the only ones I think exist in relation to mail.
Do those sound right?

4

Re: Only certain mails are received

elabuwa wrote:

Below is the only MX entry I have.
MX 1    mail.mydomain.com. (Should this be just mydomain.com.)?

*) Is it MX record of your mail domain name 'mydomain.com'? If so, it's correct.
*) Do you have correct A record for 'mail.mydomain.com'?

5

Re: Only certain mails are received

Hi Zhang,

Yes that is the only MX record I have.
I added a new A record pointing to mail.mydomain.com.
Is the entry for the MX correct? Should it be mail.mydomain.com or just mydomain.com?

Thank you in advance

6

Re: Only certain mails are received

elabuwa wrote:

I added a new A record pointing to mail.mydomain.com.

Would you mind telling us your real domain name?

7

Re: Only certain mails are received

Hi Zhang,

Its my-acc.com.
So far, I have added an "A" record for mail towards it's ip 128.199.244.37.
Another MX record with "1" towards my-acc.com.

8

Re: Only certain mails are received

I checked DNS records of your domain:

my-acc.com.        1795    IN    A    128.199.244.37
my-acc.com.        1799    IN    MX    1 my-acc.com.
mail.my-acc.com.    1799    IN    A    128.199.244.37

It's fine because 'my-acc.com' and 'mail.my-acc.com' point to same IP address. but it's better to point MX record of 'my-acc.com' to 'mail.my-acc.com', this is not necessary in your case.

Let's back to your original issue:

elabuwa wrote:

I send a mail to another email address I have (me@myotherdomain.com) and that mail box was able to receive it.
But when I hit reply, it gets bounced back mentioning "No Such User Here".

Does Postfix log any info in its log file (/var/log/mail.log) about your reply message? If yes, that means your DNS records are correct, sender server connected to correct server, and please paste full smtp log here to help troubleshoot. If no, still DNS issue.

9

Re: Only certain mails are received

Check out: http://mxtoolbox.com/domain/my-acc.com/ … ndmonitors

When I setup my email server I was having a similar issue that was related my MX and SPF records. I had to call our ISP to setup the SPF record, but we host our server in house.