Thanks again for your reply.
I have one domain with MailCow setup => mymailcowdomain.com
And setup around 30 user/mailbox and what I am planning to do is to limit 20 user to send emails to 2 public domains and internal users only (send to other users on mymailcowdomain.com and if possible send 2 other public domains like publickdomain1.com and publicdomain2.com)
The reset 10 users could send everywhere with no limit.
I have set up this rule using Rspamd
priority = 10;
rcpt = "user1@mymailcowdomain.com";
# Multiple allowed hosts
# from = "/^((?!(.*@allowed-domain\.tld|.*@other-allowed-domain\.tld)).)*$/";
from = "/^((?!.*@mymailcowdomain\.com).)*$/";
apply "default" {
MAILCOW_BLACK = 9999.0;
}
symbols [
"MAILCOW_BLACK"
]
user1@mymailcowdomain.com is able to send anywhere and not limited to internal users of mymailcowdomain.com