|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Fwd/Alias instead of reject
From: Magnus Bäck (magnus
dsek.lth.se)
Date: Thu Sep 01 2005 - 11:36:38 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thursday, September 01, 2005 at 18:11 CEST,
"Steve V." <Steve
aMadMan.com> 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 default
xxx.com 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 user
example.com
DO NOT START NEW TOPICS BY REPLYING TO OLD MESSAGES IN UNRELATED
THREADS.
--
Magnus Bäck
magnus
dsek.lth.se
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]