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.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26th November 2007, 22:10
fernando_torrez fernando_torrez is offline
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix problem: lost connection after CONNECT from unknown

Hi everybody

I'm fighting with a terrible problem for 1 month. sometimes, when a client tried to send mails the server sends this error:

Sending of message failed.
The message could not be sent because connecting to SMTP server myserver.com failed. The server may be unavailable or is refusing SMTP connections. Please verify that your SMTP server setting is correct and try again, or else contact your network administrator

I saw the postfix log and found that for some reason the connection is closed before the message is processed. this is a piece of the postfix log file:


Nov 26 08:52:36 mail postfix/smtpd[2241]: connect from unknown[192.168.0.2]
Nov 26 08:52:36 mail postfix/smtpd[2241]: lost connection after CONNECT from unknown[192.168.0.2]
Nov 26 08:52:36 mail postfix/smtpd[2241]: disconnect from unknown[192.168.0.2]

it means that for some reason a local client is losing the connection with myserver, then the client tries to send 3 more times (or so) before the message is sent, and in the worst cases I restart the whole mail server (reboot de server).
this is appending once a day... lately .... and I'm so


Here is a larger piece of the postfix log file:

Nov 26 08:55:07 mail postfix/smtpd[2342]: connect from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2342]: lost connection after CONNECT from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2342]: disconnect from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2291]: connect from unknown[125.134.123.148]
Nov 26 08:55:07 mail postfix/smtpd[2291]: lost connection after CONNECT from unknown[125.134.123.148]
Nov 26 08:55:07 mail postfix/smtpd[2291]: disconnect from unknown[125.134.123.148]
Nov 26 08:55:07 mail postfix/smtpd[2342]: connect from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2342]: lost connection after CONNECT from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2342]: disconnect from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2291]: connect from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2291]: lost connection after CONNECT from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2291]: disconnect from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2342]: connect from unknown[192.168.0.2]
Nov 26 08:55:07 mail postfix/smtpd[2342]: lost connection after CONNECT from unknown[192.168.0.2]
Nov 26 08:55:07 mail postfix/smtpd[2342]: disconnect from unknown[192.168.0.2]
Nov 26 08:55:07 mail postfix/smtpd[2342]: connect from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2342]: lost connection after CONNECT from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2342]: disconnect from unknown[87.226.180.6]
Nov 26 08:55:07 mail postfix/smtpd[2295]: disconnect from unknown[125.134.123.148]
Nov 26 08:55:07 mail postfix/smtpd[2291]: warning: 62.105.25.12: hostname adsl-ppp-12.reus.ru verification failed: Host not found
Nov 26 08:55:07 mail postfix/smtpd[2291]: connect from unknown[62.105.25.12]
Nov 26 08:55:07 mail postfix/smtpd[2291]: lost connection after CONNECT from unknown[62.105.25.12]
Nov 26 08:55:07 mail postfix/smtpd[2291]: disconnect from unknown[62.105.25.12]
Nov 26 08:55:07 mail postfix/smtpd[2342]: warning: 62.105.25.12: hostname adsl-ppp-12.reus.ru verification failed: Host not found
Nov 26 08:55:07 mail postfix/smtpd[2342]: connect from unknown[62.105.25.12]
Nov 26 08:55:07 mail postfix/smtpd[2295]: warning: 62.105.25.12: hostname adsl-ppp-12.reus.ru verification failed: Host not found
Nov 26 08:55:07 mail postfix/smtpd[2295]: connect from unknown[62.105.25.12]
Nov 26 08:55:07 mail postfix/smtpd[2295]: lost connection after CONNECT from unknown[62.105.25.12]
Nov 26 08:55:07 mail postfix/smtpd[2295]: disconnect from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2291]: warning: 62.105.25.12: hostname adsl-ppp-12.reus.ru verification failed: Host not found
Nov 26 08:55:08 mail postfix/smtpd[2291]: connect from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2291]: lost connection after CONNECT from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2291]: disconnect from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2295]: warning: 62.105.25.12: hostname adsl-ppp-12.reus.ru verification failed: Host not found
Nov 26 08:55:08 mail postfix/smtpd[2295]: connect from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2295]: lost connection after CONNECT from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2295]: disconnect from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2291]: warning: 62.105.25.12: hostname adsl-ppp-12.reus.ru verification failed: Host not found
Nov 26 08:55:08 mail postfix/smtpd[2291]: connect from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2291]: lost connection after CONNECT from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2291]: disconnect from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2295]: warning: 62.105.25.12: hostname adsl-ppp-12.reus.ru verification failed: Host not found
Nov 26 08:55:08 mail postfix/smtpd[2295]: connect from unknown[62.105.25.12]
Nov 26 08:55:08 mail postfix/smtpd[2295]: lost connection after CONNECT from unknown[62.105.25.12]


It seem that the postfix is rejecting either internal an external mails


here's is my postfix configuration (postconf -n)

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, ldap:ldapaliases
body_checks = pcre:/etc/postfix/body_checks
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
defer_transports =
disable_dns_lookups = no
header_checks = pcre:/etc/postfix/header_checks
local_destination_concurrency_limit = 2
mail_name = Postfix on SuSE Linux eMail Server 3.1
mail_owner = postfix
mailbox_transport = lmtp:unixublic/lmtp
masquerade_domains = $mydomain
masquerade_exceptions = root
maximal_queue_lifetime = 2d
message_size_limit = 10485760
mydestination = $mydomain, $myhostname, localhost.$mydomain, [190.129.91.2]
myhostname = mail.bago.com.bo
myorigin = $mydomain
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
recipient_delimiter = +
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sender_canonical_maps = ldap:ldapcanonical
smtp_tls_loglevel = 0
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = sdbm:/etc/postfix/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = ldap:ldapmailenab, permit_tls_clientcerts, permit_sasl_authenticated, permit_mynetworks, check_client_access btree:/etc/postfix/dracd, check_sender_access hash:/etc/postfix/access_usernames, check_recipient_access hash:/etc/postfix/access_usernames, check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access_usernames
smtpd_tls_ask_ccert = yes
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = sdbm:/etc/postfix/smtpd_scache
tls_daemon_random_source = dev:/dev/urandom
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
virtual_maps = hash:/etc/postfix/virtual, ldap:ldapvuser


and this is my master.cf

smtp inet n - y - - smtpd
localhost:10025 inet n - n - - smtpd -o content_filter=
smtps inet n - y - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
pickup unix n n y 60 1 pickup
cleanup unix - - y - 0 cleanup
qmgr unix n - y 300 1 qmgr
tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
flush unix - - n 1000? 0 flush
smtp unix - - y - - smtp
showq unix n - y - - showq
error unix - - y - - error
local unix - n n - - local
lmtp unix - - y - - lmtp
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
uucp unix - n n - - pipe
flags=F user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=F. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail unix - n n - - pipe
flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user} EXT=${extension} /etc/procmailrc

I'll really appreciate any help

Thanks in advance
Reply With Quote
Sponsored Links
 

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
Transferring Hard Drive to new System latcarf Installation/Configuration 26 20th February 2007 18:51
php script injections Grizzly General 21 18th July 2006 08:55
Postfix: connection to mail server REFUSED sramdane Server Operation 5 23rd May 2006 23:03
Postfix queueing messages suddenly, connection timed out. macwise Server Operation 6 10th November 2005 09:14


All times are GMT +2. The time now is 16:06.


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