[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Integrating eprints-3.3.15 with office365



Hi, Alan, Thank you for the reply, and also for the possible solutions, therein.

Yes, every time I make changes in any of the eprints-related files, I
reload the repository and also restart the web server.

Regarding the authentication settings for smtp.office365.com, our
email support team  has taken care of that aspect. I'm, therefore,
able to send emails from the eprints.iisc.ac.in server using 'alpine'
application.

I haven't tried the changes that you have suggested in Email.pm file.
Will give it a try and let you know the outcome.

Thanks and regards, Francis
On Fri, Aug 17, 2018 at 1:17 PM Alan.Stiles <alan.stiles at open.ac.uk> wrote:
>
> Hi Francis,
>
> I?ve copied this back to the mailing list as someone else may see something I?ve missed, a more elegant way of doing it or realise I?m completely wrong!  I?ve not had to deal with this so I?m guessing at possible solutions here.
>
>
>
> When you change SystemSetting.pm are you restarting the apache service to make sure the new config is running?
>
>
>
> Another thought is that you probably need to apply some mailbox authentication settings to the direct connection with smtp.office365.com.  I?m not sure Eprints will do this in a standard configuration and it?s not something I?ve had to deal with here.
>
> I?m guessing somewhere around https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Email.pm#L172 it would need lines like
>
>
>
> If( !$smtp->auth( USERNAME, PASSWORD ) )
>
> {
>
>                 $repository->log( ?SMTP refused authentication: ?.$smtp->code.? ?.$smtp->message );
>
> }
>
>
>
> It would need to get the username and password details from somewhere ? ideally the repository config from a file in cfg.d, and also the changes would be made to a copy of the function in your local archive rather than directly in the file under [EPRINTS_ROOT]/perl_lib/
>
>
>
> Regards,
>
> Alan
>
>
>
> From: Francis Jayakanth [mailto:francis at iisc.ac.in]
> Sent: 17 August 2018 06:05
> To: Alan.Stiles <alan.stiles at open.ac.uk>
> Subject: Re: Integrating eprints-3.3.15 with office365
>
>
>
> Hi Alan, I tried setting the 'smtp_server' to 'localhost in the SystemSetting.pm file, but it doesn't help. The web server log file reports the following error:
>
>
>
> Failed to create SMTP connection to localhost
>
> Failed to send mail.
>
> To: francis at iisc.ac.in <>
>
> Subject: Request for "Setting up Multilingual Information Repository: A case Study with EPrints.org Software"
>
>
>
> Failed to create SMTP connection to localhost
>
> Failed to send mail.
>
> To: francis at iisc.ac.in <>
>
> Subject: Request for "Setting up Multilingual Information Repository: A case Study with EPrints.org Software"
>
>
>
> Regards, Francis
>
> ________________________________
>
> From: Francis Jayakanth
> Sent: 16 August 2018 22:41:08
> To: Alan.Stiles
> Subject: RE: Integrating eprints-3.3.15 with office365
>
>
>
> Hi Alan, thank you very much for the reply. I'm able to send mails using alpine. Replies also reach eprints at iisc.ac.in. btw, eprints at iisc.ac.in is a shared Id. Will that have any effect?
>
> Regards, Francis
>
> Get Outlook for Android
>
>
>
> ________________________________
>
> From: Alan.Stiles <alan.stiles at open.ac.uk>
> Sent: Thursday, August 16, 2018 8:50:44 PM
> To: Francis Jayakanth
> Subject: RE: Integrating eprints-3.3.15 with office365
>
>
>
> Hi Francis,
>
>
>
> What happens if you have the ?smtp_server? defined as ?localhost? ?   It should theoretically use the postfix queue to send mails from eprints .
>
>
>
> When you say sending from the terminal works, are you using sendmail directly or through an eprints related command?
>
>
>
> Regards,
>
> Alan
>
>
>
>
>
>
>
> From: Francis Jayakanth
>
> Sent: 16 August 2018 15:42
> To: Alan.Stiles
>
> Subject: Integrating eprints-3.3.15 with office365
>
>
>
> Dear Alan, At the outset, kindly accept my apologies for bothering you with my inquiry.
>
>
>
> I'm writing to seek your help in configuring our eprints-3.3.15 software with office365 SMTP server.
>
>
> I'm unable to configure our eprints-3.3.15 instance (eprints.iisc.ac.in) with Microsoft SMTP (smtp.office365.com:587).for
> email communications. I have looked eprints documentation and have Googled extensively, but not able to get any lead. I had also posted on the
> eprints tech list, but haven't received any replies, to date. Since I need to get this working as early as possible, I'm writing to you to
> seek your help. Being a core eprints developer, I'm hoping that you will be able to provide me the solution.
>
>
>
> We have been using eprints software since 2002. All these years we never had any problem in integrating our local email server with the
> eprints software. Recently our institute decided to migrate to office365 email platform for the entire campus. I now need to
> reconfigure our eprints server to use the smtp.office365.com:server on port # 587.
>
> To use the new SMTP server, the only change that I have made in the SystemSetting.pm file is, replaced our old email server domain name
> with the office 365 SMTP server:
>
> 'smtp_server' => 'smtp.office365.com:587'
>
> Kindly let me know if anything else needs to be changed in any of the pm files to use the office365 SMTP server.
>
> Kindly read my tech list post below.
>
> Sincerely, Francis
>
>
>
> --------- Forwarded message ----------
> From: Francis Jayakanth
> Date: Sun, Aug 12, 2018 at 12:13 PM
> Subject: Integrating eprints-3.3.15 with office365
> To: eprints-tech
>
> Dear List Member, I'm unable to integrate eprints-3.3.15 with
> office365 for email communication. If any of you have successfully
> configured eprints3 with office365, could you please share your
> experience?
>
> I have realised that merely providing the SMTP server specification in
> the SystemSettings.pm file doesn't seem to work.
>
> 'smtp_server' => 'smtp.office365.com:587'
>
> The specifications of our eprints (eprints.iisc.ac.in) instance are:
>
> Software version: EPrints-3.3.15
>
> OS: Centos7
>
> SMTP: Postfix
>
> eprints.iisc.ac.in has been configured to use Postfix, and I'm able
> send and receive emails from the terminal, but it doesn't happen
> through the eprints interface. For example, if I click on the 'Request
> a copy' button, the response I get is:
>
> The system is currently unable to send email. Please try again later.
> If this problem persists, please contact the administrator with
> details.
>
> Thank you for your attention.
>
> -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority in relation to its secondary activity of credit broking.
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/