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

[EP-tech] Eprints SMPT configuration Error with Office 365



Hi Revathi,

The error message you are getting suggesting Postfix is not running on 
the port required.? By default Postfix runs on TCP port 25 (SMTP) but 
your EPrints looks to be trying to find it on port 587.? I think this is 
because you are trying to using TLS encryption for the local connection 
between EPrints and Postfix on your server.? I am not sure what would 
cause EPrints to use Net::SMTP::TLS by default.? I have tried installing 
this Perl module using CPAN and I still use regular (non-encrypted) SMTP 
locally on TCP Port 25.? I would not reconfigure Postfix for run on port 
587 using TLS.? As that would likely take a lot of effort and add 
unnecessary complexity with no real benefit.

Have you changed the settings in cfg.d/email.pl?? Specifically have you 
changed the configuration setting for $c->{send_email} either in this 
file or some other file in a cfg.d/ directory?? Based in you running 
EPrints 3.4.4 (according to your /cgi/counter page on 
eprints.exchange.isb.edu), line 178 of perl_lib/EPrints/Email.pm does 
not look to be a line that include a call to Net::SMTP::TLS::new.? Have 
you modified perl_lib/EPrints/Email.pm? Did you any other error messages 
around the same time as your highlighted message in any of your Apache 
logs files?

Regards

David Newman

On 26/03/2023 2:09 pm, Mosys Consultancy Services Pvt Ltd via 
Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Dear All,
> Could anyone please help me to resolve the issue of Office365 SMTP 
> Configuration issue with eprints.exchange.isb.edu 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.exchange.isb.edu%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092640292%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1Gdz%2BI74%2BbltFMz%2Bz2cHUnF8gELeGegcqN%2BD891VblE%3D&reserved=0>. 
> Let me clear what I have done so far.
> 1. Followed this guide 
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FSetting_up_email%23%3A~%3Atext%3DConfiguring%2520SMTP%2520in%2520EPrints%2CE.g.%26text%3DIf%2520you%2520are%2520running%2520Debian%2Cway%2520to%2520reload%2520the%2520webserver&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tgn5SFwKBw3O7eP9s8tbnAi8AV4XTcqas9lCwY1P5XQ%3D&reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FSetting_up_email%23%3A~%3Atext%3DConfiguring%2520SMTP%2520in%2520EPrints%2CE.g.%26text%3DIf%2520you%2520are%2520running%2520Debian%2Cway%2520to%2520reload%2520the%2520webserver&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tgn5SFwKBw3O7eP9s8tbnAi8AV4XTcqas9lCwY1P5XQ%3D&reserved=0>. 
> and used postfix as a relay server.
> 2. It is working well with mail command without any isssue
> 3. Email.pm and SystemSettings.pm have been configured accordingly
> 4, Followed this thread https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Feptech%2Fmsg07173.html&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3WhiSyDqqrxrhG7ADTjvRboefrVQT%2B%2F8hasUN2bpkEM%3D&reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Feptech%2Fmsg07173.html&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3WhiSyDqqrxrhG7ADTjvRboefrVQT%2B%2F8hasUN2bpkEM%3D&reserved=0> 
> and tested with test_sendmail.pl 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftest_sendmail.pl%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Xc8Vjm%2FH%2BCMaHwfU26wzvt63I%2BpFertKnJgLhEjsb5g%3D&reserved=0> 
> and working perfectly.
> I am facing the following error
>
> Connect failed :IO::Socket::INET: connect: Connection refused at 
> /usr/local/share/perl/5.30.0/Net/SMTP/TLS.pm line 113. 
> Net::SMTP::TLS::new("Net::SMTP::TLS", "localhost", "Hello", 
> "localhost", "Port", 587, "User", "******email", ...) called at 
> /opt/eprints3/perl_lib/EPrints/Email.pm line 178 
> EPrints::Email::send_mail_via_smtp("sig", 
> XML::LibXML::DocumentFragment=SCALAR(0x55c2ec290348), "to_email", 
> "lrc_hyd\@isb.edu 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fisb.edu%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5Zgs4qbJ1%2BVyoz45DqHdococgFLnNLxHQou%2FhDt4SQI%3D&reserved=0>", 
> "cc_list", ARRAY(0x55c2ec28fc70), "replyto_email", "****@gmail.com 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgmail.com%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JbyTGv2HAEtu34gcAsgoFKbN3%2FtlqSenBhmnpeketdc%3D&reserved=0>", 
> ...) called at /opt/eprints3/perl_lib/EPrints/Repository.pm line 1927
> eval {...} called at /opt/eprints3/perl_lib/EPrints/Repository.pm line 
> 1927"
>
> Could anyone please help me out?
>
> thanks
> Revathi
>
> *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xF5tc98OwoXrfCjRRt1lE7vDbU4s%2BH0rNybo0tJ0XLc%3D&reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9f4e55dc5d3748f757c908db2e5c0c52%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638154745092797005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wi%2F3ei1qwr0eu6GTRmoy2UaZTEvywNN9bggJU2oqeUs%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230327/a07908bb/attachment-0001.html