1

Topic: connection timed out, sending to external adress like gmail or other

Hi everyone,

Can somebody help me please? Maybe its duplicate, but I searched on google for solutions but nothing helped me....That is the second day that i am trying to fix it.

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: latest (downladed yesterday)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04 LTS fresh install
- Related log if you're reporting an issue:

Mar  6 08:53:22 soft-tech-srv amavis[1732]: (01732-03) Passed CLEAN, LOCAL [67.222.51.224] [66.147.244.173] <iredmail@box673.bluehost.com> -> <e.kubica@soft-tech-srv.tk>, mail_id: CvErnEYUg87Y, Hits: 0.16, size: 1597, queued_as: 1CEA9650D7, 3428 ms
Mar  6 08:53:22 soft-tech-srv postfix/smtp[3687]: 19426650B2: to=<e.kubica@soft-tech-srv.tk>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.7, delays=1.2/0.01/0/3.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1CEA9650D7)
Mar  6 08:53:22 soft-tech-srv postfix/qmgr[3177]: 19426650B2: removed
Mar  6 08:53:22 soft-tech-srv postfix/pipe[3691]: 1CEA9650D7: to=<e.kubica@soft-tech-srv.tk>, relay=dovecot, delay=0.4, delays=0.08/0.01/0/0.32, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar  6 08:53:22 soft-tech-srv postfix/qmgr[3177]: 1CEA9650D7: removed
Mar  6 08:56:15 soft-tech-srv postfix/qmgr[3177]: 3155C650CA: from=<e.kubica@soft-tech-srv.tk>, size=2283, nrcpt=1 (queue active)
Mar  6 08:56:15 soft-tech-srv postfix/qmgr[3177]: D5868650D3: from=<e.kubica@soft-tech-srv.tk>, size=2847, nrcpt=1 (queue active)
Mar  6 08:56:15 soft-tech-srv postfix/error[3716]: 3155C650CA: to=<erikkubica@soft-tech.eu>, relay=none, delay=3024, delays=3023/0.03/0/0.09, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail.soft-tech.eu[94.125.178.80]:25: Connection timed out)
Mar  6 08:56:39 soft-tech-srv postfix/anvil[3561]: statistics: max connection rate 1/60s for (smtp:74.125.82.180) at Mar  6 08:51:05
Mar  6 08:56:39 soft-tech-srv postfix/anvil[3561]: statistics: max connection count 1 for (smtp:74.125.82.180) at Mar  6 08:51:05
Mar  6 08:56:39 soft-tech-srv postfix/anvil[3561]: statistics: max cache size 1 at Mar  6 08:51:05
Mar  6 08:56:45 soft-tech-srv postfix/smtp[3717]: connect to gmail-smtp-in.l.google.com[173.194.69.27]:25: Connection timed out
Mar  6 08:57:15 soft-tech-srv postfix/smtp[3717]: connect to alt1.gmail-smtp-in.l.google.com[74.125.141.27]:25: Connection timed out
Mar  6 08:57:45 soft-tech-srv postfix/smtp[3717]: connect to alt2.gmail-smtp-in.l.google.com[173.194.64.27]:25: Connection timed out
Mar  6 08:58:15 soft-tech-srv postfix/smtp[3717]: connect to alt3.gmail-smtp-in.l.google.com[74.125.133.27]:25: Connection timed out
Mar  6 08:58:45 soft-tech-srv postfix/smtp[3717]: connect to alt4.gmail-smtp-in.l.google.com[74.125.134.27]:25: Connection timed out
Mar  6 08:58:46 soft-tech-srv postfix/smtp[3717]: D5868650D3: to=<erik.kubica@gmail.com>, relay=none, delay=2010, delays=1860/0.01/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.134.27]:25: Connection timed out)

====

I can recieve email from anywhere, i can send emails for local users, but cannot send to the big world. (connection with opera email and thunderbird works)

MyConfig:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

default_transport = smtp #Added later while troubleshooting
relay_transport = relay #Added later while troubleshooting
myhostname = soft-tech-srv.tk
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
myorigin = soft-tech-srv.tk
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
relayhost = 
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
virtual_alias_domains = 
mydomain = soft-tech-srv.tk
mynetworks_style = subnet
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
delay_warning_time = 0h
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 1d
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
queue_run_delay = 300s
minimal_backoff_time = 300s
maximal_backoff_time = 4000s
enable_original_recipient = no
disable_vrfy_command = yes
home_mailbox = Maildir/
allow_min_user = no
message_size_limit = 15728640
virtual_minimum_uid = 1001
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/vmail
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = no
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:[127.0.0.1]:10031
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
smtpd_tls_security_level = may
smtpd_tls_loglevel = 0
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail_CA.pem
tls_random_source = dev:/dev/urandom
mailbox_command = /usr/lib/dovecot/deliver
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = ./dovecot-auth
content_filter = smtp-amavis:[127.0.0.1]:10024
smtp-amavis_destination_recipient_limit = 1

----

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

2

Re: connection timed out, sending to external adress like gmail or other

Looks like a DNS issue. Do you have correct DNS server(s) in /etc/resolv.conf?

3 (edited by e.kubica 2013-03-06 18:50:24)

Re: connection timed out, sending to external adress like gmail or other

in resolv.conf i have:
nameserver 127.0.0.1

(before isntalling i tried to set up bind9, but..... my exerience is not enoungh do do it correctly)

4

Re: connection timed out, sending to external adress like gmail or other

Then use a working DNS server please. For example, Google DNS servers:

nameserver 8.8.8.8
nameserver 8.8.4.4

5

Re: connection timed out, sending to external adress like gmail or other

i added my isp-s nameserver and these google nameserver to resolvcon then resolvconf -u , service postfix restart, nothing changed

6

Re: connection timed out, sending to external adress like gmail or other

Did you sen a new test email or try to flush the queue with "postqueue -f" to redeliver queued emails? Same issue?

7

Re: connection timed out, sending to external adress like gmail or other

yop..
Mar  6 13:41:51 soft-tech-srv postfix/error[3130]: C1D3C650CC: to=<erikkubica@soft-tech.eu>, relay=none, delay=19853, delays=19822/30/0/0.09, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail.soft-tech.eu[94.125.178.80]:25: Connection timed out)
Mar  6 13:42:20 soft-tech-srv postfix/smtp[3124]: connect to alt1.gmail-smtp-in.l.google.com[74.125.141.27]:25: Connection timed out

now i have seted up bind 9,
added dkim txt record,, testkeys -> passed.
ping ns.soft-tech-srv.tk   on local network other PC-s is showing my local IP adres so DNS works...

8

Re: connection timed out, sending to external adress like gmail or other

maybe problem will be with ISP, because i cant telnet smtp....yahoo.com 25, (587 works),
and i red that google is unreachable from other port then 25.