With the dpsace.cfg and out-of-the-box "mail" settings I can't send emails.

To test, I run:

/dspace/bin/dspace test-email

And I get the error:

Error sending email:
 - Error: javax.mail.MessagingException: Could not connect to SMTP host:
localhost, port: 25;
  nested exception is:
java.net.ConnectException: Connection refused


For PHP applications you can set "sendmail_path" in php.ini and it uses the
system's /usr/sbin/sendmail

I have installed ssmtp on my system which sets up sendmail as a symlink to
the ssmtp program - then all system mail, and all mail send via PHP works
with my `ssmtp` package settings.

How can I get DSpace to just use the system mail configuration instead of
trying to send mail to localhost via port 25?

I realize I can put in SMTP settings ( like for gmail or something) in the
dpsace.cfg file, but I don't want to have to maintain this separately.

The only related thing I could find on this was this post:
http://sourceforge.net/mailarchive/message.php?msg_id=30524161
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to