Exim Configuration Editor question

drsceifers

Member
Aug 28, 2008
9
0
51
Long story short, we are trying to reject and mail for a domain of ours that does not have an MX record in DNS. We went to Exim mailing list and someone suggested we use the command:

"mx_domains = *"

We just want to drop any connections to domains without an MX record.

So,

Where do I place this in the configuration to achieve said goal? I've never written an Exim ACL before & I don't want to break my config.

Has anyone written an ACL that can tell me how to add it in?

Thanks
 

drsceifers

Member
Aug 28, 2008
9
0
51
anybody written Exim ACL's?

Does anyone have a resource I can approach about this?

We really need to get our Exim set up and it's starting to affect our schedule pretty badly.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
You stipulate mx_domains as an option to the dnslookup router. More information on that is available in the Exim documentation: http://exim.org/exim-html-current/doc/html/spec_html/ch17.html

This portion of the exim.conf file is not modifiable via the Exim Configuration Editor. As such it requires manual modification of the file as well as a mechanism to preserve the file across cPanel updates.
 

drsceifers

Member
Aug 28, 2008
9
0
51
mx_domains appears to be wrong

Thanks Kenneth,

In the last few hours, I have found out mx_domains is about outgoing mail. The original information I was given was incorrect.

I am working on an ACL to do the right thing.

Thanks again!
 

drsceifers

Member
Aug 28, 2008
9
0
51
a new issue

# matches any domain that has an MX record pointing to one of the local host’s IP addresses other than 127.0.0.1
domainlist local_mx_domains = @mx_any/ignore=127.0.0.1

acl_smtp_rcpt = acl_mx_only

acl_smpt_rcpt = check_recipient

...

acl_mx_only:
# Drop those not having an MX record for Recipient
drop message = That is not a valid email for this domain
!domains = local_mx_domains

My problem is I think the hard coded acl_smpt_rcpt will override my version, rather than add to it. I have also tried other acl_smtp_XXX keys, but I need to make this check during acl_smtp_rcpt because I need the recipient to be populated.

Any thoughts?