Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-03-2010, 11:26 PM   #1
LQ Newbie
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
postfix not sending outbound mail

Ive just setup a Mail Server With LDAP, Postfix, RoundCube, Dovecot, ClamAV, SpamAssassin, Amavisd, DKIM, SPF On Debian (Lenny) using iRedMail and things went pretty smooth except when I try to send mail it just hangs in the postfix queue and times out when trying to connect to hotmail or gmail.
Mar  3 21:34:40 prometheus postfix/smtp[24022]: connect to[]:25: Connection timed out
Mar  3 21:35:10 prometheus postfix/smtp[24022]: connect to[]:25: Connection timed out
Mar  3 21:35:10 prometheus postfix/smtp[24022]: C7BA1236441F: to=<personal@gmail.
com>, relay=none, delay=1491, delays=1341/0.02/150/0, dsn=4.4.1, status=deferred
 (connect to[]:25: Connection time
d out)
Mar  3 21:57:40 prometheus postfix/qmgr[2548]: 484F5236441C: from=<theGnubie@thegnubie
.us>, size=1491, nrcpt=1 (queue active)
Mar  3 21:58:11 prometheus postfix/smtp[24311]: connect to[65.55
.92.152]:25: Connection timed out
Mar  3 21:58:41 prometheus postfix/smtp[24311]: connect to[65.54
.188.110]:25: Connection timed out
Mar  3 21:59:11 prometheus postfix/smtp[24311]: connect to[65.55
.37.120]:25: Connection timed out
Mar  3 21:59:41 prometheus postfix/smtp[24311]: connect to[65.54
.188.72]:25: Connection timed out
Mar  3 22:00:11 prometheus postfix/smtp[24311]: connect to[65.54
.188.126]:25: Connection timed out
Mar  3 22:00:11 prometheus postfix/smtp[24311]: 484F5236441C: to=<personal@hotmai>, relay=none, delay=4301, delays=4151/0.02/150/0, dsn=4.4.1, status=deferr
ed (connect to[]:25: Connection timed out)
Mar  3 22:01:01 prometheus cleanup: clean up process starting: policyd v1.82
I read a few other posts here ( but I dont believe this is the same problem...but I could be wrong.

Finally here is my postconf -n:
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[]:10024
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
header_checks = pcre:/etc/postfix/header_checks.pcre
home_mailbox = Maildir/
inet_interfaces = all
mail_name = iRedMail
mail_version = 0.5.1
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 15728640
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain =
myhostname =
mynetworks =
mynetworks_style = subnet
myorigin =
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
queue_run_delay = 300s
readme_directory = no
recipient_bcc_maps = proxy:ldap:/etc/postfix/, proxy:ldap:/etc/postfix/
recipient_delimiter = +
relay_domains = $mydestination, proxy:ldap:/etc/postfix/
relay_recipient_maps = proxy:ldap:/etc/postfix/
relayhost = 
sender_bcc_maps = proxy:ldap:/etc/postfix/, proxy:ldap:/etc/postfix/
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain = 
smtpd_sasl_path = dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/etc/postfix/, proxy:ldap:/etc/postfix/
virtual_alias_maps = proxy:ldap:/etc/postfix/, proxy:ldap:/etc/postfix/
virtual_gid_maps = static:1001
virtual_mailbox_base = /home/vmail/vmail01
virtual_mailbox_domains = proxy:ldap:/etc/postfix/
virtual_mailbox_maps = proxy:ldap:/etc/postfix/
virtual_minimum_uid = 1001
virtual_transport = dovecot
virtual_uid_maps = static:1001
Old 03-04-2010, 08:42 AM   #2
LQ Newbie
Registered: Mar 2007
Posts: 12

Original Poster
Rep: Reputation: 0
For anyone else having the same problem, it looks like AT&T is blocking port 25. Apparently they will remove this restriction upon request.


mail, outbound, postfix, timeout

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix - connection refused on outbound mail asmweb Linux - Server 38 07-07-2008 03:36 PM
Postfix sending mail outside guy_ripper Linux - Server 1 05-17-2008 11:25 AM
sending mail using postfix fakie_flip Linux - Software 5 12-31-2007 06:01 AM
Postfix: appending to outbound mail conditionally jgombos Linux - Server 0 03-23-2007 09:45 PM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 12:16 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration