1

Topic: iRedMail on Google CE - Can't send mail to external domains

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Linux mx 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hello everybody,

I installed iRedMail 0.9.2 on a Ubuntu 14.04 LTS Google Compute Engine Instance.  I've opened up all required ports in Google Compute Engine and allowed from IPs.

I have set the hostname to mx.spclops.com, and added a mail account domain for spclops.com

I have set the MX record for spclops.com to be
;; ANSWER SECTION:
spclops.com. 299 IN MX 10 mx.spclops.com.

I have set the A record for mx.spclops.com to be
;; ANSWER SECTION:
mx.spclops.com. 299 IN A 104.197.93.231

I am using http://dns.he.net and I don't know if it supports a PTR record, however I have added the SKF and DKIM records.  DKIM keys pass the test:

root@mx:/home/jl/iRedMail-0.9.2# amavisd-new testkeys
TESTING#1: dkim._domainkey.spclops.com => pass

----

Anyway,

I can successfully receive mail from gmail.com.  My main account is postmaster@spclops.com - I can send mail to this email address from my Gmail account and successfully receive it.  I can successfully send mail to postmaster@spclops.com from my iRedMail webmaily send mail to Gmail's servers, for example - or any external domain name.

I have had this problem in the past and have always reverted to using an external mail provider, however, now, this is not an option and I would really enjoy being able to send outgoing mail to all domains.  Can someone help me with this?  Thank you!

----

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

2

Re: iRedMail on Google CE - Can't send mail to external domains

I have now added a PTR record for my IP address (104.197.93.231), pointing to my mail server hostname (mx.spclops.com):

mx.spclops.com.    300    IN    A    104.197.93.231
spclops.com.    300    IN    TXT    "v=spf1 mx mx:spclops.com -all"
dkim._domainkey.spclops.com.    300    IN    TXT    "v=DKIM1; p=" "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAonPbRZrepTWb483efbFu" "0Waqlxd0zCltJsM9IIIDhk0CaQyuBbw/rCF2kGSvd5/2BOsndgV80OdEZ6nYUp/v" "dO8M+nC6AWTWKN8Z2YB67seamWd/fDBCWviXYj+m+I+g2JOhWOitRxuCqTN0S30Q" "XZHtQiOW03rm4gVbnWTHj3jZsu4n2Zsq0c3Mo3tOEZOCrpl4J3TrRoUHJ271eZaP" "bZVwSP/3EXk/1JUB8Vj2BU5mXGzTC9jR8uTs6wTIiVc5sWyeUP893E2rkRB3yd5L" "bnq7rGWcU6KJ1XhKzd8ue/RC62qAxyIQ2HJkdy0cCuNvmtbb0ci7HuLBHccXW0ZA" "CwIDAQAB"
mx.spclops.com.    300    IN    PTR    104.197.93.231.

Is this PTR record correctly setup?

3

Re: iRedMail on Google CE - Can't send mail to external domains

As i can remember, Google CE doesn't allow you to setup mail server, they block port 25/587/...
I suggest you check Google CE documentation or contact their support to make it clear.