Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th December 2007, 10:28
qwertybrg qwertybrg is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Smile 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
Reply With Quote
Sponsored Links
  #2  
Old 28th December 2007, 10:33
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,186
Thanks: 829
Thanked 5,417 Times in 4,259 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th December 2007, 10:35
qwertybrg qwertybrg is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #4  
Old 29th December 2007, 13:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 7th January 2008, 08:58
qwertybrg qwertybrg is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #6  
Old 8th January 2008, 17:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 3rd February 2009, 21:58
chris71p chris71p is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
  #8  
Old 3rd February 2009, 22:19
chris71p chris71p is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
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.
Reply With Quote
  #9  
Old 4th February 2009, 17:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Any errors in your mail log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 4th February 2009, 20:20
chris71p chris71p is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 16:33
mail forward problems cruz Server Operation 15 8th September 2007 12:43
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
Postfix log messages - Connection timed out nibbles Server Operation 1 3rd March 2006 09:42


All times are GMT +2. The time now is 14:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.