EPrints Technical Mailing List Archive
Message: #07413
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Integrating eprints-3.3.15 with office365
- To: Francis Jayakanth <francis@iisc.ac.in>, "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Integrating eprints-3.3.15 with office365
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Fri, 17 Aug 2018 07:47:10 +0000
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@iisc.ac.in]
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@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@iisc.ac.in <> Subject: Request for "Setting up Multilingual Information Repository: A case Study with EPrints.org Software" Regards, Francis
From: Francis Jayakanth Hi Alan, thank you very much for the reply. I'm able to send mails using alpine. Replies also reach
eprints@iisc.ac.in. btw,
eprints@iisc.ac.in is a shared Id. Will that have any effect?
Regards, Francis From: Alan.Stiles <alan.stiles@open.ac.uk> 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 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.
We have been using eprints software since 2002. All these years we never had any problem in integrating our local email server with the --------- Forwarded message ---------- |
- Follow-Ups:
- Re: [EP-tech] Integrating eprints-3.3.15 with office365
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Re: [EP-tech] Integrating eprints-3.3.15 with office365
- References:
- Re: [EP-tech] Integrating eprints-3.3.15 with office365
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Re: [EP-tech] Integrating eprints-3.3.15 with office365
- Prev by Date: Re: [EP-tech] Multiple Uploaded Files in One Directory
- Next by Date: Re: [EP-tech] Integrating eprints-3.3.15 with office365
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):