Quantcast
Channel: iRedMail — iRedMail Support
Viewing all articles
Browse latest Browse all 43488

WebMail is working but SMTP not, error: Host did not advertise auth

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.8
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu 24.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
WebMail is working but SMTP not, error: Host did not advertise authentication

when I tested smtp using swaks I got:
root@mail:~# swaks swaks --to abdumezar@gmail.com --from hosoun@izitechs.com --server mail.izitechs.com --port 587 --auth LOGIN --auth-user hosoun@izitechs.com --auth-password PASSWORD
=== Trying mail.izitechs.com:587...
=== Connected to mail.izitechs.com.
<-  220 mail.izitechs.com ESMTP Postfix
-> EHLO mail.izitechs.com
<-  250-mail.izitechs.com
<-  250-PIPELINING
<-  250-SIZE 15728640
<-  250-ETRN
<-  250-STARTTLS
<-  250-ENHANCEDSTATUSCODES
<-  250-8BITMIME
<-  250 DSN
*** Host did not advertise authentication
-> QUIT
<-  221 2.0.0 Bye
=== Connection closed with remote host.

when I add -tls it works and send the test mail, I got:

root@mail:~# swaks --to abdumezar@gmail.com --from hosoun@izitechs.com --server mail.izitechs.com --port 587 --auth LOGIN --auth-user hosoun@izitechs.com --auth-password PASSWORD -tls
=== Trying mail.izitechs.com:587...
=== Connected to mail.izitechs.com.
<-  220 mail.izitechs.com ESMTP Postfix
-> EHLO mail.izitechs.com
<-  250-mail.izitechs.com
<-  250-PIPELINING
<-  250-SIZE 15728640
<-  250-ETRN
<-  250-STARTTLS
<-  250-ENHANCEDSTATUSCODES
<-  250-8BITMIME
<-  250 DSN
-> STARTTLS
<-  220 2.0.0 Ready to start TLS
=== TLS started with cipher TLSv1.3:TLS_AES_256_GCM_SHA384:256
=== TLS client certificate not requested and not sent
=== TLS no client certificate set
=== TLS peer[0]   subject=[/CN=mail.izitechs.com]
===               commonName=[mail.izitechs.com], subjectAltName=[DNS:mail.izitechs.com] notAfter=[2025-02-04T09:42:32Z]
=== TLS peer[1]   subject=[/C=US/O=Let's Encrypt/CN=E6]
===               commonName=[E6], subjectAltName=[] notAfter=[2027-03-12T23:59:59Z]
=== TLS peer[2]   subject=[/C=US/O=Internet Security Research Group/CN=ISRG Root X1]
===               commonName=[ISRG Root X1], subjectAltName=[] notAfter=[2035-06-04T11:04:38Z]
=== TLS peer certificate passed CA verification, passed host verification (using host mail.izitechs.com to verify)
~> EHLO mail.izitechs.com
<~  250-mail.izitechs.com
<~  250-PIPELINING
<~  250-SIZE 15728640
<~  250-ETRN
<~  250-AUTH PLAIN LOGIN
<~  250-ENHANCEDSTATUSCODES
<~  250-8BITMIME
<~  250 DSN
~> AUTH LOGIN
<~  334 VXNlcm5hbWU6
~> aG9zb3VuQGl6aXRlY2hzLmNvbQ==
<~  334 UGFzc3dvcmQ6
~> KDhYNzY0VWNDMw==
<~  235 2.7.0 Authentication successful
~> MAIL FROM:<hosoun@izitechs.com>
<~  250 2.1.0 Ok
~> RCPT TO:<abdumezar@gmail.com>
<~  250 2.1.5 Ok
~> DATA
<~  354 End data with <CR><LF>.<CR><LF>
~> Date: Fri, 20 Dec 2024 21:10:20 +0000
~> To: abdumezar@gmail.com
~> From: hosoun@izitechs.com
~> Subject: test Fri, 20 Dec 2024 21:10:20 +0000
~> Message-Id: <20241220211020.008347@mail.izitechs.com>
~> X-Mailer: swaks v20240103.0 jetmore.org/john/code/swaks/
~>
~> This is a test mailing
~>
~>
~> .
<~  250 2.0.0 Ok: queued as 4YFKnS3qG9z7mhB
~> QUIT
<~  221 2.0.0 Bye
=== Connection closed with remote host.


the main problem that I couldn't use the smtp from code to send emails.


Viewing all articles
Browse latest Browse all 43488

Trending Articles