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 31st January 2013, 10:12
Salim Hoolash Salim Hoolash is offline
Junior Member
 
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Postfix: Lost connection while receiving initial greeting

Dear All,

First of all, thank you in advance for your help. I had a server running Ubuntu 10.10 with postfix as MTA and mails were being sent out. I just replaced the server wih a new one running Ubuntu 12.10 and suddenly no mails are sent out.
postqueue -p output yields:
(lost connection with mail.example.com[10.XXX.XXX.49] while receiving the initial server greeting)
However when I try telnet 10.XXX.XXX.49 25, I am connected to the mail server and I can send a mail using ehlo, mail from, rcpt to etc.
Any idea what may be wrong?
Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 1st February 2013, 17:18
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

Are there any errors in your mail log (in the /var/log/ directory)?
__________________
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
  #3  
Old 4th February 2013, 09:17
Salim Hoolash Salim Hoolash is offline
Junior Member
 
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Postfix: Lost connection while receiving initial greeting

falko,

Thanks for the reply.

Code:
Feb  4 11:50:52 Nagios-PC postfix/qmgr[12807]: C98AA11CB000: from=<root@PACE-Alarms>, size=321, nrcpt=1 (queue active)
Feb  4 11:51:13 Nagios-PC postfix/smtp[21065]: C98AA11CB000: to=<salim.hoolash@mauritiustelecom.com>, relay=mail.mauritiustelecom.com[10.225.225.49]:25, delay=20, delays=0.14/0/20/0, dsn=4.4.2, status=deferred (lost connection with mail.mauritiustelecom.com[10.225.225.49] while receiving the initial server greeting)
Feb  4 11:57:04 Nagios-PC postfix/qmgr[12807]: C98AA11CB000: from=<root@PACE-Alarms>, size=321, nrcpt=1 (queue active)
Feb  4 11:57:25 Nagios-PC postfix/smtp[12358]: C98AA11CB000: to=<salim.hoolash@mauritiustelecom.com>, relay=mail.mauritiustelecom.com[10.225.225.49]:25, delay=392, delays=371/0.01/21/0, dsn=4.4.2, status=deferred (lost connection with mail.mauritiustelecom.com[10.225.225.49] while receiving the initial server greeting)
Feb  4 12:07:04 Nagios-PC postfix/qmgr[12807]: C98AA11CB000: from=<root@PACE-Alarms>, size=321, nrcpt=1 (queue active)
Feb  4 12:07:25 Nagios-PC postfix/smtp[16287]: C98AA11CB000: to=<salim.hoolash@mauritiustelecom.com>, relay=mail.mauritiustelecom.com[10.225.225.49]:25, delay=992, delays=972/0.01/20/0, dsn=4.4.2, status=deferred (lost connection with mail.mauritiustelecom.com[10.225.225.49] while receiving the initial server greeting)
Salim.
Reply With Quote
  #4  
Old 5th February 2013, 19: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

Please check if your server is blacklisted: http://mxtoolbox.com/blacklists.aspx
__________________
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 February 2013, 05:57
Salim Hoolash Salim Hoolash is offline
Junior Member
 
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
 
Default SOLVED: Postfix - Lost connection while receiving greeting

falko,

You put me on the right track. Since our mail server is on a private address, I could not verify whether my IP address was blacklisted with the site you mentioned. So, after investigation with my ISP provider, I found out that they have 2 mail relay servers one on address 10.XXX.XXX.49 and the other on 10.XXX.XXX.50. I figured out that I could not authenticate on the '50' one but it was OK on the '49' one. So, instead of having 'relayhost = Blank' in /etc/main.cf, I added relayhost = 10.XXX.XXX.49 thus forcing mails from my server to relay through address '49'. Now, mails are flowing without problem.

Thanks a lot for your help.
Reply With Quote
The Following User Says Thank You to Salim Hoolash For This Useful Post:
falko (9th February 2013)
Reply

Bookmarks

Tags
initial greeting, lost connection, postfix

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 problems kwickcut Installation/Configuration 6 5th March 2012 19:19
Ubuntu 11.10-nginx mail send-receive problem tbctr Installation/Configuration 35 8th January 2012 15:02
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 10:56
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 13:31
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 13:29


All times are GMT +2. The time now is 08:18.


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