whitelist email from a domain

ttremain

Well-Known Member
Feb 16, 2003
237
1
168
cPanel Access Level
Root Administrator
I have a customer, who uses a host that seems to have many SMTP servers, and every week or two,
he starts getting bounce messages when sending to me, that the current SMTP server is on some RBL
and the email cannot be delivered to me.

I can see in WHM, how to whitelist an IP, or range of IPs, but can I just whitelist all email addressed
from *@domainx.com to prevent RBL checking?
 

Aaron.Edwards

Active Member
Sep 21, 2013
36
0
6
cPanel Access Level
Root Administrator
Can you confirm whether RBL has blocked, or some other third party spam blockers ?

Can you post the exim error log here in order to check ? Normally there might be some spamming issues in the server (Out going spam) which makes the server's ip to be blacklisted.

On identifying the spam origin, request your customer to check with the exim configuration and server security. If you require more help on this, let me know.
 

ttremain

Well-Known Member
Feb 16, 2003
237
1
168
cPanel Access Level
Root Administrator
Can you confirm whether RBL has blocked, or some other third party spam blockers ?

Can you post the exim error log here in order to check ? Normally there might be some spamming issues in the server (Out going spam) which makes the server's ip to be blacklisted.

On identifying the spam origin, request your customer to check with the exim configuration and server security. If you require more help on this, let me know.

Bounce message:

XXX.XX.XX.XX does not like recipient.
Remote host said: 550-"JunkMail rejected - oproxy14-pub.mail.unifiedlayer.com
550-[67.222.51.224]:49314 is in an RBL, see Currently Sending Spam See:
550 http://www.sorbs.net/lookup.shtml?67.222.51.224"

Looks to me, to be just what I said, the customer's email server is/was temporarily blacklisted.
Please remember, this is an email bounce from a customer email coming TO me, on one of my
cpanel servers. My server is rejecting it, just like it's configured to do.

Last week it was a different host address, but from the same email address.

The IP's are not even in a single class-c, which is why I would like to whitelist
the email address, or email domain, and cannot just whitelist the IP.

- - - Updated - - -

If you have Mailscanner installed you can do this in Mailscanner>>>>MailScanner Front-End>>>>Server Spam Whitelist
I have installed mailscanner from ConfigServer, and I don't see any such configuration available in WHM, just the rules files to manually modify.
 

ttremain

Well-Known Member
Feb 16, 2003
237
1
168
cPanel Access Level
Root Administrator
Sometimes it's his web host's SMTP server that is getting blocked, and sometimes it's his DSL IP (that keeps changing) that is getting blocked.

Sounds like his ISP needs to learn how to block port 25, but until then.... I want to whitelist all email that comes "FROM" his domain, or email address.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

There are no native options that will allow email from specific domain names because Exim blocks/allows by hostname or IP address. However, you may be able to implement some custom ACL rules that allow certain domain names to bypass the RBL Filters. Here is an example of a thread where this is discussed:

Support for bypassing RBL checks

It's an older thread so it may require some additional modifications. Note that custom modifications to the Exim configuration file should occur in:

"WHM Home » Service Configuration » Exim Configuration Manager » Advanced Editor"

Thank you.
 

GiviN.G

Member
Sep 30, 2014
9
0
1
cPanel Access Level
Root Administrator
Hello,

Is it possible to set for email in a cPanel account to receive from a set of domains/IPs?

Is it possible server wide or account wise?

Thank you,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Is it possible to set for email in a cPanel account to receive from a set of domains/IPs?

Is it possible server wide or account wise?
Could you provide a specific example of what you are requesting?

Thank you.
 

GiviN.G

Member
Sep 30, 2014
9
0
1
cPanel Access Level
Root Administrator
Hello Michael,

Thank you for the reply.

For example, my email is [email protected] and I want to receive from domains in few servers, so I want to set those IPs or domain names in whitelist and reject all other.

Is there some functionality in cPanel?

Thank you,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Are the existing whitelist and blacklist options sufficient? You can find them under the "Access Lists" tab in:

"WHM Home » Service Configuration » Exim Configuration Manager"

Thank you.