1 (edited by janasz 2016-03-15 22:57:56)

Topic: Can't send e-mails via smtp: Connection timed out

Hi,

I can't send emails to external servers. Receiving emails work, sending between two internal users work.

In /var/log/mail.log it looks like this:

Mar 15 15:39:49 ip-178-216-202-221 postfix/smtp[7466]: connect to alt1.gmail-smtp-in.l.google.com[74.125.23.27]:25: Connection timed out

=======

When I use telnet/wget to portquiz.net on port 25 it doesn't connect.

=======

traceroute -n -T -p 25 gmail-smtp-in.l.google.com gives:

traceroute to gmail-smtp-in.l.google.com (64.233.165.27), 30 hops max, 60 byte packets
1  * * *
2  * * *
3  * * *
4  * * *
5  * * *
6  * * *
7  * * *
8  * * *
9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

=======

My server is in cloud, none of the ports are blocked by hosting company.

=======

/etc/hosts:

127.0.0.1    localhost
127.0.0.1 literyikreski.pl

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
178.216.202.221 ip-178-216-202-221.e24cloud.com ip-178-216-202-221

=====

Mailboxes are in literyikreski.pl domain.

====

http://www.anti-abuse.org/multi-rbl-che … 16.202.221

says that i'm blocked by barracudacentral.

Can anybody help me?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Debian 7
- 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:
====

----

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

2

Re: Can't send e-mails via smtp: Connection timed out

janasz wrote:

Mar 15 15:39:49 ip-178-216-202-221 postfix/smtp[7466]: connect to alt1.gmail-smtp-in.l.google.com[74.125.23.27]:25: Connection timed out

Your server cannot connect to Google server. This is a network issue, or maybe firewall issue.

# telnet 74.125.23.27 25
Trying 74.125.23.27...
Connected to 74.125.23.27.
Escape character is '^]'.
220 mx.google.com ESMTP b20si10161497igr.12 - gsmtp

Works fine here.

Also, you should request to remove your IP address from:
http://www.barracudacentral.org/rbl/removal-request

3

Re: Can't send e-mails via smtp: Connection timed out

Thank you.

I doesn't change when I turn off firewall:
/etc/init.d/iptables save
/etc/init.d/iptables stop

so I assume it's a network problem. What else can I test to find a solution?

4

Re: Can't send e-mails via smtp: Connection timed out

Ok, resolved. Port 25 was blocked by hosting company.

janasz wrote:

Thank you.

I doesn't change when I turn off firewall:
/etc/init.d/iptables save
/etc/init.d/iptables stop

so I assume it's a network problem. What else can I test to find a solution?