EPrints Technical Mailing List Archive

Message: #07448


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] eprints integration with office365 SMTP


Hi, All. I have been trying to integrate our eprints server,
eprints.iisc.ac.in with the Microsoft SMTP server, smtp.office365.com
for almost a month now, but haven't been successful. Can someone who
has done this integration, share his/her experience, please?.

Postfix MTA has been configured on the eprints server. I'm able to
send and receive emails from the eprints server's command prompt using
the 'alpine' application. However, when I try to 'Create  Account' or
try to 'Request a copy', eprints returns following error message:

The system is currently unable to send email. Please try again later.
If this problem persists, please contact the administrator with
details.

The corresponding web server error log message is:

[Thu Aug 30 14:34:45.878756 2018] [perl:error] [pid 110861] [client
66.249.79.231:40694] EPrints::abort()\n
Failed to create SMTP connection to smtp.office365.com
Failed to send mail.
To: francis@iisc.ac.in <>
Subject: Request for "Setting up Multilingual Information Repository:
A case Study with EPrints.org Software"

Our email support team is saying that Postfix is working fine, the
problem is with the eprints application configuration..

I'm using, eprints-3.3.15 on CentOS Linux release 7.4.1708 (Core)

>From the SystemSettings.pm file, a reference is made to the SMTP
server in the following statement:

'smtp_server' => 'smtp.office365.com',

Here are my Postfix configurations:

relayhost = [smtp.office365.com]:587

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd_test
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
sender_canonical_maps = regexp:/etc/postfix/sender_canonical_test

Both sasl_password_maps and sender_canonical_maps have been defined in
the respective files.

A I have already mentioned, email communication using 'alpine' works well.

My question is, are any other changes required for the eprints email
integration. with smtp.office365.com? If yes, please let me know.

Thanks in advance,

Best regards, Francis