# Problem sending mail with emailer Errno::ECONNRESET (Connection reset by peer)

**URL:** <https://www.ruby-forum.com/t/problem-sending-mail-with-emailer-errno-econnreset-connection-reset-by-peer/123886>\
**Category:** Rails\
**Created:** [December 21, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/problem-sending-mail-with-emailer-errno-econnreset-connection-reset-by-peer/123886 "2007-12-21T19:01:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Post date:** [December 21, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/problem-sending-mail-with-emailer-errno-econnreset-connection-reset-by-peer/123886/1 "2007-12-21T19:01:53Z")

</div>

My mail is ready to be sent … (can see it in the log…)  
but I cannot find why I get this error… please help welcome !  
I am working in stand alone dev on Mac OX 10.4.11(Tiger) and running  
Postfiw on locahost…

here is the log :

/usr/local/lib/ruby/1.8/net/protocol.rb:133:in `sysread' /usr/local/lib/ruby/1.8/net/protocol.rb:133:in`rbuf\_fill’  
/usr/local/lib/ruby/1.8/timeout.rb:56:in `timeout' /usr/local/lib/ruby/1.8/timeout.rb:76:in`timeout’  
/usr/local/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill' /usr/local/lib/ruby/1.8/net/protocol.rb:116:in`readuntil’  
/usr/local/lib/ruby/1.8/net/protocol.rb:126:in `readline' /usr/local/lib/ruby/1.8/net/smtp.rb:664:in`recv\_response’  
/usr/local/lib/ruby/1.8/net/smtp.rb:651:in `getok' /usr/local/lib/ruby/1.8/net/smtp.rb:686:in`critical’  
/usr/local/lib/ruby/1.8/net/smtp.rb:649:in `getok' /usr/local/lib/ruby/1.8/net/smtp.rb:631:in`mailfrom’  
/usr/local/lib/ruby/1.8/net/smtp.rb:544:in `send0' /usr/local/lib/ruby/1.8/net/smtp.rb:472:in`sendmail’  
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.0.1/lib/action\_mailer/  
base.rb:588:in `perform_delivery_smtp' /usr/local/lib/ruby/1.8/net/smtp.rb:379:in`start’  
/usr/local/lib/ruby/1.8/net/smtp.rb:316:in `start' /usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.0.1/lib/action_mailer/ base.rb:586:in`perform\_delivery\_smtp’  
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.0.1/lib/action\_mailer/  
base.rb:469:in ` __send__' /usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.0.1/lib/action_mailer/ base.rb:469:in`deliver!’  
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.0.1/lib/action\_mailer/  
base.rb:352:in `method_missing' /Users/yves/Sites/presdemoi.net/TRY-yves-1.0/app/controllers/ users_controller.rb:343:in`create’

here is my coding in the controller :

UserNotifier.deliver\_login\_key\_notification(@user)

is that a Postfix config problème… ?
