Thanks :-) It is working .. I forgot to use classes :-) 

Peter 

On Feb 10, 2011, at 1:43 PM, Nikolaos Milas wrote:

> You could try using restriction classes, as documented: 
> http://www.postfix.org/RESTRICTION_CLASS_README.html
> 
> For example:
> 
> smtpd_restriction_classes = restr_class1
> restr_class1= check_sender_access 
> hash:/etc/postfix/somesenders,permit_mynetworks,reject
> smtpd_recipient_restrictions = 
> hash:/etc/postfix/access-recipient.cf,permit_mynetworks,reject
> 
> # access-recipient.cf:
> [email protected] restr_class1
> 
> # somesenders:
> [email protected] REJECT
> [email protected] REJECT
> 
> Note however that this will not provide sufficient protection, since, the 
> user can always change his sender address and override the mechanism.
> 
> But you could lock them out using ip address (still prone to ip spoofing) or, 
> even better, require SASL authentication and filter people based on their 
> (SASL) login name (using reject_sender_login_mismatch).
> 
> Nick
> 
> 
> 
> 
> On 10/2/2011 1:17 μμ, Petr Svacina wrote:
>> Hi,
>> 
>> I need to have this specific scenario:
>> 
>> I need to set up for example.com aliases for all ([email protected]), so 
>> it is made.
>> 
>> Next I need to restrict [email protected] to local delivery only, so I 
>> made this:
>> 
>> /etc/postfix/main.cf:
>> smtpd_recipient_restrictions = check_recipient_access 
>> hash:/etc/postfix/access-recipient.cf
>> 
>> /etc/postfix/access-recipient.cf:
>> [email protected]  permit_mynetworks,reject
>> 
>> So And now I need SOMEHOW to set up, that some users ([email protected], 
>> [email protected]) can not send ANYTHING to the [email protected], can 
>> postfix handle this ?
>> Or I need to use any script ... ?
>> 
>> Thanks Peter
> 
> -- 
> Tato zprava byla prohledana na vyskyt viru
> a nebezpecneho obsahu antivirovym systemem
> MailScanner a zda se byt cista.
> 


-- 
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.

Reply via email to