
28th December 2007, 10:28
|
|
Junior Member
|
|
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Postfix - status=deferred; Connection timed out
Hy,
I followed this (Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 7.10)) tutorial for an email server. I did stept by step, with no errors. The only changes I have made are regarding ip's and domains.
The server works fine, I can receive email, I also can send emails but only for the users of my domains. If i try to sent a message to someone@gmail.com i get this error status=deferred (delivery temporarily suspended: connect to gsmtp183.google.com[64.233.183.27]: Connection timed out).
The server is behind a router, and i have forwarded port 25 and 110, 143 to the server. Also to mention that I have tested another email server which works fine on the same connection, so the provider didn't block port 25.
i'll give you the main.conf of teh server and some lines from the log:
main.conf:
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 = 1h
# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
myhostname = mail.domain.ro
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.domain.ro, localhost, localhost.localdomain
relayhost = localhost
mynetworks = 192.168.123.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "Mailbox full"
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recip$
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
mail.log
Dec 28 10:42:50 mail postfix/qmgr[7909]: D63C213FC15F: from=<admin@domain.ro>, size=3156, nrcpt=1 (queue active)
Dec 28 10:43:20 mail postfix/smtp[8107]: connect to gmail-smtp-in.l.google.com[209.85.135.27]: Connection timed out (port 25)
Dec 28 10:43:50 mail postfix/smtp[8107]: connect to alt1.gmail-smtp-in.l.google.com[64.233.167.114]: Connection timed out (port 25)
Dec 28 10:44:20 mail postfix/smtp[8107]: connect to alt1.gmail-smtp-in.l.google.com[64.233.167.27]: Connection timed out (port 25)
Dec 28 10:44:50 mail postfix/smtp[8107]: connect to alt2.gmail-smtp-in.l.google.com[72.14.247.27]: Connection timed out (port 25)
Dec 28 10:45:20 mail postfix/smtp[8107]: connect to gsmtp183.google.com[64.233.183.27]: Connection timed out (port 25)
Dec 28 10:45:20 mail postfix/smtp[8107]: D63C213FC15F: to=<razvan.balcanu@gmail.com>, relay=none, delay=3179, delays=3029/0.02/150/0, dsn=4.4.1, status=deferred (connect to gsmtp183.google.com[64.233.183.27]: Connection timed out) Thanks in advance and Happy New Year to all of you
|

28th December 2007, 10:33
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
If your internet connection has a dynamic IP address, then it will be blocked by most email providers like google or hotmail. You should consider to relay your emails trogh the smtp server of your internet provider instead.
|

28th December 2007, 10:35
|
|
Junior Member
|
|
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hy,
thanks for the quick answer.
I have a static IP.
Maybe this can help. I found this error in the postfix queue list from postqueue -p
3101 Fri Dec 28 15:52:02 admin@domain.ro
(Host or domain name not found. Name service error for name=localhost type=A: Host not found)
********@gmail.com I have a similar error for each mail that i tried to sent.
Please advise......
Thank you in advance
Last edited by qwertybrg; 28th December 2007 at 15:01.
|

29th December 2007, 13:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by qwertybrg
Hy,
thanks for the quick answer.
I have a static IP.
|
Please check if your server is blacklisted: http://www.mxtoolbox.com/blacklists.aspx
Quote:
|
Originally Posted by qwertybrg
Maybe this can help. I found this error in the postfix queue list from postqueue -p
3101 Fri Dec 28 15:52:02 admin@domain.ro
(Host or domain name not found. Name service error for name=localhost type=A: Host not found)
********@gmail.com I have a similar error for each mail that i tried to sent.
Please advise......
Thank you in advance
|
What's in /etc/hosts?
|

7th January 2008, 08:58
|
|
Junior Member
|
|
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Here is my /etc/hosts
Quote:
127.0.0.1 localhost.localdomain localhost
192.168.123.118 mail.domain.ro mail
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
|
The server is behind a DSL router, in which i have set as a "virtual server" the address of the actual server.
Thank you
|

8th January 2008, 17:33
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Please try this:
Code:
127.0.0.1 localhost.localdomain localhost
192.168.123.118 mail.domain.ro mail domain.ro
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
|

3rd February 2009, 21:58
|
|
Junior Member
|
|
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
PostFix behind router
Hi All
I have same problem as You "running PostFix Mail Server behind router "
I can receive mail from outside but I can`t send them out I read lot of forums and lot web sides I did not found solution for this problem
but I know for sure this is because of router
If I connect server directly to DSL modem everything is working perfectly 
but not if is behind router even I open port 25 to mail server 
do anybody know haw to set up PostFix do deal with this, or any other suggestion? 
Thanks Chris.
|

3rd February 2009, 22:19
|
|
Junior Member
|
|
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
If your internet connection has a dynamic IP address, then it will be blocked by most email providers like google or hotmail. You should consider to relay your emails trogh the smtp server of your internet provider instead.
|
Not really when I connect server without router directly to DSL modem then is not problem to send mails to yahoo, hotmail or any other even My IP is dynamic
Thanx Chris.
Last edited by chris71p; 3rd February 2009 at 22:24.
|

4th February 2009, 17:39
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Any errors in your mail log?
|

4th February 2009, 20:20
|
|
Junior Member
|
|
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi and Thanx for reply.
mail.log looks like this:
Feb 4 14:26:48 mydomain postfix/smtp[9067]: A00374948AE: to=<chris71p@yahoo.co.uk>, relay=mx2.mail.eu.yahoo.com[77.238.177.142]:25, delay=77227, delays=77226/0.01/0.45/0, dsn=4.0.0, status=deferred (host mx2.mail.eu.yahoo.com[77.238.177.142] refused to talk to me: 553 Mail from 81.99.xxx.xx not allowed - [80])
Feb 4 15:36:48 mydomain postfix/qmgr[6893]: A00374948AE: from=<me@mydomain.com>, size=572, nrcpt=1 (queue active)
Feb 4 15:36:48 mydomain postfix/smtp[13066]: A00374948AE: host mx1.mail.eu.yahoo.com[217.12.11.64] refused to talk to me: 553 Mail from 81.99.xxx.xx not allowed - [80]
Feb 4 15:36:50 mydomain postfix/smtp[13066]: A00374948AE: to=<chris71p@yahoo.co.uk>, relay=mx2.mail.eu.yahoo.com[77.238.177.142]:25, delay=81429, delays=81427/0.01/0.73/0.82, dsn=4.0.0, status=deferred (host mx2.mail.eu.yahoo.com[77.238.177.142] said: 451 Message temporarily deferred - [] (in reply to end of DATA command))
Feb 4 16:46:48 mydomain postfix/qmgr[6893]: A00374948AE: from=<me@mydomain.com>, size=572, nrcpt=1 (queue active)
Feb 4 16:46:55 mydomain postfix/smtp[17472]: A00374948AE: to=<chris71p@yahoo.co.uk>, relay=mx1.mail.eu.yahoo.com[217.12.11.64]:25, delay=85634, delays=85627/0.01/0.47/6.8, dsn=2.0.0, status=sent (250 ok dirdel)
Feb 4 16:46:55 mydomain postfix/qmgr[6893]: A00374948AE: removed
there was two mails send both of them was kept in Mail Queue, today they gon
but did not reach destination.
Thank You
Chris.
Last edited by chris71p; 4th February 2009 at 20:24.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 19:36.
|
Recent comments
17 hours 12 min ago
22 hours 11 min ago
23 hours 38 min ago
1 day 31 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 22 hours ago
2 days 27 min ago