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 allow recipient that matches pattern

Discussion in 'General Discussion' started by webignition, Jan 31, 2005.

  1. webignition

    webignition Well-Known Member

    Jan 22, 2005
    Likes Received:
    Trophy Points:

    I'm not too familiar with configuring Exim and would like to ask for some help.

    The only changes I've made to the Exim configuration are those lisetd in the tutorial at

    In my configuration, in the ACL section I have the following lines that reject mail that is not addressed to a valid local user:

    #**# Reject Email to Invalid Recipient
    message = unknown user
    verify = recipient
    A website I'm developing needs to allow mail to a potentially unlimited amount of invalid recipients, all matching a certain pattern, and so the above config isn't too good (in fact I've commented it out for the moment in my Exim config).

    I'd like to keep rejecting mail that is not addressed to a valid recipent but at the same time, for mail that is not addressed to a valid recipient only, allow mail where the recipient matches a certain pattern.

    I'd like Exim to accept mail where the recipient matches "" (where, just to be clear, anything means anything, and all the rest is literal). I'd also like Exim to use more than one pattern, thereby allowing me to set Exim to accept mail per domain if clients so wish.

    Again, just to be clear, I'd only want these conditions to be checked where mail is addressed to an invalid recipient and not just to blindly accept all mail where the recipient matches the specified patterns.

    I reckon my knowledge of regular expressions is sufficient to come up with the required regular expressions, however my knowledge of Exim is abysmally limited and so I could do with some help in setting the conditions in the configuration.

    If someone would be kind enough to point out what changes I would need to make to the above listed lines and suggest where the regular expressions are to go, I'd be foreever grateful!

    Thanks so much to anyone who can help me!

Share This Page