unable to sent email in cpanel smtp error (504): authentication failed
Hi, I cant send Email in Roundcube webmail, when click to send I have this error:
SMTP error (504): authentication failed
I use CSF firewall and mail port is open. SMTP_ALLOWLOCAL is on, SMTP_BLOCK in on/off not defference, Even if I remove CSF completely, the same error still exists
I use Cloadflare on my whm hostname and my main domain, but cloudflare setting is defult
My os is ubuntu 20.04 with litespeed webserver
I was getting below error before:
SMTP Error (): Connection to Server Failed
but after uninstalling CSF and reinstalling it changed to below error:
SMTP error (504)
-
Hi,
It appears the email is failing due to the authentication of your email account.
SMTP error (504): authentication failed is associated with the credentials (authenticity) of the email account.
Please reset the password of your email account and then try again. If the same error persists, you can disable CSF for the time being and check.
Review the mail logs in the path: /var/log/exim_mainlog
You can also check individual mail account logs by grep. Use the command:
cat /var/log/exim_mainlog | grep email_address0 -
I change my email account password but I have same error.
I disable CSF bu i have same error. Even if I remove CSF completely, the same error still exists.
nano /var/log/exim_mainlog in empty but nano /var/log/exim_mainlog.1 have many time this error:
2024-01-07 10:30:01 1rM5Gd-009brq-1z Message is frozen
also send and (receive) not working not just send.
RDNS is my hostname in Hetzner and my PTR record is valid.
In cloudfare: my hostname is dns-only0 -
Also:
Exim is not listed service manager restart menu whm.
Exim is not listed service status page whm.
even after checking via terminal the status of exim, the reply is always:
root@server:~# service exim restart
Failed to restart exim.service: Unit exim.service not found.
but Exim Configuration Manager in ok in WHM.
I guess the problem is exim. Is there a way to reinstall/install/repair it? I reset it from Exim Configuration Manager but the problem is still there.0 -
Having the service not running is definitely going to be the issue.
When you try manually restarting Exim and receive that "unit not found" error, does that place anything into the main /var/log/exim_mainlog file that is helpful?
Do you get any useful output when running /scripts/check_cpanel_rpms on the system?
0 -
TNX cPRex I run /scripts/check_cpanel_rpms on my server and install cpanel-exim and this issue is solved.
But now some of our customers' accounts are having problems receiving emails. I think their domain addresses are blocked due to sending too much.
Is there a way to install DKIM and SPF for all clients at once?
Enable DKIM/SPF Globally does not work.
The DNS of all our clients' accounts are on Cloudflare.0 -
I'm glad to hear that fixed the Exim issue!
Could you post the error you see in the bounceback when you try and send a message? That would help tell us the root cause of the issue.
Details on how to globally enable those tools can be found here:
https://docs.cpanel.net/whm/dns-functions/enable-dkim-spf-globally/
but if your DNS is hosted on Cloudflare you'll need to manually move those DNS records to their server.
0 -
When I want to send an email from my Yahoo account to info@mysite.com, after a few hours I receive this email in my Yahoo inbox, and no email is received in my info@mysite.com inbox:
Sorry, we were unable to deliver your message to the following address.Unable to deliver message after multiple retries, giving up.I have valid MX record in zone editor cpanel and Cloudflare DNS.
I have DKIM and SPF in Cloudflare DNS.
In CSF firewall: port 25 and other mail port is open.
Sending through all accounts is correct, but receiving emails is a problem.0 -
You'll need to check the MX record and the port 25 connection on your server.
First, let's get the MX record with this command:
dig MX domain.com
After you have that, from a separate server or workstation, run this command to ensure the connection to port 25 is open properly:
telnet mail.server.com 25
You should get the standard Exim welcome banner, which will look similar to this:
[root@host /]# telnet domain.com 25
Trying 1.2.3.4...
Connected to domain.com.
Escape character is '^]'.
220-host.hostname.com ESMTP Exim 4.96.2 #2 Wed, 17 Jan 2024 09:21:47 -0500
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.If one of those doesn't work properly, you won't be able to receive email.
0
Please sign in to leave a comment.
Comments
8 comments