1

Topic: SMTP Error (220): Authentication failed.

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Debian 8
- Related log if you're reporting an issue: not sure where to find a log, one of my problems...
====

Hello everyone,
Ive been trying to research this problem on my own, but all I seem to be able to find is bits and pieces, sadly nothing to help me that I can understand

Earlier today I upgraded my VPS to Debian 8 and iRedMail to 0.9.0. Everything seemed to run ok then I got a call from one of my users that told me they are getting SMTP Error (220): Authentication failed. when using roundcube. Server seems to be ok using Thunderbird. I am not sure where to start since I can't seem to find the locations of logs to look up and resolve my issue. If anyone can post solution and/or log locations, maybe I can find the answer for myself...

Monery

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SMTP Error (220): Authentication failed.

I think the problem is with PHP 5.6.x

3

Re: SMTP Error (220): Authentication failed.

PHP 5.6.x by default verifies all SSL Certificates, so yes, it will break it. You will have to disable SSL Certificate Verification in Roundcube if you are using PHP 5.6.x

4

Re: SMTP Error (220): Authentication failed.

7t3chguy wrote:

PHP 5.6.x by default verifies all SSL Certificates, so yes, it will break it. You will have to disable SSL Certificate Verification in Roundcube if you are using PHP 5.6.x

How do I go about performing this function

5

Re: SMTP Error (220): Authentication failed.

http://lists.roundcube.net/pipermail/us … 10740.html

6

Re: SMTP Error (220): Authentication failed.

I am a bit confused, what exactly am I supposed to do...

7

Re: SMTP Error (220): Authentication failed.

>  $config['imap_conn_options'] = array(
>    'ssl'         => array(
>       'verify_peer'  => false,
>       'verfify_peer_name' => false,
>     ),
>  );
>
>  and
>
>  $config['smtp_conn_options'] = array(
>    'ssl'         => array(
>        'verify_peer'      => false,
>        'verify_peer_name' => false,
>    ),
>  );

Add those to your roundcube config file. (without the >)

8

Re: SMTP Error (220): Authentication failed.

Hello,
7t3chguy, Thanks for the hint!
With this code, I have sent mails, but does not display the new incoming. What else should I do? smile

9

Re: SMTP Error (220): Authentication failed.

Excuse me, the test message arrives, but after 15 minutes.

10

Re: SMTP Error (220): Authentication failed.

That's Greylisting
www.greylisting.org

11

Re: SMTP Error (220): Authentication failed.

Thank you!
and sorry for offtopic.

Is it possible to somehow reduce the delivery time to 5 minutes (at-least)

12

Re: SMTP Error (220): Authentication failed.

Its not on your end, its however long it takes for the sender to send it a second time. You can disable it if you'd like and accept the e-mail on its first send, but this means more possibility of receiving SPAM.

13

Re: SMTP Error (220): Authentication failed.

Well, thank you!
Better to let them come later than they would be very much! smile

14

Re: SMTP Error (220): Authentication failed.

7t3chguy wrote:

>  $config['imap_conn_options'] = array(
>    'ssl'         => array(
>       'verify_peer'  => false,
>       'verfify_peer_name' => false,
>     ),
>  );
>
>  and
>
>  $config['smtp_conn_options'] = array(
>    'ssl'         => array(
>        'verify_peer'      => false,
>        'verify_peer_name' => false,
>    ),
>  );

Add those to your roundcube config file. (without the >)

Added the following php code to /usr/share/apache2/roundcubemail-1.1.1/config/config.inc.php and now my URL http://monery.org/mail loads a blank white page...

15

Re: SMTP Error (220): Authentication failed.

Did you exclude the > characters?

16

Re: SMTP Error (220): Authentication failed.

7t3chguy wrote:

Did you exclude the > characters?

yes I did. I removed the extra code and I can get back to my mail, but the 220 message returns so I am not sure what I missed.

17

Re: SMTP Error (220): Authentication failed.

Check your php/Apache logs

18

Re: SMTP Error (220): Authentication failed.

7t3chguy wrote:

Check your php/Apache logs

I am still quite a noob at apache2 and php. Where does Debian keep this log, or what will the name be so I can do a search on it

19

Re: SMTP Error (220): Authentication failed.

Monery wrote:

I am still quite a noob at apache2 and php. Where does Debian keep this log, or what will the name be so I can do a search on it

Check this tutorial:
http://www.iredmail.org/docs/file.locations.html

20

Re: SMTP Error (220): Authentication failed.

ZhangHuangbin wrote:
Monery wrote:

I am still quite a noob at apache2 and php. Where does Debian keep this log, or what will the name be so I can do a search on it

Check this tutorial:
http://www.iredmail.org/docs/file.locations.html

According to your page, my apache2 logs should be in /var/www/apache2 but /var/www is the root of my webserver

21

Re: SMTP Error (220): Authentication failed.

Oops, this was wrong in the tutorial, it should be /var/log/apache2/. Fixed moment ago.

22

Re: SMTP Error (220): Authentication failed.

Ah the log file reveals all. The code I input had an error. 7t3chguy's fix took care of it. Problem was I copied and pasted EVERYTHING. I did remove the >'s but the word and I left in there thinking it was the problem. After I found the logs, I noticed there was an error reported. I looked up the line that was in my config.inc.php, removed that line with the word and in it and boom! it works! Thanks for making such a great project and providing such great support.

23

Re: SMTP Error (220): Authentication failed.

Glad you got it working, thanks for pointing out the flaw in one of our Docs (log location)