From: Magnus Bäck (no email)
Date: Thu Sep 01 2005 - 12:36:38 EDT
On Thursday, September 01, 2005 at 18:11 CEST,
"Steve V." <> wrote:
[...]
> smtpd_restriction_classes = restrictiv, permissive, outgoing
> restrictiv = check_sender_access mysql:/etc/postfix/whitelist.cf, reject
> permissive = permit
> outgoing = check_recipient_access mysql:/etc/postfix/outgoing.cf, reject
>
> smtpd_recipient_restrictions =
> check_sender_access mysql:/etc/postfix/protected_senders.cf
> check_client_access mysql:/etc/postfix/protected_clients.cf
> check_recipient_access mysql:/etc/postfix/protected_users.cf
> permit_mynetworks
> reject_unauth_destination
[...]
> if userA recieves an email and it fails the whitelist lookup
> above, instead of reject, i'd like it to send the message over
> to instead.
Replace the reject restriction with an arbitrary table lookup
restriction that uses the REDIRECT access map action to redirect
the message to some other recipient. Use a regexp/pcre table to
match all messages.
main.cf:
restrictiv =
check_sender_access mysql:/etc/postfix/whitelist.cf,
check_whatever_access pcre:/path/to/file
/path/to/file:
/^/ REDIRECT
DO NOT START NEW TOPICS BY REPLYING TO OLD MESSAGES IN UNRELATED
THREADS.
-- Magnus Bäck
|
|
|