CyberPanel Community

ERROR: Can't send email using cyberpanel snappymail

FK
Faheem Kiani #1

I configured the mail system with the VPS mail server and now i am accessing and sending the email using snappymail but I cannot send or receive the email. I am getting this error each time " Cannot send the email".
Are the ports blocked to send or receive the mail?

Can anyone explain to me why it happened and what is the solution to it?

Thanks and waiting for a solution.

Here is DNS setting for mail using Cloudflare

Email log is here:

Jun  1 10:36:05 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832149><dGHiAA/9OqkAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=91 out=635 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:36:24 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832165, TLS, session=<u7kOAg/9bK8AAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:36:24 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832165><u7kOAg/9bK8AAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=2626 out=579 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:36:25 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832167, TLS, session=<gykaAg/9oK8AAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:36:25 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832167><gykaAg/9oK8AAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=91 out=643 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:36:26 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832169, TLS, session=<oacxAg/9+K8AAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:36:26 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832169><oacxAg/9+K8AAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=904 out=579 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:36:27 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832171, TLS, session=<kJU6Ag/9oLAAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:36:27 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832171><kJU6Ag/9oLAAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=91 out=643 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:36:59 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832177, TLS, session=<YaIgBA/9VLoAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:36:59 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832177><YaIgBA/9VLoAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=2869 out=1036 deleted=1 expunged=1 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:37:00 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832179, TLS, session=</I4pBA/9groAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:37:00 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832179></I4pBA/9groAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=91 out=636 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:37:03 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832181, TLS, session=<AMZiBA/9oLsAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:37:03 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832181><AMZiBA/9oLsAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=2869 out=1025 deleted=1 expunged=1 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:37:04 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832183, TLS, session=<KYNtBA/9xrsAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:37:04 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832183><KYNtBA/9xrsAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=91 out=636 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:37:28 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832200, TLS, session=<WBbdBQ/9+MEAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:37:28 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832200><WBbdBQ/9+MEAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=997 out=1025 deleted=1 expunged=1 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:37:29 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832202, TLS, session=<LBjmBQ/9DsIAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:37:29 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832202><LBjmBQ/9DsIAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=91 out=636 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:38:09 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832209, TLS, session=<WvJPCA/9MM0AAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:38:09 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832209><WvJPCA/9MM0AAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=734 out=8838 deleted=0 expunged=0 trashed=0 hdr_count=4 hdr_bytes=4315 body_count=0 body_bytes=0
Jun  1 10:38:27 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832223, TLS, session=<vWRgCQ/9dNAAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:38:27 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832223><vWRgCQ/9dNAAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=997 out=1025 deleted=1 expunged=1 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:38:28 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832225, TLS, session=<sk9pCQ/9ntAAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:38:28 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832225><sk9pCQ/9ntAAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=91 out=644 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:38:34 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832229, TLS, session=<bubGCQ/9kNEAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:38:34 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832229><bubGCQ/9kNEAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=297 out=2018 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  1 10:38:34 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832231, TLS, session=<6DLRCQ/9rtEAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:38:34 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832231><6DLRCQ/9rtEAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=779 out=6693 deleted=0 expunged=0 trashed=0 hdr_count=3 hdr_bytes=2923 body_count=0 body_bytes=0
Jun  1 10:38:42 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832234, TLS, session=<4L5DCg/9EtMAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:38:42 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832234><4L5DCg/9EtMAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=820 out=9803 deleted=0 expunged=0 trashed=0 hdr_count=7 hdr_bytes=2702 body_count=0 body_bytes=0
Jun  1 10:38:47 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832236, TLS, session=<T2GOCg/9vtMAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:38:47 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832236><T2GOCg/9vtMAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=617 out=4151 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=587 body_count=2 body_bytes=1804
Jun  1 10:39:03 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832295, TLS, session=<2p2JCw/9DNcAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:39:03 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832295><2p2JCw/9DNcAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=732 out=6648 deleted=0 expunged=0 trashed=0 hdr_count=3 hdr_bytes=2923 body_count=0 body_bytes=0
Jun  1 10:39:17 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832339, TLS, session=<TshUDA/9OtsAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: error: open database /etc/postfix/vmail_ssl.map.db: No such file or directory
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: connect from localhost[::1]
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: warning: hash:/etc/postfix/vmail_ssl.map is unavailable. open database /etc/postfix/vmail_ssl.map.db: No such file or directory
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: warning: hash:/etc/postfix/vmail_ssl.map lookup error for "localhost"
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: warning: tls_server_sni_maps: localhost map lookup problem
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: SSL_accept error from localhost[::1]: -1
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: warning: TLS library problem: error:1422E0EA:SSL routines:final_server_name:callback failed:ssl/statem/extensions.c:1012:
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: lost connection after STARTTLS from localhost[::1]
Jun  1 10:39:17 atlanticgreencross postfix/submission/smtpd[832340]: disconnect from localhost[::1] ehlo=1 starttls=0/1 commands=1/2
Jun  1 10:39:17 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832339><TshUDA/9OtsAAAAAAAAAAAAAAAAAAAAB>: 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
Jun  1 10:39:17 atlanticgreencross dovecot: imap-login: Login: user=<info@atlanticgreencross.co>, method=PLAIN, rip=::1, lip=::1, mpid=832344, TLS, session=<NNtfDA/9ftsAAAAAAAAAAAAAAAAAAAAB>
Jun  1 10:39:17 atlanticgreencross dovecot: imap(info@atlanticgreencross.co)<832344><NNtfDA/9ftsAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=649 out=9188 deleted=0 expunged=0 trashed=0 hdr_count=7 hdr_bytes=2702 body_count=0 body_bytes=0
174 replies
FK
Faheem Kiani #3

I saw it is not 100% related to the issue and it is not the solution.

Can you guide me well or can tell me which is missing in the setting of Mail DNS?

FK
Faheem Kiani #6

you mean i should remove the Proxy setting of MX records in cloudflare…right?

FK
Faheem Kiani #11

can you guide me on how to add these records if these records are necessary?

FK
Faheem Kiani #12

i think these records are not according to VPS cyberpanel mail server

![image|690x447](upload://v6dAMxXbgRufEqXCzbLviAlT2NS.png

FK
Faheem Kiani #15

i don’t know where to find these records to update, if you think these records are not good according to VPS mail server.

jo
josephgodwinke #16

Where did you get those records from ? The only record that makes sense in that red box is default_domainkey - this is DKIM record title typically from cyberpanel

jo
josephgodwinke #17

You can also add the v=spf1 record you see in the screenshot I attached. i.e. the first record in that list. See this to understand what it is and how it helps SPF: SPF Record Syntax

FK
Faheem Kiani #18

some records are already added from my old hosting mail server, i mean normal cpanel of hostinger not VPS

FK
Faheem Kiani #19

ok i got it…

Now can you tell me which of the following record i should keep in red area and which of the record in red area i should remove…

i think there are lot of records and you also said some records are not part of cyberpanel

but plz highlight the records which i should remove from the TXT list in red area.

Plz

FK
Faheem Kiani #20

i am waiting for you kind response

FK
Faheem Kiani #21

after removing the records then i will be able to add new related records

jo
josephgodwinke #23

Keep default_domainkey only. Delete everything else in that red box.

jo
josephgodwinke #24

Yes. You can add the records as advised in previous post

FK
Faheem Kiani #25

ok thanks…let me perform these actions
wait plz

FK
Faheem Kiani #27

but I could not find “default_domainkey” values from the following list

Can you highlighte the default_domainkey" in following list so that i can add plz?

jo
josephgodwinke #32

All those cpanel records should be deleted. Leave autoconfig and autodiscover records for exchange accounts to work properly plus dont proxy those records.

jo
josephgodwinke #33

Good now you need to copy the public key and create a default._domainkey in your cyberpanel dns manager.

Confirm this record is same as in cloudflare. Read this keenly to understand HOW and why to add this record [TUTORIAL] How to setup DNS configurations for CyberPanel

FK
Faheem Kiani #35

i could not fin field to write" default._domainkey"

FK
Faheem Kiani #37

Also added same default._domain key record in “cloudflare”

see plz

FK
Faheem Kiani #39

now what is need to do?

Is every record ok now?

jo
josephgodwinke #42

Delete all SRV records and see if your issue is fixed

FK
Faheem Kiani #43

ok let me remove SRV records

FK
Faheem Kiani #48

ok but what is pending now to add or remove…i followed all the steps which you mentioned sir

jo
josephgodwinke #52

You are concerned about records which do not affect mail delivery.

Please try and now and confirm if issue is resolved.

Show me the results of //email/testTo: testing an email address of same domain

jo
josephgodwinke #56

Postfix’s Server Name Indication SSL mapping does not automatically point to the latest SSL certificates.

Check if the database and map exists ls /etc/postfix/vmail_ssl.map and ls /etc/postfix/vmail_ssl.map.db

I hardly believe that any values are malformed in this db

Run

postmap -F hash:/etc/postfix/vmail_ssl.map
FK
Faheem Kiani #57

what about this red area A records?
Are these good in list now or should remove?

FK
Faheem Kiani #58

you mean its becasue of SSL …right?

jo
josephgodwinke #59

Your records are fine. Please follow advice

FK
Faheem Kiani #60

sorry to say, can you tell me how to run this in CMD ?

jo
josephgodwinke #61

Open your server using SSH client such as Remmina, Bitvise SSH Client. You need to be a root user or sudo user. Consult server provider for this. Then just copy paste this when you see console:

FK
Faheem Kiani #62

suppose if this file is not exist then what to do with this file?

jo
josephgodwinke #63

Post screenshot of the result you got from running said command

FK
Faheem Kiani #68

mail is coming but not sending to other mail

jo
josephgodwinke #70

So issue is partly solved ? Are we making any progress ?

FK
Faheem Kiani #71

yes … off course we are making progress…thanks for you help and support

FK
Faheem Kiani #73

yes partially solved

now what to do with the sending side?

jo
josephgodwinke #75

You cannot send emails. Use snappymail admin - Go to https://SERVER_URL/snappymail/?admin If you dont know your password follow this guide SnappyMail admin password reset - #2 by seanfitz09

3b98c10fbdb8a0fa7245ab983462ab59e940b9f0_2_690x376

Then post screenshot of https://SERVER_URL/snappymail/?admin#/domains testing

FK
Faheem Kiani #76

i am already using snappyemail

jo
josephgodwinke #77

Ok seems your ports are open and everything works except the mailserver ssl is seflsigned. Can you issue a new mailserver ssl using cyberpanel https://SERVER_URL:8090/manageSSL/sslForMailServer

jo
josephgodwinke #83

Just try to send an email for now

FK
Faheem Kiani #84

ok
its not going to some emails

FK
Faheem Kiani #87

lets stop this for now and start again from tomorrow.
still there are some issues in mail…but we will see it tomorrow

thanks for your help

FK
Faheem Kiani #92

Is there any other way to install ssl again?

FK
Faheem Kiani #94

just confirm me, the way i used your mentioned commands or correct or not?

FK
Faheem Kiani #96

this method is correct of using the commands …just confirm plz

FK
Faheem Kiani #97

can we reissue the ssl for mailserver?

jo
josephgodwinke #99

We tried that it didnt work. Thats why I was suggesting another fix

FK
Faheem Kiani #101

Hi,
Anyone here?

my email is not sending to gmail accounts now

FK
Faheem Kiani #102

Can you tell me which credentials will use to login to the LiteSpeed server?

jo
josephgodwinke #104

First of all is this issue fixed ?

FK
Faheem Kiani #105

No, i think all issues are related to mailserver SSl…still, SSL issue is not resolved

Actually, I am not able to log in to OpenLiteSpeed web admin, I don’t know which credentials will be used for this.

jo
josephgodwinke #106

You still cannot send emails to any email account regardless of whether its gmail or not ?

jo
josephgodwinke #109

Post your version management page here https://SERVER_URL:8090/base/versionManagment

jo
josephgodwinke #111

Upgrade your copy and reissue mailserver ssl the recommended way

FK
Faheem Kiani #113

How to upgrade it? Can you tell me plz?

jo
josephgodwinke #114
FK
Faheem Kiani #116

Can you send me direct command to write in CMD to upgrade?

There is confusion in mentioned doc

FK
Faheem Kiani #117

Hi, I just able to upgrade the cyberpanel

Should I reboot the VPS server?

FK
Faheem Kiani #119

I upgraded and reissue the ssl for mailserver

FK
Faheem Kiani #122

Are you there?
Plz help me i am too much worried about this issue

jo
josephgodwinke #125

You need to create rDNS PTR record on your server. Contact your server provider for help. They should show you where you manage your server from; how to add these records

FK
Faheem Kiani #126

they always said that VPS is unmanaged by us…i think we have to do at our end

jo
josephgodwinke #127

Which service provider is this ?

FK
Faheem Kiani #128

Hostinger is the provider

FK
Faheem Kiani #129

I purchased using hostinger

FK
Faheem Kiani #131

but my question is, why still it is showing unsecure mailerver access?

I already upgrade the cyberpanel and reboot the server, also reissue the mailserver SSL

FK
Faheem Kiani #134

let me add the records first

FK
Faheem Kiani #136

Can you check these?

It should work now or should i wait for 24 hours to propagate it

FK
Faheem Kiani #139

But how to solve the ssl issue?

jo
josephgodwinke #144

Wrong a rDNS record should be mail.mydomain.com i.e the domain of the mailserver or rather subdomain of primary domain

FK
Faheem Kiani #147

Plz reply me as soon as possible

FK
Faheem Kiani #150

Here are some comments from Hostinger Support

" The IP address 45.90.223.119 is added to a known email blacklist:

Email providers usually do not accept emails from blacklisted IPs and if it is not changed, you will continue experiencing issues."

FK
Faheem Kiani #151

They are saying that you need to change the IP address of VPS, because VPS IP address is blacklisted.

Are you satisfy with the answer of the support team?

jo
josephgodwinke #153

Which support team ?

FK
Faheem Kiani #157

Also cyber panel link is not secure

Why has this happened now?

FK
Faheem Kiani #158

Please replay me as soon as possible

jo
josephgodwinke #159

Open a new topic stop replying to same topic with different issues all the time

FK
Faheem Kiani #160

ok, but sir it is already related to the previous issue, it is not resolved yet

but i will create a new topic

jo
josephgodwinke #161

You still cannot send an email ?

FK
Faheem Kiani #162

Yes, the email is not sending and it is due to SSL not working for mail server

FK
Faheem Kiani #164

I already tried that and that time i got the error message from snappymail notifications which was related to ssl of mailserver

jo
josephgodwinke #166

This is totrally different.

This is panel domain thats why am asking you to open a different topic.

What is the domain of your mailserver ?

FK
Faheem Kiani #171

mail server SSL is looking good by SSL tool but the snappy mail link still not showing secure…

Why is it happening now?

FK
Faheem Kiani #172

is anyone here to help me?

FK
Faheem Kiani #173

Hello sir,

Now email to the customers on order complete is not sending

Can you see this or guide me about this?

FK
Faheem Kiani #174

anyone here?
Plz reply me mail server again is not working, email is not sending now

Sign in to reply