This is a tricky one and it will require the use of restriction classes.
It is easy to block mail from user1@oneofmydomain or mail to
[email protected], but if you want to block mail to
[email protected] only when it is from user1@oneofmydomain then the restriction classes can help you.
This is because you can only lookup one thing at a time in an access list.
Existing restriction classes are for example permit, reject or dunno.
You can make a new one such as mycheck
in sender restrictions these would be valid
user1@oneofmydomain permit #permit any mail from user1@oneofmydomain
user1@oneofmydomain reject #reject any mail from user1@oneofmydomain
user1@oneofmydomain mycheck #check another access list for any mail from user1@oneofmydomain
In /etc/postfix/mycheck_recip
ient_acces
s
[email protected] reject
For more information see
http://www.postfix.org/RESTRICTION_CLASS_README.html