[GH-ISSUE #1880] SMTP Connection Problem #1471

Closed
opened 2026-02-27 11:17:17 +03:00 by kerem · 1 comment
Owner

Originally created by @burakbuylu on GitHub (Apr 23, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1880

Impacted versions

  • Modoboa: 1.14.0
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Im using the PHPMailer for SMTP Access

I got this error :

2020-04-23 10:06:26 Auth method selected: LOGIN
2020-04-23 10:06:26 CLIENT -> SERVER: AUTH LOGIN
2020-04-23 10:06:26 SMTP INBOUND: "334 VXNlcm5hbWU6"
2020-04-23 10:06:26 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2020-04-23 10:06:26 CLIENT -> SERVER: aW5mb0ByZWFkbS5vcmc=
2020-04-23 10:06:26 SMTP INBOUND: "334 UGFzc3dvcmQ6"
2020-04-23 10:06:26 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2020-04-23 10:06:26 CLIENT -> SERVER: QnVydGlORVQyMDIw
2020-04-23 10:06:29 SMTP INBOUND: "535 Incorrect authentication data"
2020-04-23 10:06:29 SERVER -> CLIENT: 535 Incorrect authentication data
2020-04-23 10:06:29 SMTP ERROR: Password command failed: 535 Incorrect authentication data
SMTP Error: Could not authenticate.
2020-04-23 10:06:29 CLIENT -> SERVER: QUIT

My Settings

$mail->SMTPOptions = array(
'ssl' => array(
    'verify_peer' => false,
    'verify_peer_name' => false,
    //'allow_self_signed' => true
)

);

$mail->SMTPDebug = 4;                    
$mail->isSMTP(true);                                          
$mail->Host       = 'mail.mysite.org';
$mail->SMTPAuth   = true;                              
$mail->Username   = 'info@mysite.org';                  
$mail->Password   = 'MyPassword';
$mail->SMTPSecure = 'tls';
$mail->Port       = 587;

Expected behavior

Video/Screenshot link (optional)

Originally created by @burakbuylu on GitHub (Apr 23, 2020). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1880 # Impacted versions * Modoboa: 1.14.0 * installer used: Yes * Webserver: Nginx # Steps to reproduce Im using the PHPMailer for SMTP Access I got this error : > 2020-04-23 10:06:26 Auth method selected: LOGIN 2020-04-23 10:06:26 CLIENT -> SERVER: AUTH LOGIN 2020-04-23 10:06:26 SMTP INBOUND: "334 VXNlcm5hbWU6" 2020-04-23 10:06:26 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2020-04-23 10:06:26 CLIENT -> SERVER: aW5mb0ByZWFkbS5vcmc= 2020-04-23 10:06:26 SMTP INBOUND: "334 UGFzc3dvcmQ6" 2020-04-23 10:06:26 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2020-04-23 10:06:26 CLIENT -> SERVER: QnVydGlORVQyMDIw 2020-04-23 10:06:29 SMTP INBOUND: "535 Incorrect authentication data" 2020-04-23 10:06:29 SERVER -> CLIENT: 535 Incorrect authentication data 2020-04-23 10:06:29 SMTP ERROR: Password command failed: 535 Incorrect authentication data SMTP Error: Could not authenticate. 2020-04-23 10:06:29 CLIENT -> SERVER: QUIT # My Settings $mail->SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, //'allow_self_signed' => true ) ); $mail->SMTPDebug = 4; $mail->isSMTP(true); $mail->Host = 'mail.mysite.org'; $mail->SMTPAuth = true; $mail->Username = 'info@mysite.org'; $mail->Password = 'MyPassword'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; # Expected behavior # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:17:17 +03:00
Author
Owner

@tonioo commented on GitHub (Apr 24, 2020):

@burakbuylu Make sure to use STARTTLS to connect on port 587. And also, check server logs to see if there is any error.

<!-- gh-comment-id:618921736 --> @tonioo commented on GitHub (Apr 24, 2020): @burakbuylu Make sure to use STARTTLS to connect on port 587. And also, check server logs to see if there is any error.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1471
No description provided.