Hello
i'm using aapanel on Ubuntu 20.04.4 VPS...
i installed the mail server, added a user .. but i when i use the email address with outlook or thunderbird it shows an error ..
the email address can send emails through aapanel mail server dashboard, but it don't recieve any ..
i use couldflare for the domain, all the dns records are correct and working ..
i also use cloudflare's SSL..
any solutions ?
Mail server issue
Hello, it is recommended to check the log of the mail server, and it is recommended that you stick to the error message.
If the ssl of couldflare is a self-signed certificate, it cannot be used for the mail server. The certificate of the mail server must be verified by the ssl provider
Use couldflare to manage the domain name. The mx record of the domain name cannot enable proxy
thanks for your reply...
here's a screenshot from mail server log .. can you please tell me what to do?
..
regarding the ssl, i'm using cloudflare Client Certificate for both domain and mail server.. or should i use Let's encrypt's ssl ?
and all the records are not proxied ..
aaP_emadeldeen_tarek
At the same time, check the postfix configuration, which can be viewed in the server status
"mail.135mailtest.com" is replaced with your domain name
Put:
smtpd_tls_chain_files=/etc/ssl/private/ssl-cert-snakeoil.key,/etc/ssl/certs/ssl-cert-snakeoil.pem
Change to:
smtpd_tls_chain_files = /www/server/panel/plugin/mail_sys/cert/135mailtest.com/privkey.pem,/www/server/panel/plugin/mail_sys/cert/135mailtest.com/fullchain.pem
Note to replace 135mailtest.com with your domain name.
Also check /www/server/panel/plugin/mail_sys/cert/135mailtest.com/ for privkey.pem and fullchain.pem files
You can use this command to check whether the correct SSL is configured
openssl s_client -connect mail.135mailtest.com:587 -starttls smtp
or
openssl s_client -connect mail.135mailtest.com:465 -starttls smtp
If the display is not OK, please re-apply for SSL
Unable to send dkim headers
Troubleshoot log /var/log/rspamd/rspamd.log
Prompt for permission issues:
2022-04-20 00:27:56 #1363(rspamd_proxy) <6795e9>; proxy; dkim_module_load_key_format: cannot load dkim key /www/server/dkim/xx.com/default.private: cannot map key file: '/www /server/dkim/xx.com/default.private' Permission denied
Set 640 to 644, then restart rspamd to send emails to view the email source code, please replace xxx.com with your domain name.
chmod 644 /www/server/dkim/xx.com/default.private
systemctl restart rspamd
Use this website to check whether the records of DKIM and SPF are correct?
https://www.dmarcanalyzer.com/dkim/dkim-checker/
https://dnschecker.org/spf-record-validation.php
Check the mail score and troubleshoot according to its error message
https://www.mail-tester.com/
Check blacklists
https://mxtoolbox.com/
Hello
i edited the postfix config,, and it passed ..
all records are valid ..
made a spam test and passed ..
switched ssl to lets ecrypt ..
still can't recieve emails .. only send .. and can't use any mail client ( outlook - thunderbird ) i get an error ..
what should i check next ?
Hello, it is recommended to provide the sending log. It can be viewed in the logs interface
Hello, the certificate file does not exist, it is recommended to try to reconfigure ssl