I have mailcow installed in a docker container and all is working well
I’ve setup an alias as a ‘mailing list’ which also works fine.
I’m now trying to configure a Sieve global prefilter (or post filter) to deny emails to the mailing list address unless its sent from a specific local admin mailbox only. If I send emails externally (from private email address) to the mailing list to test it, they still get sent to all alias addresses - the sieve filter isnt kicking in. I cant tell if its a sieve syntax issue or whether sieve is simply not running (how do I tell?) The script is simply:
# Check if the email is to members
if address :is "to" "members@domain.com"
{
if address :is "from" "admin@domain.com"
{
keep;
}
else
{
discard;
stop;
}
}
What am I doing wrong? Internet emails aredelivered direct to mailcow via SMTP (no sync jobs or fetch mail)