Nope I wasn't stupid... well... at least that was not the problem this time...
Here is the explanation and the patch is also there... https://rails.lighthouseapp.com/projects/8994/tickets/2340-action-mailer-cant- deliver-mail-via-smtp-on-ruby-191 so I just patched the file: vendor/rails/actionmailer/lib/action_mailer/base.rb go down almost as far as you can row 677 - sender = (mail['return-path'] && mail['return-path'].spec) || mail.from + sender = (mail['return-path'] && mail['return-path'].spec) || mail['from'] But of course it didn't work anyway... probably because the mailserver didn't like the sender address so I patched the app/models/mailer.rb in four places... Cheap, quick and dirty... maybe just dirty.... well it works. - @from = "Gitorious <no- re...@#{gitoriousconfig['gitorious_host']}>" + @from = "[email protected]>" Thanks exa! ========================================== On Friday 12 June 2009 06:10:42 pm Martin Pettersson wrote: > Thanks > Maby I'm stupid but... > I have done exactly that but where do the error messages end up... > I see nothing in the production log and nothing in syslog, nothing in > Apache err.log... > Thanks > Martin > > On Friday 12 June 2009 03:55:38 pm Marius Mårnes Mathiesen wrote: > > On 11. juni. 2009, at 17.50, Martin Pettersson wrote: > > > I'm trying to use smtp... > > > I get a message "A password confirmation link has been sent to your > > > email address" but nothing arrives... Can I log the dialog between > > > the smtp and the actionmailer? > > > > Setting action_mailer.raise_delivery_errors=true should raise an error > > if Rails is unable to deliver the message to the SMTP server, so I the > > message is probably "successfully" delivered to your SMTP server. If > > you have access to the SMTP server, its mail logs could give some > > hints as to what's happening. Or you could increase the logging level > > in Gitorious (ie. config.log_level = :debug in config/production.rb) > > while debugging should provide some more information about the > > communication with the SMTP server. Just remember to set it back when > > you're done debugging, or the log would grow rapidly… > > > > Regards, > > - Marius > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Gitorious" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gitorious?hl=en -~----------~----~----~----~------~----~------~--~---
