Forum: Rails deployment Actionmailer / Qmail error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
David K. (Guest)
on 2009-03-06 08:40
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",
: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"=>"<p>Mailtest2</p>"}}
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
This topic is locked and can not be replied to.