Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm making a smtp server using postfix,now I can send mail successfully by sendmail command,

but failed send mail via smtp,my test program always block at the readline(read reply of server via tcp) part.

I tried to use the

telnet myhostname 25

and the server sent status0,then no any reply.

share|improve this question
    
Then you do not connect to a Postfix server. It must be something else like a firewall or transparent proxy. –  mailq Apr 3 '12 at 15:59
    
I fixed this problem by add smtp inet n - n - - smtpd to master.cf,sorry for my careless –  peon Apr 4 '12 at 3:10
add comment

1 Answer

When connecting, run a tail -f on your maillog file. It will show the connection being made and then any errors. There are many ways email can be blocked or dropped, and the error in the log will indicate exactly why.

You may have failed one of your postfix config requirements, or if postscreen is being used, it may be dropping the connection for acting like a spammer's tool.

share|improve this answer
    
Nothing in the log file when i connecting.when I closing the connection it shown Apr 4 10:05:46 (none) postfix/smtp[16756]: warning: unexpected end-of-input from smtp socket while reading input attribute name Apr 4 10:05:46 (none) postfix/smtp[16756]: warning: deliver_request_get: error receiving common attributes –  peon Apr 4 '12 at 2:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.