Answer the question
In order to leave comments, you need to log in
Postfix: how to move emails containing a specific line in the subject line (spam) to a specific mailbox?
There is a mail rayleigh with the configured spamassasin. If he considers the letter spam, then he adds the line *****SPAM***** to the subject line. Previously, behind the relay there was an Exchange 2010 mailer, on which a transport rule was configured, moving messages with the above line to a special mailbox [email protected]
Now behind the relay there is a postfix + dovecot mailer. How can I configure it to process similar messages containing the string *****SPAM***** in the subject line?
Answer the question
In order to leave comments, you need to log in
dovecot has a Sieve plugin. This plugin can process incoming mail and (among other things) organize it into folders depending on various criteria, such as a certain word in the Subject.
This is how the Sieve rule looks like, a working example, my account is on my server.
if header :contains "Subject" "SPAM"
{
fileinto "Junk";
stop;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question