1 (edited by hustjackie 2023-11-21 22:36:21)

Topic: How to setup SMTP? email client report "SMTP Server: unknown error"

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.7
- Deployed with iRedMail Easy or the downloadable installer? NO
- Linux/BSD distribution name and version: centos stream 8,  4.18.0-521.el8.x86_64
- 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.
====

I followed the official document to install iRedMail. 
docs.iredmail.org/install.iredmail.on.rhel-zh_CN.html

I can send and receive emails using the default web client, which is included in the iRedMail installation.

However, when I setup Foxmail (an email client), to send or receive emails, an "SMTP Server: unknown error" is reported.


I have check my port

netstat -anp |grep 110
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      2537/dovecot   

netstat -anp |grep 25
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1735/master   

netstat -anp |grep 995
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      2537/dovecot   

netstat -anp |grep 143
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      2537/dovecot   

netstat -anp |grep 587
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      1735/master 

I have set the dns record
cname snmp mail.mydomain.com
cname pop3 mail.mydomain.com
cname imap mail.mydomain.com

----

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

2

Re: How to setup SMTP? email client report "SMTP Server: unknown error"

In the Foxmail, the latest error is  "POP Server: Email address or password error. "

Server Type: POP
Mail Acount: hustjackie@mydomain.com
POP Server: pop3.mydomain.com 110
Username: hustjackie@mydomain.com
Password: xxxxx
disable Secure Connection

SMTP Server: smtp.mydomain.com 587
username: hustjackie@mydomain
password: xxxx
disable secure connction

3

Re: How to setup SMTP? email client report "SMTP Server: unknown error"

Different Foxmail setting will leading to different error

Server Type: POP
Mail Account: hustjackie@mydomain.com
POP Server: imap.mydomain.com 143
Username: hustjackie@mydomain.com
Password: xxxxx
disable Secure Connection

SMTP Server: smtp.mydomain.com 587
username: hustjackie@mydomain.com
password: xxxx
disable secure connection

This will report "SMTP Server: Email address or password error."

SMTP Server: smtp.mydomain.com 587
username: hustjackie
password: xxxx
disable secure connection

This will report "SMTP Server: Email address or password error."


SMTP Server: smtp.mydomain.com 25
username: hustjackie
password: xxxx
disable secure connection

This will report "SMTP Server: Unknown error."

SMTP Server: smtp.mydomain.com 25
username: hustjackie@mydomain.com
password: xxxx
disable secure connection

This will report "SMTP Server: Unknown error."

SMTP Server: smtp.mydomain.com 465
username: hustjackie@mydomain.com
password: xxxx
disable secure connection

This will report "SMTP Server: Connection timeout."

4

Re: How to setup SMTP? email client report "SMTP Server: unknown error"

I found one document for this, 
docs.iredmail.org/allow.insecure.pop3.imap.smtp.connections.html

5 (edited by Cthulhu 2023-11-22 00:20:49)

Re: How to setup SMTP? email client report "SMTP Server: unknown error"

You need to choose starttls for login/auth

port 25 is only for inbound mails, you cannt login there
port 465 is not used at all and not opened

6

Re: How to setup SMTP? email client report "SMTP Server: unknown error"

I have resolved this problem.

The root cause is that I failed to setup ssl .

After setup ssl, everything is fine.