Smarthosts stopped working?

HHaaland

Registered
Jun 9, 2017
4
0
1
Norway
cPanel Access Level
Root Administrator
I've used this guide for setting up my smarthosts on different domains:

Forward Certain Domain Emails To Smart Host

It worked perfect for a while, but today I experience it not working anymore (when it stopped working I'm not sure about, but it was setup 2 weeks ago).

I've checked exim.conf and it's correct, it show the same as the Exim Advanced Editor in cPanel, and everything looks okay according to the setup in the other thread, but still - all mails sent with those domains go local and not to remote smarthost as before.

Have anybody experience the same?
How did you fix it?

CENTOS 7.4, cpanel v66.0.26, EXIM 4.89
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463

HHaaland

Registered
Jun 9, 2017
4
0
1
Norway
cPanel Access Level
Root Administrator
It's thread number #27.
(I've linked directly to the correct post).

I've already voted long time ago.


I have to local accounts, and using PHPmailer on the EXIM server.
But when they send to other accounts on the same domain - they doesn't get sent to the other server, seems like EXIM still send it locally, not to the smarthost.

If I send to other domains, it uses the smarthost on the EXIM server.

But with this config, it worked when I setup first time for some weeks ago...

When sending to externals it looks correct:
Event: success
User: <username>
Domain: <domain>
From Address: <[email protected]>
Sender: <sendername>
Sent Time: Oct 25, 2017 3:52:15 PM
Sender Host: localhost
Sender IP: 127.0.0.1
Authentication: localuser
Spam Score:
Recipient: <[email protected]>
Delivery User: -remote-
Delivery Domain:
Delivered To: <[email protected]>
Router: smarthost_dkim
Transport: remote_smtp_smart_dkim
Out Time: Oct 25, 2017 3:52:15 PM
ID: <ID>
Delivery Host: <prefix>.mail.protection.outlook.com
Delivery IP: <IP>
Size: 23.46 KB
Result: Accepted

But when I send to another account on the same domain;
Event: success
User: -remote-
Domain:
From Address: <exim-local[email protected]>
Sender:
Sent Time: Oct 25, 2017 3:52:15 PM
Sender Host: localhost
Sender IP: <extneral IP of the server>
Authentication: localdelivery
Spam Score:
Recipient: <[email protected]>
Delivery User: <user>
Delivery Domain: <serverdomain.com>
Delivered To: >[email protected]>
Router: localuser
Transport: dovecot_delivery
Out Time: Oct 25, 2017 3:52:15 PM
ID: <ID>
Delivery Host: localhost
Delivery IP: 127.0.0.1
Size: 2.97 KB
Result: Accepted

As you can see it say user is remote,
show now domain or sender.
So maybe the thread can't find what smarthost to use?

I can't understand why it doesn't use the smarthost for ALL emails sent from this useraccount on my cpanel.
 

HHaaland

Registered
Jun 9, 2017
4
0
1
Norway
cPanel Access Level
Root Administrator
The end was wrong.

As you can see it show sender user is -remote-, when it send locally?
And doesn't show any domain or sender. Maybe that's why exim can't see that it should use a smarthost for sending? But how is that possible?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Hello,

Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look.

Thank you.
 

tonydw

Registered
May 9, 2021
1
0
1
Indonesia
cPanel Access Level
Root Administrator
Hi,
I am having the same issue and currently using a third party service for mail hosting. I already asked the admin at my mail hosting provider, but they did not even solve the problem. Personally, I have no experience or knowledge at all to fix it therefore I am trying to find solution here.

Previously everything was working well, but out of sudden every mails sent between addresses from my domain to each other show that the mails are sent from localhost.

I am using gmail to send and receive mail from my domain.

This is the log
When I send to another account on the same domain;
Event: success success
User: user1
Domain: mydomain
From Address: [email protected]
Sender: [email protected]
Sent Time: May 10, 2021, 9:08:09 AM
Sender Host: mail-ej1-f47.google.com
Sender IP: 209.85.218.47
Authentication: dovecot_plain
Spam Score:
Recipient: [email protected]
Delivery User: user1
Delivery Domain: mydomain
Delivered To: [email protected]
Router: virtual_user
Transport: dovecot_virtual_delivery
Out Time: May 10, 2021, 9:08:09 AM
ID: 1lfvLm-000udA-0w
Delivery Host: localhost
Delivery IP: 127.0.0.1
Size: 7.96 KB
Result: Accepted

I wasn't able to submit a ticket because I don't know the IP, and I have limited control on the cPanel.

Any reply would be very much appreciated.

Thank you
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,442
1,635
363
cPanel Access Level
Root Administrator
@tonydw - the best thing to do in that situation would be to reach out to your hosting provider or datacenter, as you would likely need root access to the server to perform additional troubleshooting on why this behavior has changed. With what you've mentioned here, you only have cPanel access, which won't be enough to resolve the issue.

If your host isn't able to help get things working they are welcome to submit a ticket directly to us so we can check things on our end.