|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Fwd/Alias instead of reject
From: Steve V. (Steve
aMadMan.com)
Date: Thu Sep 01 2005 - 11:11:40 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Haven't had much luck finding this info through normal resources so im back.
much thanks for the help on my previous problem. I am running a pretty
stock postfix 2.x email server on fedora core 4. serves a single domain and
delivers to local accounts on the box. the end of my main.cf file has been
ammended with the following to implement an incomming and outgoing whitelist
(my boss is paranoid *shrug*):
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
Depending on who the user is, or who is sending in the mail the restrictions
will end up at one of the classes above. my previous issue was that i
wanted to customize the reject message if somone didn't match against the
whitelist, which worked great (but is not reflected in the above config) but
first we need a transition period as we populate the whitelist with
customers... rather than reject (even with the fancy message) i'd rather
it just send the email to a different address, like a catch-all or
supervisor account. basically, like the alias setup.
an example would be:
userA
xxx.com has a local account
default
xxx.com is a catch all supervisor kinda inbox and has a local
account
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.
any idears or some pointing into the right direction?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]