Project

General

Profile

ssmtp + redmine?

Added by henner henner over 13 years ago

Hi guys,

I'm just setting up redmine but I have a problem getting the mailserver setup to work.

I configured ssmtp on my host which works fine with the the command "mail".

If I get it right, the email.yml refers to ssmtp within this block:

  1. === Simple SMTP server at localhost #
  2. production:
  3. delivery_method: :smtp
  4. smtp_settings:
  5. address: "localhost"
  6. port: 25

But if I try to use this setup, redmine gives me a "connection refused" error message while trying to send a demo mail.
Full error message: "An error occurred while sending mail (Connection refused - connect(2))"

This looks to me like redmine is expecting a smtp server running at localhost which is not the case with ssmtp, am I right?

Is there a way to get redmine to work with ssmtp?

Thanks for any hints.


Replies (4)

RE: ssmtp + redmine? - Added by henner henner over 13 years ago

OK, I got it working.

ssmtp offers a link from sendmail to ssmtp so one can simply use sendmail in the configuration:

production:
delivery_method: :sendmail

That's it.

RE: ssmtp + redmine? - Added by Perico Os Palotes over 11 years ago

Hi there.

Looks like this is not working with redmine 2.3.0.

My settings:

/srv/www/redmine/config/configuration.yml
production:
email_delivery:
delivery_method: :sendmail

a) With postfix installed -> it works
b) With ssmtp installed -> it doesn't work

It doesn't prints nothing on /var/log/mail.log.

My guess is that /usr/sbin/sendmail binary installed with ssmtp has different parameters than the one installed by postfix

henner henner wrote:

Hi guys,

I'm just setting up redmine but I have a problem getting the mailserver setup to work.

I configured ssmtp on my host which works fine with the the command "mail".

If I get it right, the email.yml refers to ssmtp within this block:

  1. === Simple SMTP server at localhost #
  2. production:
  3. delivery_method: :smtp
  4. smtp_settings:
  5. address: "localhost"
  6. port: 25

But if I try to use this setup, redmine gives me a "connection refused" error message while trying to send a demo mail.
Full error message: "An error occurred while sending mail (Connection refused - connect(2))"

This looks to me like redmine is expecting a smtp server running at localhost which is not the case with ssmtp, am I right?

Is there a way to get redmine to work with ssmtp?

Thanks for any hints.

RE: ssmtp + redmine? - Added by Perico Os Palotes about 11 years ago

Hi there.

I created an issue (http://www.redmine.org/issues/13904) since I'm NOT able to send out e-mails with ssmtp.

If somebody can kindly share configuration, software versions and so on.

Thanks

RE: ssmtp + redmine? - Added by Laurent GILBERT about 11 years ago

Hi all,

I can't remember why but redmine doesn't work with ssmtp (on FREEBSD in my case) : I was my first choice...

I use msmtp instead.

    (1-4/4)