Problem sending mail

Consul

New Member
Greetings to all. I had the following problem. I'm trying to use mailwizz + pmta.
In PMTA I use port 2527. When configuring the delivery server, I also specify port 2527.
When I try to add a delivery server and verify it, I get the following error:
1) If I use the Default system mailer - Swiftmailer
Can not send the confirmation email using the data you provided.
Here is a transcript of the error message:
Failed to authenticate on SMTP server with username "name@domain.com" using 1 possible autenticators
2) if I use the Default system mailer - Phpmailer
Cannot send the confirmation email using the data you provided.
Here is a transcript of the error message:
SMTP Error: Could not authenticate.
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Connection: opening to domain.com:2527, timeout=30, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
Connection: opened
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "220 domain.com ESMTP service ready"
SERVER -> CLIENT: 220 domain.com ESMTP service ready
CLIENT -> SERVER: EHLO sender.sender.com
SMTP -> get_lines(): $str is "250-domain.com says hello"
SMTP -> get_lines(): $data is "250-domain.com says hello"
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $str is "250-PIPELINING"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING"
SMTP -> get_lines(): $str is "250-CHUNKING"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
SMTP -> get_lines(): $str is "250-8BITMIME"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME"
SMTP -> get_lines(): $str is "250-AUTH CRAM-MD5"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME250-AUTH CRAM-MD5"
SMTP -> get_lines(): $str is "250-AUTH=CRAM-MD5"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME250-AUTH CRAM-MD5250-AUTH=CRAM-MD5"
SMTP -> get_lines(): $str is "250-XACK"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME250-AUTH CRAM-MD5250-AUTH=CRAM-MD5250-XACK"
SMTP -> get_lines(): $str is "250-XMRG"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME250-AUTH CRAM-MD5250-AUTH=CRAM-MD5250-XACK250-XMRG"
SMTP -> get_lines(): $str is "250-SIZE 0"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME250-AUTH CRAM-MD5250-AUTH=CRAM-MD5250-XACK250-XMRG250-SIZE 0"
SMTP -> get_lines(): $str is "250-VERP"
SMTP -> get_lines(): $data is "250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME250-AUTH CRAM-MD5250-AUTH=CRAM-MD5250-XACK250-XMRG250-SIZE 0250-VERP"
SMTP -> get_lines(): $str is "250 DSN"
SERVER -> CLIENT: 250-domain.com says hello250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME250-AUTH CRAM-MD5250-AUTH=CRAM-MD5250-XACK250-XMRG250-SIZE 0250-VERP250 DSN
CLIENT -> SERVER: AUTH CRAM-MD5
SMTP -> get_lines(): $str is "334 PDg1RTJFQUZEhc2hpb25tc2sucnU+"
SERVER -> CLIENT: 334 PDg1RTJFQUZEhc2hpb25tc2sucnU+
CLIENT -> SERVER: bGlzaWNoa2FAZmFzaGlzay5ydSA0YzE3YWZkN2M1NTdkZWJiYmVlMzU5MmExZTM3OGUzNg==
SMTP -> get_lines(): $str is "535 5.7.8 credentials invalid"
SERVER -> CLIENT: 535 5.7.8 credentials invalid
SMTP ERROR: Username command failed: 535 5.7.8 credentials invalid
CLIENT -> SERVER: QUIT
SMTP -> get_lines(): $str is "221 2.0.0 domain.com says goodbye"
SERVER -> CLIENT: 221 2.0.0 domain.com says goodbye
Connection: closed


When using Microsoft Outlook 2010, there is no problem. When configuring Microsoft Outlook 2010 I also specify port 2527. Letters go, and an unencrypted connection is used.
Perhaps this is the problem. How to decide I do not know.
Please help.
 
SMTP -> get_lines(): $str is "535 5.7.8 credentials invalid"
SERVER -> CLIENT: 535 5.7.8 credentials invalid
SMTP ERROR: Username command failed: 535 5.7.8 credentials invalid
can u post a screen shot of the delivery server setup page (change anything you want to keep private)
 
I tried to change the protocol. Left as in the picture, and then tried the remaining options. It did not work.
 
try protocol STARTTLS
  • Connection could not be established with host smtp.domain.com [Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP? #0]
    Log data:
    ++ Starting Swift_SmtpTransport
    !! Connection could not be established with host smtp.domain.com [Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP? #0] (code: 0)
double check password
The password is correct - 100%.
 
  • Connection could not be established with host smtp.domain.com [Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP? #0]
    Log data:
    ++ Starting Swift_SmtpTransport
    !! Connection could not be established with host smtp.domain.com [Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP? #0] (code: 0)
The password is correct - 100%.
# check if starttls is installed and enabled
# try only alphanumeric pwd
 
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:fail2ban-SSH - [0:0]
-A INPUT -p tcp -m tcp --dport 22 -j fail2ban-SSH.
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT.
-A INPUT -s 178.159.38.204/32 -j ACCEPT.
-A INPUT -s 127.0.0.1/32 -j ACCEPT.
-A INPUT -p tcp -m tcp --dport 8000 -j ACCEPT.
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT.
-A INPUT -p tcp -m multiport --dports 80,443 -j ACCEPT.
-A INPUT -p tcp -m multiport --dports 21,12000:12100 -j ACCEPT.
-A INPUT -p udp -m udp --dport 53 -j ACCEPT.
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT.
-A INPUT -p tcp -m multiport --dports 25,465,587,2525,2527 -j ACCEPT.
-A INPUT -p tcp -m multiport --dports 110,995 -j ACCEPT.
-A INPUT -p tcp -m multiport --dports 143,993 -j ACCEPT.
-A INPUT -p tcp -m multiport --dports 3306,5432 -j ACCEPT.
-A INPUT -p tcp -m multiport --dports 8083,8000 -j ACCEPT.
-A INPUT -p icmp -j ACCEPT.
-A fail2ban-SSH -j RETURN.
 
Back
Top