SOLVED Email will not send (Delivery Host: localhost)

fcomstoc

Member
Jun 6, 2016
7
1
3
Las Vegas, NV, USA
cPanel Access Level
Root Administrator
Hello Everyone,

I have an issue with one of my accounts, for some reason the client is not receiving email from the form (EXIM). According to the Delivery Event Details, the Email is being sent to:

Delivered To: :blackhole:
Delivery Host: localhost

Screenshot 2017-03-08 10.53.18.jpg

I turned off all of the filters on outgoing mail, and checked the backlists to make sure the server is not on any. This account seems to be the only one with the issue as well.

Does anyone have any idea why this might be happening or how to resolve it. I really don't know too much about email and thankfully we don't host any on the server, so I am at kind of a loss on this.

Thank you,
-Frank
 

cPanelMichael

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

Could you let us know the output from /var/log/exim_mainlog for that message? You can find the entry for that message with a command such as:

Code:
exigrep [email protected] /var/log/exim_mainlog
Also, are any email filters configured in cPanel for this account? Does the email address exist in "cPanel >> Email Accounts"?

Thank you.
 

cPanelMichael

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

If the "Default Address" option in cPanel for this account is set to "Blackhole", and the delivery attempt is to an email account that does not exist under "Email Accounts" in cPanel, then the behavior you are noticing is by design. You'll need to create a separate email account for the cPanel account username, or modify the default address option.

Thank you.
 

fcomstoc

Member
Jun 6, 2016
7
1
3
Las Vegas, NV, USA
cPanel Access Level
Root Administrator
So the email account I am sending to is not on this server, I host no email on the web sever. It should deliver to external email. The :blackhole: setting is for incoming email only, I used to have huge problems with spam filling the hard drive.

Because this is sending to external addresses there should be no :blackhole issue. The other odd thing is that the email delivers with no problems to Yahoo addresses.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Because this is sending to external addresses there should be no :blackhole issue. The other odd thing is that the email delivers with no problems to Yahoo addresses.
Can you confirm the affected domain name does not exist in the /etc/localdomains file on the cPanel server?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
That would seem to be the issue, for some reason the server thinks it should be sending email to itself, how do I remove that so that it will start sending email externally only?
You can browse to "WHM >> DNS Functions >> Edit DNS Zone", select the domain name, and update the "Email Routing" setting to:

"Remote Mail Exchanger"

Thank you.
 
  • Like
Reactions: Metro2

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
I'm happy to see it's now working as expected. Thank you for updating us with the outcome.