Randy Ramsdell wrote:
Randy Ramsdell wrote:
I am trying to configure a very selective list on who can send to a certain local accounts ( could be many and currently contains maybe 30 ).


Currently, this is covered by:

smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/protected_lists,permit_mynetworks,permit_sasl_authenticated etc...

In this protected list we have this:

us...@localdomain.com permit_mynetworks,permit_sasl_authenticated,reject
.
.
.
user...@localdomain.com


I need to add an allow for specific cases for each user{1-100+}@NONlocaldomain.com to send to user{1-100+}@localdomain.com.

Sort of stuck here since the protected_lists only allow the form permit_mynetworks,permit_sasl_authenticated,reject and not include $allow_some_specific_non_local_user

Help with this would be greatly appreciated.

Thanks,
RCR

I removed the address from protected_lists until I come up with an setup which would include these lists and the lists using these list.

I decided to use the following solution. Yes, I am responding to myself, but maybe someone else would find this useful. I issue I that was confusing was wrapping my head around the fact that I would have to create N lists of N members where N could be 1000.

Given:
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/protected_lists,etc...

&&
smtpd_restriction_classes = list1, ... listN


In main.cf :

list1 = check_sender_access hash:/etc/postfix/list1_members,reject
.
.
.
1istN = check_sender_access hash:/etc/postfix/listN_members,reject

In list1_members:
user1@extdomain1 OK
user2@extdomain2 OK

In listN_members:
userN@extdomainN OK

In protected_lists :
protecteduser1@locdomain1 list1_members
.
.
.
protecteduserN@locdomainN listN_members

Seems like cludge, but works. The problem I see is if N == 1000. Maybe then a DB would be best suited.

Thanks,
RCR

Reply via email to