1

Topic: Relay SMTP works but does not work without it

==== Required information ====
- Linux/BSD distribution name and version: Ubuntu 14.X
- Store mail accounts in which backend (LDAP):
- Web server (Apache):
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

So I have been banging my head for the weekend against a wall. I have setup iRedMail which is great. Have run into a lot of the standard issues others have including blocked port 25 among other issues. So I have changed my master.cf file to go to 587 and opened up my firewall correctly.

Sending an email does not work on 587 with out a relay. So I tried setting up a relay through my gmail account. Once I got it working it goes through a relay fine, however I do not want this as a solution.

Below is my tail of mail.log. Any thoughts?
Nov  1 21:41:49 darlingdeardesigns postfix/smtp[6531]: connect to alt1.gmail-smtp-in.l.google.com[64.233.190.26]:25: Connection timed out
Nov  1 21:42:19 darlingdeardesigns postfix/smtp[6531]: connect to alt2.gmail-smtp-in.l.google.com[74.125.24.27]:25: Connection timed out
Nov  1 21:42:49 darlingdeardesigns postfix/smtp[6531]: connect to alt3.gmail-smtp-in.l.google.com[74.125.133.27]:25: Connection timed out
Nov  1 21:43:19 darlingdeardesigns postfix/smtp[6531]: connect to alt4.gmail-smtp-in.l.google.com[173.194.65.27]:25: Connection timed out
Nov  1 21:43:19 darlingdeardesigns postfix/smtp[6531]: F06DF2B831A3: to=<williamwoodhams@gmail.com>, relay=none, delay=732, delays=581/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.65.27]:25: Connection timed out)
Nov  1 21:45:49 darlingdeardesigns postfix/qmgr[6427]: 41C442B831A5: from=<sales@darlingdeardesigns.com>, size=1098, nrcpt=1 (queue active)
Nov  1 21:46:19 darlingdeardesigns postfix/smtp[6556]: connect to gmail-smtp-in.l.google.com[74.125.29.27]:25: Connection timed out
Nov  1 21:46:49 darlingdeardesigns postfix/smtp[6556]: connect to alt1.gmail-smtp-in.l.google.com[64.233.190.27]:25: Connection timed out
Nov  1 21:47:19 darlingdeardesigns postfix/smtp[6556]: connect to alt2.gmail-smtp-in.l.google.com[74.125.24.27]:25: Connection timed out
Nov  1 21:47:50 darlingdeardesigns postfix/smtp[6556]: connect to alt3.gmail-smtp-in.l.google.com[74.125.133.27]:25: Connection timed out

----

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

2

Re: Relay SMTP works but does not work without it

GreenMan415 wrote:

Nov  1 21:41:49 darlingdeardesigns postfix/smtp[6531]: connect to alt1.gmail-smtp-in.l.google.com[64.233.190.26]:25: Connection timed out

Network issue, check your network settings (e.g. firewall, route) to make sure your server can connect to Gmail server.

By the way, are you using a dynamic IP address?

3

Re: Relay SMTP works but does not work without it

ZhangHuangbin wrote:
GreenMan415 wrote:

Nov  1 21:41:49 darlingdeardesigns postfix/smtp[6531]: connect to alt1.gmail-smtp-in.l.google.com[64.233.190.26]:25: Connection timed out

Network issue, check your network settings (e.g. firewall, route) to make sure your server can connect to Gmail server.

By the way, are you using a dynamic IP address?


Yes I am on a dynamic IP, I am trying to not use gmail as a relay point if I do it works fine. Once I turn it off it breaks. Any ideas where to start troubleshooting? I could turn my firewall off on my router and my server probably and go from there?

4

Re: Relay SMTP works but does not work without it

So I turned off vfw and iptables to make sure that was not the firewall on the server and still not working. Still confused why if I put it through a relay like gmail it works.

5

Re: Relay SMTP works but does not work without it

Also I have tried a few other email addresses to send to and all have same error so I am positive it is a network issue, now where I am at a loss.