V
V
vlarkanov2019-06-13 15:01:32
postfix
vlarkanov, 2019-06-13 15:01:32

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

2 answer(s)
D
Dmitry, 2019-06-13
@vlarkanov

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;
}

A
alfss, 2019-06-13
@alfss

https://stackoverflow.com/questions/24256008/how-t...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question