C'est mes entrées à la fin dans /config/environment/production.rb et c'est de travailler pour moi.
Commentaire sendmail options et l'utilisation externe de relais SMTP
# #config.action_mailer.delivery_method = :sendmail ## Commenter cette
# Par défaut:
# # config.action_mailer.sendmail_settings = {
# # :emplacement => '/usr/sbin/sendmail',
# # :arguments => '-i -t"
# # }
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
# # Paramètres SMTP
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => '10.146.10.90', ## My SMTP Relay/Gateway
:port => 25, ## SMTP Port
:domain => 'gitlab.example.com', ## My Domain
:authentication => :plain, ## Let it be plain as it is inside my LAN
##:user_name => 'gitlab@yourserver.com', ## This is not required as long as
##:password => 'yourPassword', ## SMTP Gateway allows anonymous relay
##:enable_starttls_auto => true ## In LAN
##:user_name => '',
##:password => '',
:enable_starttls_auto => true
}
fin