From: Justin Zygmont (no email)
Date: Fri Dec 02 2005 - 23:48:21 EST
On Sat, 3 Dec 2005, mouss wrote:
> Justin Zygmont a écrit :
>> On Thu, 1 Dec 2005, Harvey Smith wrote:
>>
>> doesn't seem to work, nothing will send that way. Did you try it like this
>> before?
>>
>
> if by local only users you mean people who can't talk with the "outside"
> world, then this has been answered so many times. it amounts to:
>
> smtpd_recipient_restrictions =
> ...
> check_sender_access hash:$dir/poor_guys
> ...
>
> local_only =
> reject_unauth_destination
> permit_sasl_authenticated
> permit_mynetworks
> reject
>
> and in poor_guys, you have
> .example local_only
> ...
No, i tried to make it clear in my previous messages this is not what I
was trying to do. There is already an example for this from the
documentation, what I want to achieve is the opposite; all users are
restricted to local email, only a few users should be permitted to email
the outside world.
> these users can then communicate with people in local/virtual/relay/alias
> domains. This should be enough for most purposes.
>
> The trick here is that local_users aren't allowed to relay (and don't get
> mail from outside). This trick helps you get rid of domains and networks.
>
> if you want to change this so that
>
> 1- they can only talk to some domains (instead of all
> local/virtual/relay/alias domains)
> 2- they can also connect from some other clients
> 3- they can talk to some other domains
>
> then that is still feasible, but it's easier with a policy service.
>
> If you insist on using just postfix, then your issue is how to achieve
> something like
>
> foo.example dunno
> bar.example dunno
> * reject
>
> The answer is to use pcre/regex or mysql/pgsql/ldap. hash can't.
I don't need to do this.
|
|
|