Michael Fox: > I'm pretty sure I've seen this documented somewhere, but I can't find it. > > What I'd like to do is have a whitelist apply to only a specific reject. > For example: > > smtpd_*_restrictions = > . > check_*_access . <whitelist-access-table> > reject_. > reject_... > reject_... > > My understanding is that the above <whitelist-access-table> will cause all > of the following rejects to be skipped for whitelisted hosts. But suppose > each reject_... test needs different whitelists? Is there a way to do that?
You could use an access table to look up per-recipient rules. See http://www.postfix.org/RESTRICTION_CLASS_README.html for an example. Wietse