Re: postfix and mail origin checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Karanbir Singh wrote:
> On 07/29/2009 01:58 PM, RedShift wrote:
>>> Emails to other destinations should remain unaffected.
> ^^
> 
>> The easiest way is probably to edit master.cf and make smtpd only listen on localhost:25.
> 
> well, no. The machine gets a few thousand other emails from all over the 
> place. Would not want to stop that :)
> 
>  > Otherwise us an access table.
> 
> how ?
> 
> 

Start by setting up recipient classes, like this:


everybody = permit
limited = check_client_access hash:/etc/postfix/tables/limited_client_access

smtpd_restriction_classes = everybody, limited

smtpd_recipient_restrictions = 
 permit_mynetworks
 reject_unauth_destination
 check_recipient_access hash:/etc/postfix/tables/recipient_access


And now for the tables:


recipient_access:
 myprecious@xxxxxxxxxxx limited
 *                      everybody

limited_client_access:
 1.2.3.4 OK
 *       REJECT


I'm quickly writing this almost all out of my head so it might not be entirely "drop into place".


Glenn
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux