<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Francis,</p>
<p>the problem seem to be in "Failed to create SMTP connection to
localhost" found in
<a class="moz-txt-link-freetext" href="https://github.com/eprints/eprints/blob/2d42b2be54004bf3db6881a6d893d39c7a7f909f/perl_lib/EPrints/Email.pm#L169">https://github.com/eprints/eprints/blob/2d42b2be54004bf3db6881a6d893d39c7a7f909f/perl_lib/EPrints/Email.pm#L169</a></p>
<p>EPrint use "<span class="pl-k">my</span> <span class="pl-smi">$smtp</span>
= Net::SMTP<span class="pl-k">-></span>new( <span
class="pl-smi">$smtphost</span> );" <a moz-do-not-send="true"
href="https://github.com/eprints/eprints/blob/2d42b2be54004bf3db6881a6d893d39c7a7f909f/perl_lib/EPrints/Email.pm#L166">on
line 166</a><br>
</p>
and defaut to port 25 on "$smtphost" (localhost).<br>
<br>
Is your postfix active on this port?<br>
<blockquote><i>netstat -napt | grep 127.0.0.1:25</i><br>
</blockquote>
Enio<br>
<div class="moz-cite-prefix">Il 30/08/2018 17:22, Francis Jayakanth
ha scritto:<br>
</div>
<blockquote type="cite"
cite="mid:EMEW3|1c899c354eef2044459cc132149163bdu7YGOI14eprints-tech-bounces|ecs.soton.ac.uk|CAAVv=LSPK5tam-OYEv7fn-N_cK7CvsAyi1h-qOhtBDxsPgp11g@mail.gmail.com">
<pre wrap="">Hi, Thomas, thank very much for the kind reply.
Yes, I have tried both 'smtp_server' => 'localhost' and 'smtp_server'
=> 'eprints.iisc.ac.in' options, but the outcome is the same.
Here is the corresponding web server log file extract"
Failed to create SMTP connection to localhost
Failed to send mail.
To: <a class="moz-txt-link-abbreviated" href="mailto:francis@iisc.ac.in">francis@iisc.ac.in</a> <>
Subject: Request for "Setting up Multilingual Information Repository:
A case Study with EPrints.org Software"
No helpful hint from the maillog file, too. Here is the extract from
the /var/log/maillog file:
Aug 30 13:13:35 eprints postfix/postfix-script[104689]: starting the
Postfix mail system
Aug 30 13:13:35 eprints postfix/master[104691]: daemon started --
version 2.10.1, configuration /etc/postfix
Aug 30 13:13:35 eprints postfix/pickup[104692]: EE3A2135D797: uid=0 from=<root>
Aug 30 13:13:35 eprints postfix/cleanup[104694]: EE3A2135D797:
message-id=<20180830074335.EE3A2135D797@localhost>
Aug 30 13:13:36 eprints postfix/qmgr[104693]: EE3A2135D797:
from=<a class="moz-txt-link-rfc2396E" href="mailto:eprints@iisc.ac.in"><eprints@iisc.ac.in></a>, size=510, nrcpt=1 (queue active)
Aug 30 13:13:36 eprints postfix/local[104696]: EE3A2135D797:
to=<a class="moz-txt-link-rfc2396E" href="mailto:root@localhost.localdomain"><root@localhost.localdomain></a>, orig_to=<root>, relay=local,
delay=53311, delays=53311/0.02/0/0.01, dsn=2.0.0, status=sent
(delivered to mailbox)
Aug 30 13:13:36 eprints postfix/qmgr[104693]: EE3A2135D797: removed
Aug 30 13:18:32 eprints postfix/postfix-script[105288]: stopping the
Postfix mail system
Aug 30 13:18:32 eprints postfix/master[104691]: terminating on signal 15
Aug 30 13:21:22 eprints postfix/postfix-script[105663]: starting the
Postfix mail system
Aug 30 13:21:22 eprints postfix/master[105665]: daemon started --
version 2.10.1, configuration /etc/postfix
Aug 30 14:19:13 eprints postfix/postfix-script[110740]: stopping the
Postfix mail system
Aug 30 14:19:13 eprints postfix/master[105665]: terminating on signal 15
Aug 30 14:19:13 eprints postfix/postfix-script[110822]: starting the
Postfix mail system
Aug 30 14:19:13 eprints postfix/master[110824]: daemon started --
version 2.10.1, configuration /etc/postfix
Aug 30 19:45:17 eprints postfix/smtpd[5469]: connect from localhost[127.0.0.1]
Aug 30 19:45:17 eprints postfix/smtpd[5469]: 24F61201F8D1:
client=localhost[127.0.0.1]
Aug 30 19:45:17 eprints postfix/smtpd[5469]: disconnect from
localhost[127.0.0.1]
Aug 30 19:45:17 eprints postfix/pickup[2911]: 66ABA135D797: uid=1003
from=<a class="moz-txt-link-rfc2396E" href="mailto:eprints@eprints.iisc.ac.in"><eprints@eprints.iisc.ac.in></a>
Aug 30 19:45:17 eprints postfix/cleanup[5471]: 66ABA135D797:
message-id=<a class="moz-txt-link-rfc2396E" href="mailto:alpine.LRH.2.21.1808301944160.5342@eprints.iisc.ac.in"><alpine.LRH.2.21.1808301944160.5342@eprints.iisc.ac.in></a>
Aug 30 19:45:17 eprints postfix/qmgr[110826]: 66ABA135D797:
from=<a class="moz-txt-link-rfc2396E" href="mailto:eprints@iisc.ac.in"><eprints@iisc.ac.in></a>, size=655, nrcpt=1 (queue active)
Aug 30 19:45:19 eprints postfix/smtp[5474]: 66ABA135D797:
to=<a class="moz-txt-link-rfc2396E" href="mailto:fjayakanth@gmail.com"><fjayakanth@gmail.com></a>, relay=smtp.office365.com[40.100.141.2]:587,
delay=2.5, delays=0.3/0.04/1.9/0.26, dsn=2.6.0, status=sent (250 2.6.0
<a class="moz-txt-link-rfc2396E" href="mailto:alpine.LRH.2.21.1808301944160.5342@eprints.iisc.ac.in"><alpine.LRH.2.21.1808301944160.5342@eprints.iisc.ac.in></a>
[InternalId=35716948034469,
Hostname=MA1PR0101MB1701.INDPRD01.PROD.OUTLOOK.COM] 3726 bytes in
0.227, 16.006 KB/sec Queued mail for delivery)
Aug 30 19:45:19 eprints postfix/qmgr[110826]: 66ABA135D797: removed
The maillog extract indicates that only mails sent using 'alpine' are
being logged.
Thanks and regards, Francis
On Thu, Aug 30, 2018 at 6:24 PM <a class="moz-txt-link-rfc2396E" href="mailto:th.lauke@arcor.de"><th.lauke@arcor.de></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Hi Francis,
</pre>
<blockquote type="cite">
<pre wrap="">'smtp_server' => 'smtp.office365.com'
</pre>
</blockquote>
<pre wrap="">have you tried
'smtp_server' => 'localhost'
instead?
Are there any helpful messages in /var/log/exim4/mainlog?
Hth
Thomas
</pre>
</blockquote>
<pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
</blockquote>
<br>
</body>
</html>