# Actionmailer / Qmail error

**URL:** <https://www.ruby-forum.com/t/actionmailer-qmail-error/162145>\
**Category:** Deployment\
**Created:** [March 6, 2009, 7:40am UTC](https://www.ruby-forum.com/t/actionmailer-qmail-error/162145 "2009-03-06T07:40:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/48db29/32.png) [@ntk](https://www.ruby-forum.com/u/ntk)\
**Post date:** [March 6, 2009, 7:40am UTC](https://www.ruby-forum.com/t/actionmailer-qmail-error/162145/1 "2009-03-06T07:40:58Z")

</div>

Hi.  
I’ve previously used gmail as my outgoing mailserver in actionmailer,  
but now I wanna switch to using my VPS. (Google is marking my account as  
spam too often)

The error seems to be related to the parameters sent to qmail  
by rails. I’m all lost how to debug this, any ideas??

Regards,  
David Kleman

email login is configured and tested

SMTP Settings are:

config.action\_mailer.delivery\_method = :smtp  
config.action\_mailer.smtp\_settings = {  
:address =\> “localhost”,  
ort =\> 25,  
:domain =\> “[mycaddie.net](http://mycaddie.net)”,  
:user\_name =\> “removed\_email\_address@domain.invalid”,  
assword =\> “pw”,  
:authentication =\> :login  
}

========= Error message in production.log: ===========

Processing CommentsController#create (for 193.234.247.50 at 2009-03-05  
09:14:16) [post]  
Session ID: BAh7CzoLZm9ydW1zewA6CXVzZXJpFzoLdG9waWNzQAY6EGxhc3  
RfYWN0aXZl  
VTogQWN0aXZlU3VwcG9ydDo6VGltZVdpdGhab25lWwhJdToJVG ltZQ1KRxuA  
bnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2Vkew  
A=–ae8f7d2360895c0df23525987ade0a9fc09b4e6e  
Parameters: {“commentable\_type”=\>“user”, “commit”=\>“Kommentera”,  
“action”=\>“create”, “commentable\_id”=\>“16”, “controller”=\>“comments”,  
“comment”=\>{“comment”=\>“

Mailtest2

”}}  
Sent mail to removed\_email\_address@domain.invalid

Net::SMTPFatalError (554 qmail-dk: Cannot sign message due to invalid  
message syntax. (#5.3.0)  
):  
/usr/local/lib/ruby/1.8/net/smtp.rb:679:in `check_response' /usr/local/lib/ruby/1.8/net/smtp.rb:552:in `send0’  
/usr/local/lib/ruby/1.8/net/smtp.rb:471:in `sendmail' /usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.1.2/lib/action_mailer/base.rb:630:in `perform\_delivery\_smtp’  
/usr/local/lib/ruby/1.8/net/smtp.rb:378:in `start' /usr/local/lib/ruby/1.8/net/smtp.rb:315:in `start’  
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.1.2/lib/action\_mailer/base.rb:628:in  
`perform_delivery_smtp' /usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.1.2/lib/action_mailer/base.rb:508:in ` **send** ’…/action\_mailer/base.rb:383:in `method_missing' /app/models/comment.rb:99:in `send\_notifications’  
Edit/Delete Message
