here my filter, will fowrard any address that starts with “prefix.” ,“prefix_” or “ prefix-” to user@example.com.
my sever is using smtp relay for outgoing mail coz my ISP block port 25 but I remark that this filter doesn’t use configured smtp relay to reject the mail. from the logs I see that use directely smtp sender on port 25.
anyone can help ? thanks in advance.
require [“regex”,“reject”];
if anyof ( address :regex [“to”, “cc”] “prefix[._-]”) {
redirect “user@example.com”;
}
else {
reject text:
I am not taking mail from you, and I don’t
want your birdseed, either!
.
;
}