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 11th January 2008, 10:01
schmidse schmidse is offline
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Question Postfix: mail status=deferred, read timeout

Hello,

I hope somebody out there can help me with my problem concerning postfix.
I discovered yesterday that the connection between our postfix server which is a relay host with an acl and our exchange server seems to be temporarily broken or is unavailable. There is the message in the logs: connection timed out (port 25)

It seems to me that the mails are being sent after a postfix restart.

Here are the common outputs/configs. If more is needed, just ask for it.

Regards
____


mail.info
Code:
Jan 10 10:58:14 g99la004 postfix/smtp[29828]: connect to g099sx04.ourdomain[our ip]: Connection timed out (port 25)
/var/log/mail:
Code:
Jan 11 09:00:58 g99la004 postfix/smtpd[595]: 079A9179DA: client=servername[server-ip]
Jan 11 09:00:58 g99la004 postfix/cleanup[600]: 079A9179DA: message-id=<F4E2C2DC-B241-4E0B-BC6A-85FAF7F41692@ourdomain.com>
Jan 11 09:00:58 g99la004 postfix/qmgr[365]: 079A9179DA: from=<name@ourdomain.com>, size=8963, nrcpt=1 (queue active)
Jan 11 09:01:28 g99la004 postfix/smtp[603]: 079A9179DA: to=<name2@ourdomain.com>, relay=none, delay=30, status=deferred (connect to g099sx04.ourdomain[serverip]: Connection timed out)
If I restart postfix then it seems to me that the mails are being sended:

mail.info after postfix restat:
Code:
Jan 11 09:16:34 g99la004 postfix/qmgr[843]: 079A9179DA: from=<name@ourdomain.com>, size=8963, nrcpt=1 (queue active)
Jan 11 09:16:35 g99la004 postfix/smtp[854]: 079A9179DA: to=<name2@ourdomain.com>, relay=g099sx04.ourdomain[server-ip], delay=937, status=sent (250 2.6.0  <F4E2C2DC-B241-4E0B-BC6A-85FAF7F41692@domain.com> Queued mail for delivery)
Jan 11 09:16:35 g99la004 postfix/qmgr[843]: 079A9179DA: removed
output of postconf -n:
Code:
alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = yes
disable_mime_output_conversion = yes
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = our ip ::1
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = our domains
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $mydomain
myhostname = g99la004.ourdomain
mynetworks = $config_directory/our_networks
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = $mydomain, $my_relay_domains
relayhost = [g099sx04.ourdomain]
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_never_send_ehlo = yes
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_banner = $myhostname - powered by $mail_name
smtpd_client_restrictions = check_client_access hash:/etc/postfix/mail,reject
smtpd_helo_required = yes
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual

Last edited by schmidse; 11th January 2008 at 10:06.
Reply With Quote
Sponsored Links
  #2  
Old 11th January 2008, 10:05
schmidse schmidse is offline
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

/etc/postfix/main.cf

Code:
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail

newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = servername.domain
program_directory = /usr/lib/postfix
inet_interfaces = server-ip ::1
masquerade_domains = ourdomains
mydestination = $mydomain
defer_transports =
#mynetworks_style = subnet
mynetworks = $config_directory/our_networks
disable_dns_lookups = yes
relayhost = [g099sx04.ourdomain]
relay_domains = $mydomain, $my_relay_domains
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = yes
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = check_client_access hash:/etc/postfix/mail,reject
smtpd_banner = $myhostname - powered by $mail_name
smtpd_helo_required = yes
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
smtp_never_send_ehlo = yes
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
Reply With Quote
  #3  
Old 12th January 2008, 16:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Quote:
relayhost = [g099sx04.ourdomain]
Can you replace the hostname with the server's IP address and restart Postfix?
__________________
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
  #4  
Old 14th January 2008, 09:09
schmidse schmidse is offline
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Yes, I have changed this value, but there is no improvement until now.

The connection still gets a time out after some time.

Code:
Jan 14 08:24:19 g99la004 postfix/smtp[9844]: connect to server-ip[server-ip]: Connection timed out (port 25)
Jan 14 08:24:19 g99la004 postfix/smtp[9844]: B7E5517B1F: to=<name@domain.com>, relay=none, delay=30, status=deferred (connect to server-ip[server-ip]: Connection timed out)
After a postfix restart the mails are sent

Code:
Jan 14 08:24:45 g99la004 postfix/smtp[10053]: B7E5517B1F: to=<name@domain.com>, relay=223.99.214.196[223.99.214.196], delay=56, status=sent (250 2.6.0  <757381
4.1200295381210.JavaMail.server2@server2> Queued mail for delivery)
Jan 14 08:24:45 g99la004 postfix/qmgr[10046]: B7E5517B1F: removed
Any more suggestion?!
Reply With Quote
  #5  
Old 15th January 2008, 12:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

Seems to be a problem on the Exchange server, maybe the firewall...
__________________
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
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
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 14:17
postfix-tls sasl2 mysql courier-authmysql gabrix Server Operation 4 12th January 2007 22:09
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
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16


All times are GMT +2. The time now is 00:15.


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