I can't send mail

When I try to send mail with Snappymail, I get the “Message Could not be sent” error. When I try to send mail from Outlook, “The Sending task reported an error. The server does not support any authentication method supported by this client.” gives the error.
SSL installed on mail server. I am using ConfigServer Security & Firewall - csf v14.17.
There is a field in the field on the firewall.

"This is a comma separated list of the ports to block. You should list all
ports that exim is configured to listen on" field does not write any ports.

Do you have a solution? What should I do?

And also when I type
sudo systemctl restart postfix
I get an error like this.

** (pkttyagent:8354): WARNING **: 13:54:56.271: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)

Could the problem be related to this?

The email log file is below

Apr 12 17:09:25 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=483953, TLS, session=
Apr 12 17:09:25 localhost postfix/submission/smtpd[483833]: connect from localhost[::1]
Apr 12 17:09:25 localhost postfix/submission/smtpd[483833]: warning: hash:/etc/postfix/vmail_ssl.map is unavailable. open database /etc/postfix/vmail_ssl.map.db: No such file or directory
Apr 12 17:09:25 localhost postfix/submission/smtpd[483833]: warning: hash:/etc/postfix/vmail_ssl.map lookup error for “localhost”
Apr 12 17:09:25 localhost postfix/submission/smtpd[483833]: warning: tls_server_sni_maps: localhost map lookup problem
Apr 12 17:09:25 localhost postfix/submission/smtpd[483833]: SSL_accept error from localhost[::1]: -1
Apr 12 17:09:25 localhost postfix/submission/smtpd[483833]: warning: TLS library problem: error:1422E0EA:SSL routines:final_server_name:callback failed:ssl/statem/extensions.c:1012:
Apr 12 17:09:25 localhost postfix/submission/smtpd[483833]: lost connection after STARTTLS from localhost[::1]
Apr 12 17:09:25 localhost postfix/submission/smtpd[483833]: disconnect from localhost[::1] ehlo=1 starttls=0/1 commands=1/2
Apr 12 17:09:25 localhost dovecot: imap([email protected])<483953>: Disconnected: Logged out in=11 out=491 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 12 17:09:25 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=483956, TLS, session=<60zKJyT5WqsAAAAAAAAAAAAAAAAAAAAB>
Apr 12 17:09:25 localhost dovecot: imap([email protected])<483956><60zKJyT5WqsAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=91 out=642 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0

Hello @xkimyagerx

Start by fixing this issue on CentOs

$ mount proc -o remount,hidepid=0
$ systemctl restart polkit.service

Can you go to https://SERVER_URL:8090/snappymail?admin click on Domains → * and test your configurations there.

Make sure you also issues mailserver ssl https://SERVER_URL:8090/manageSSL/sslForMailServer

Also check if this could help Externail emails do not reach inbox. Postfix

I issued SSL for mailserver.
https://SERVER_URL:8090/manageSSL/sslForMailServer

https://SERVER_URL:8090/snappymail?admin
It works when I test from here as Secure:None (Port:25).
But when I test as Secure:STARTTLS (Port:587) it doesn’t work.

Do you have a suggestion?

have you issued mail server ssl ?

Yes,
https://SERVER_URL:8090/manageSSL/sslForMailServer
i issued from this link, like this
mail.mydomain.com

Problem is solved.
First I checked e-mail with this site.

Then i added rewrite rule to my mail.domain-name.com via CyberPanel.

added one more rewrite rule:
#Force SSL for email
RewriteEngine On
RewriteCond %{HTTP_HOST} mail.domain-name.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mail.domain-name.com/$1 [R,L]
#End Force SSL for email

Then i wrote this in server

postmap -F hash:/etc/postfix/vmail_ssl.map
systemctl restart dovecot
systemctl restart postfix

Thank you josephgodwinke :slightly_smiling_face:

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.