1

Topic: Incoming mail is being rejected. Help with troubleshooting?

==== Required information ====
- iRedMail version:  0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====
It's my first time setting up a mail server. iRedMail seems to have gone on okay but incoming emails are bouncing with the following header.  Not sure where to begin troubleshooting, would someone take a look at the header (below) and give me some pointers?  Is incoming email being rejected by the server, or is it being bounced by the ISP, or someplace else?  I've never tried forwarding a port before (Netgear Nighthawk router) and I don't actually know if port 25 is being routed to the correct internal IP or not -- is there a way to test this?  Many thanks in advance.
------------------------------------------
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  neil@diaf.ca
    SMTP error from remote mail server after RCPT TO:<neil@diaf.ca>:
    host smtp.secureserver.net [72.167.238.201]: 550 #5.1.0 Address rejected.

------ This is a copy of the message's headers. ------

Return-path: <neiltholland@gmail.com>
Received: from 216-113-200-221.static-pppoe.dsl.ucc-net.ca ([216.113.200.221] helo=[10.0.0.2])
    by smtp-relay1.uniserve.net with esmtps (TLSv1:AES128-SHA:128)
    (Exim 4.72)
    (envelope-from <neiltholland@gmail.com>)
    id 1WatLa-0003to-Ls
    for neil@diaf.ca; Thu, 17 Apr 2014 13:55:50 -0700
Message-ID: <53503FF7.2060408@gmail.com>
Date: Thu, 17 Apr 2014 14:56:23 -0600
From: Neil Holland <neiltholland@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: neil@diaf.ca
Subject: test100
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Sender-Info: neiltholland@gmail.com
X-Scanner: OK. Scanned.
X-Uniserve-Spam-Score: 3.4 34 (+++)
--------------------------------------

----

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

2

Re: Incoming mail is being rejected. Help with troubleshooting?

neiltholland wrote:

host smtp.secureserver.net [72.167.238.201]: 550 #5.1.0 Address rejected.

Error message "Address rejected" is not generated by Postfix, so here comes the questions:

MX record of your domain 'diaf.ca' points to server 'smtp.secureserver.net', is this what you want? Other mail servers (Gmail, in you case) will connect mail servers listed in MX record, so you must use right server name(s) in MX record.

3

Re: Incoming mail is being rejected. Help with troubleshooting?

You're right, I'd messed up the MX record.  Thank you for pointing it out.

Emails aren't bouncing now BUT they aren't getting to the mailbox either.  Do you have any suggestions for confirming that 25 is open and is being forwarded to the correct internal IP?

Thanks again.

4

Re: Incoming mail is being rejected. Help with troubleshooting?

You should check Postfix log file to see whether sender mail server was talking to your server first.