Move email coming from my router to a specific folder.

Hi,

I use postfix, amavisd and dovecot.

Is there a way to detect the email coming from my router and move them automatically to a specific folder?

Detect the subject of the email, the sender, the recipient, doesn't matter what we can detect,

the important things is that I can detect the email coming from router and move them to a folder.

What is the right way to do it?

3 Replies

You can pipe emails to a script and do what ever you want. You need to create an email where the router sends the email to.

Here is an example I Googled: http://blog.thecodingmachine.com/conten … eives-mail">http://blog.thecodingmachine.com/content/triggering-php-script-when-your-postfix-server-receives-mail

Dovecote Sieve filtering - http://wiki.dovecot.org/LDA/Sieve or http://wiki2.dovecot.org/Pigeonhole/ManageSieve for Dovecot 2.x.

@sleddog:

Dovecote Sieve filtering - http://wiki.dovecot.org/LDA/Sieve or http://wiki2.dovecot.org/Pigeonhole/ManageSieve for Dovecot 2.x.

I think that this is what I will choose, I will start studying this plugin, I will keep you posted.

The problem is, does CentOS 6.4 dovecot default package supports this plugin?

I don't think so…

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct