LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2016, 10:59 AM   #1
aspinos
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
Postfix: status=deferred (lost connection while receiving the initial server greeting)


Good day colleagues,

I have installed postfix 2.6 on my centos and trying to sent emails through a smarthost, to which I can telnet on smtp port, and failing with subject error.

My main.cf is as follows:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = mail.mydomain.net
mydomain = mydomain.net
inet_interfaces = localhost
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.1.0/24, 127.0.0.0/8
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 3
debug_peer_list = smarthost.relay.com
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
transport_maps = hash:/etc/postfix/transport

/etc/postfix/transport contains:

mydomain.net :
* smtp:[smarthost.relay.com]:465

I then try:
echo "test email body" | mail -s "Test Email Subject" test@yahoo.co.uk

To which I get:

5E388A15AF: to=<test@yahoo.co.uk>, relay=smarthost.relay.com[ipaddress]:465, delay=710, delays=545/0.03/165/0, dsn=4.4.2, status=deferred (lost connection with smarthost.relay.com[ipaddress] while receiving the initial server greeting)

Any help would be much appreciated,

Many thanks,
Archie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix failure: status=deferred (lost connection...while receiving the initial server greeting) labby Linux - Newbie 1 03-27-2016 01:54 PM
Postfix status=deferred albie17 Linux - Server 1 08-27-2011 05:16 AM
Lost connection to MySQL server at 'reading initial communication packet', system err manishsingh4k Linux - Server 8 07-20-2009 08:31 AM
timed out while receiving the initial server greeting rytec Linux - Server 2 05-14-2009 05:09 AM
Postfix: mail status=deferred, read timeout svesch Linux - Server 1 01-11-2008 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration