Roundcube Community Forum

 

SMTP error - Invalid response code received from server (Code: 454)

Started by lruneh, January 03, 2018, 05:11:01 PM

Previous topic - Next topic

lruneh

Hello
I got as far as being able to log on and receive mail. However, when I try to send mail, I get the error: (Authentication failure: Invalid response code received from server (Code: 454)).
I'm pretty sure it has to do with my SMTP settings, but I'm having trouble finding any solution, so if anyone could help, I would be very grateful.
Here is th content of my Roundcube error log:
  GNU nano 2.8.6                                           File: /var/www/html/lasserh.dk/roundcubemail/logs/errors                                                     

[03-Jan-2018 21:36:50 Europe/Berlin] ERROR: Connection timed out (110)
[03-Jan-2018 21:36:50 Europe/Berlin] ERROR: Failed to connect socket: Connection timed out ()
[03-Jan-2018 21:40:35 +0100]: <9ogf28oi> IMAP Error: Login failed for [email protected] from 80.210.69.55. Could not connect to ssl://mail.lasserh.dk:993: Connection tim$
[03-Jan-2018 21:41:27 Europe/Berlin] ERROR: Invalid response code received from server (454)
[03-Jan-2018 21:42:21 Europe/Berlin] ERROR: Invalid response code received from server (454)
[03-Jan-2018 21:42:45 +0100]: <9ogf28oi> IMAP Error: Login failed for [email protected] from 80.210.69.55. AUTHENTICATE PLAIN: Authentication failed. in /var/www/html/la$
[03-Jan-2018 21:43:22 +0100]: <551r1q7c> IMAP Error: Login failed for root from 80.210.69.55. AUTHENTICATE PLAIN: Authentication failed. in /var/www/html/lasserh.dk/rou$
[03-Jan-2018 21:43:38 +0100]: <551r1q7c> IMAP Error: Login failed for root from 80.210.69.55. AUTHENTICATE PLAIN: Authentication failed. in /var/www/html/lasserh.dk/rou$
[03-Jan-2018 21:44:07 Europe/Berlin] ERROR: Invalid response code received from server (454)
[03-Jan-2018 21:44:07 +0100]: <1bs3ck2m> SMTP Error: Authentication failure: Invalid response code received from server (Code: 454) in /var/www/html/lasserh.dk/roundcub$
[03-Jan-2018 21:45:38 Europe/Berlin] ERROR: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
[03-Jan-2018 21:45:38 Europe/Berlin] ERROR: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known ()
[03-Jan-2018 21:49:19 Europe/Berlin] ERROR: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
[03-Jan-2018 21:49:19 Europe/Berlin] ERROR: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known ()
[03-Jan-2018 21:49:32 Europe/Berlin] ERROR: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
[03-Jan-2018 21:49:32 Europe/Berlin] ERROR: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known ()
[03-Jan-2018 21:55:22 Europe/Berlin] ERROR: Connection timed out (110)
[03-Jan-2018 21:55:22 Europe/Berlin] ERROR: Failed to connect socket: Connection timed out ()
[03-Jan-2018 21:57:29 Europe/Berlin] ERROR: Connection timed out (110)
[03-Jan-2018 21:57:29 Europe/Berlin] ERROR: Failed to connect socket: Connection timed out ()
[03-Jan-2018 21:58:12 Europe/Berlin] ERROR: Invalid response code received from server (454)
[03-Jan-2018 21:58:22 Europe/Berlin] ERROR: Connection timed out (110)
[03-Jan-2018 21:58:22 Europe/Berlin] ERROR: Failed to connect socket: Connection timed out ()
[03-Jan-2018 21:58:22 +0100]: <1bs3ck2m> SMTP Error: Connection failed: Failed to connect socket: Connection timed out in /var/www/html/lasserh.dk/roundcubemail/program$
[03-Jan-2018 21:58:26 Europe/Berlin] ERROR: Invalid response code received from server (454)
[03-Jan-2018 22:05:55 Europe/Berlin] ERROR: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
[03-Jan-2018 22:05:55 Europe/Berlin] ERROR: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known ()
[03-Jan-2018 22:22:19 Europe/Berlin] ERROR: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
[03-Jan-2018 22:22:19 Europe/Berlin] ERROR: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known ()
[03-Jan-2018 22:29:17 Europe/Berlin] ERROR: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
[03-Jan-2018 22:29:17 Europe/Berlin] ERROR: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known ()
[03-Jan-2018 22:30:11 Europe/Berlin] ERROR: Connection refused (111)
[03-Jan-2018 22:30:11 Europe/Berlin] ERROR: Failed to connect socket: Connection refused ()
[03-Jan-2018 22:31:02 Europe/Berlin] ERROR: Connection refused (111)
[03-Jan-2018 22:31:02 Europe/Berlin] ERROR: Failed to connect socket: Connection refused ()
[03-Jan-2018 22:31:44 Europe/Berlin] ERROR: Connection refused (111)
[03-Jan-2018 22:31:44 Europe/Berlin] ERROR: Failed to connect socket: Connection refused ()
[03-Jan-2018 22:32:14 Europe/Berlin] ERROR: Invalid response code received from server (454)
[03-Jan-2018 22:32:29 Europe/Berlin] ERROR: Invalid response code received from server (454)
[03-Jan-2018 22:33:17 Europe/Berlin] ERROR: fsockopen(): unable to connect to ssl://localhost:25 (Unknown error) (0)
[03-Jan-2018 22:33:17 Europe/Berlin] ERROR: Failed to connect socket: fsockopen(): unable to connect to ssl://localhost:25 (Unknown error) ()
[03-Jan-2018 22:41:24 Europe/Berlin] ERROR: Invalid response code received from server (454)

Thank you for any help.

SKaero

You should look at your mail server log to see what that error code means.

lruneh

Hi and thanks for helping out.

The mail server logs final lines  say (nothing about the error 454 in the entire /var/log/mail.log):

Jan  4 10:15:24 Blacknight postfix/smtpd[21084]: cannot load Certification Authority data, CAfile="/etc/postfix/ssl/cakey.pem": disabling TLS support
Jan  4 10:15:24 Blacknight postfix/smtpd[21084]: connect from localhost[127.0.0.1]
Jan  4 10:15:24 Blacknight postfix/smtpd[21084]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Jan  4 10:15:24 Blacknight postfix/smtpd[21084]: warning: localhost[127.0.0.1]: SASL LOGIN authentication failed: generic failure
Jan  4 10:15:24 Blacknight postfix/smtpd[21084]: disconnect from localhost[127.0.0.1] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4

I don't know why the CAfile cant be loaded, the path seems correct. Is it a permissions problem maybe?
Any help is much appreciated :)

**Update**
I can send mail using telnet, which I asume proves it's something wrong with my settings in Roundcube.

SKaero

So the problem is with your mail server being unable to saslauthd, you should investigate further into why that is happening.