Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Thanks a million. This is very helpful. However, messages from outside the mailing list aren't getting rejected, and I can't see any reason why not. I wonder if the regular expression isn't matching. Are there any log files I can check, or any other way to diagnose the problem? Commented Dec 15, 2015 at 9:23
  • Glad this is useful :) I don't know about any simple ways to debug this, but now that I'm thinking about it, I realized that the recipient_checks.pcre will only check the RCPT TO address, not the From. Unsure if there is asimple way to fix this. I'll edit the answer. Commented Dec 15, 2015 at 9:30
  • @JamesShields fixed. Commented Dec 15, 2015 at 9:41
  • Thanks again for your help here. I've got the Reply-to part working, but not the rejecting from unapproved addresses. From reading the docs, the statements within the if conditional can only be applied to the line matching the conditional, so you can't have an if block on the To line, and match a From line within that block as it would need to look at another line. Does this sound right? Commented Dec 29, 2015 at 17:14
  • D'OH! Yes, you're right, forgot about that. Thanks for the feedback, I'll test it beforehand next time. Commented Dec 29, 2015 at 23:04