Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
Hello I'm trying to allow domain literals, but I have some problems:

In my /etc/exim.conf I can see:
Code:
# If you want to accept mail addressed to your host's literal IP address, for
# example, mail addressed to "[email protected][111.111.111.111]", then uncomment the
# following line, or supply the literal domain(s) as part of "local_domains"
# above.

# local_domains_include_host_literals
if I uncomment # local_domains_include_host_literals exim won't restart so I commented the line again.

Have you any suggestions?

Thanks
Alessio
 

cPanelMichael

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

You can browse to "WHM Home » Service Configuration » Exim Configuration Manager » Advanced Editor". Scroll down until you see "Add additional configuration setting" (it's just above Section: BEGINACL"). Then, select the following option from the drop-down menu:

"allow_domain_literals"

Here is it's description:

If this option is set, the RFC 2822 domain literal format is permitted in email addresses. The option is not set by default, because the domain literal format is not normally required these days, and few people know about it. It has, however, been exploited by mail abusers. Unfortunately, it seems that some DNS black list maintainers are using this format to report black listing to postmasters. If you want to accept messages addressed to your hosts by IP address, you need to set allow_domain_literals true, and also to add @[] to the list of local domains (defined in the named domain list local_domains in the default configuration). This “magic string” matches the domain literal form of all the local host’s IP addresses.

Thus, after setting the value to true and saving, you have to add the IP addresses to the /etc/localdomains file in this format:

[IP]

Thank you.
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
Hello,
I don't have any /etc/localdomains, should I create it?

Thanks for your reply
Alessio
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Yes, you should create that file if it does not exist. However, it should already exist on any server where you have installed cPanel and created accounts.

Thank you.
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
I'm going to create it... but it is strange: I'm using cpanel and I've some accounts on this vps.

Thanks
Alessio
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
Hello, probably I wasn't spelling correctly: ls /etc/localdomains returns /etc/localdomains

Thanks very much