OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: limit addresses

From: mouss (usebsdfree.fr)
Date: Thu Feb 02 2006 - 13:02:20 CST


Vic Herrera a écrit :
> Hi,
>
> we have an all~ address and a couple others that we want to limit access to, like only the owner, manager and other dude can send an email to allourpostfixserver
>
> is there a way to limit that?

smtpd_restriction_classes =
        ...
        only_the_good_send_mail
        ...

smtpd_recipient_restrictions =
        ...
        check_recipient_access hash:$dir/restricted_rcpt
        ...

only_the_good_send_mail =
        check_sender_access hash:$dir/the_good_sender

== restricted_rcpt
allexample.com only_the_good_send_mail

== the_good_sender
fooexample.net OK
barexample.org OK