if anyof (address :domain :contains ["from","to"] "dovecot", header :matches "*" "*dovecot*") { fileinto "INBOX.dovecot"; stop; }