Cant send email throug smtp server without authorisation

Hi,
I just upgraded our system to OJS 3.4.0.6 and am trying to configure the email service.
On my server is running a smtp server on localhost with no name and password.
If I set default = mail, I get information on the web about a problem sending an email.
If I set this, the email appears to be sent but does not arrive.

default = smtp
 
; Use SMTP for sending mail instead of mail()
smtp = On
 
; SMTP server settings
smtp_server = localhost
smtp_port = 25
 
; Enable SMTP authentication
; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure)
; smtp_auth = ssl
; smtp_username = username
; smtp_password = password

Information from the server log:

Sep 25 09:56:34 panel-v1 postfix/smtpd[171861]: connect from panel-v1[127.0.0.1]
Sep 25 09:56:34 panel-v1 postfix/smtpd[171861]: discarding EHLO keywords: CHUNKING
Sep 25 09:56:34 panel-v1 postfix/smtpd[171861]: TLS SNI localhost from panel-v1[127.0.0.1] not matched, using default chain
Sep 25 09:56:34 panel-v1 postfix/smtpd[171861]: SSL_accept error from panel-v1[127.0.0.1]: -1
Sep 25 09:56:34 panel-v1 postfix/smtpd[171861]: warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:ssl/record/rec_layer_s3.c:1544:SSL alert number 48:
Sep 25 09:56:34 panel-v1 postfix/smtpd[171861]: lost connection after STARTTLS from panel-v1[127.0.0.1]
Sep 25 09:56:34 panel-v1 postfix/smtpd[171861]: disconnect from panel-v1[127.0.0.1] ehlo=1 starttls=0/1 commands=1/2

Any idea how to set it up to make it work?
Thanks a lot

Hi @skupa,

If your SMTP server is accepting the message (i.e. you don’t receive an error message from OJS when you try to send a message), then you’ll need to check the SMTP service’s logs to see what happened when it was trying to deliver the message.

(I use a passwordless SMTP service configured like you describe for my local development, and it works fine, so I don’t think the connection from OJS to the SMTP service is the problem – it’s downstream from there.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi, @asmecher
Thank you for your reply.
I’m a bit confused because our server administrator looked at the code and said he wasn’t sure if phpmailer is even used, that there are libraries for symphony.
So I tried a last desperate move and changed the configuration as follows:

default = phpmailer

And it works!

This topic was automatically closed after 11 days. New replies are no longer allowed.