The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exim Configuration Editor question

Discussion in 'General Discussion' started by drsceifers, Dec 2, 2008.

  1. drsceifers

    drsceifers Member

    Joined:
    Aug 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. drsceifers

    drsceifers Member

    Joined:
    Aug 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  4. drsceifers

    drsceifers Member

    Joined:
    Aug 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
  5. drsceifers

    drsceifers Member

    Joined:
    Aug 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
Loading...

Share This Page