Hello

it took a long time for the to find time to get deeper into this answer, apologies for that.

Unfortunately I do not really understand *how to configure sieve*. It somehow worked miraculously in the past with our groupware/webmailers  (locally installed) so there was never a need to go deep into the system.

As now (with Egroupware and Cyrus 3.x) it is possible to create filters, but not to run the vacation emails (it says configured but does not work),

So, from your answer below, I conclude it seems that Cyrus "is not configured to send emails".

Apologies for my lack of understand but would you be able to point me in the direction of documentation/tutorials/howtos for

- How to use Sieve and create scripts
- How to configure Cyrus 3.x for delivering emails

To clarify: I well understand the direction you point me to, but it is a bit like someone C&P important lines from an assembler code and tries to explain this to a Basic Programmer....

It might all be clear for someone who understands sieve, but I need to get this understanding sieve (and I mean not only the sieve script, but how sieve works together with Cyrus, how I can test it etc.). All Cyrus installations so far have worked well practically out of the box with a little configuration in the config files. And as they did that, I have to admit there was never a need to get deeper in any of the configs (postfix+cyrus+fetchmail to setup had in the past plenty of nice "howtos" and I just managed to take those configs in the last 30 years to the new versions and setups).

Thank you for your patience and your support.

Cheers

TB


Дилян Палаузов schrieb am 29.08.25 um 19:41:
Hello,

You can check with the sieve index extension if a particular Received: header 
(e.g. the third top most, depending on your setup) has received a message from 
inside or from outside, based on some regular expressions.  This check could 
also be done based on From header, or envelope sender.  (But the last two 
variants can be faked, unless you use DMARC).

Once a Sieve script determines that a message is from outside,
• it can add a header (with the editheader extension), or
• set a flag like \\Flagged, or
• move the message to a sub-mailbox(directory).
• You can also try to use variables, store in a variable the subject of the 
email, remove the subject header, prepend text to it, and add the new subject.  
This breaks however DMARC/DKIM, if at any moment later is decided to evaluate 
DKIM again.

I do not think it is possible to prepend text to the message body.  This is 
hard to implement, if the message has three alternative MIME parts - icalendar, 
text, html - prepending text in HTML is hard, and prepending text in iCalendar 
is ... something very new.  But it is not clear which MIME part out of all 
alternatives the use wiil open, so you are asking to prepend text in all 
alternative MIME parts.


Concerning your other message about vacation not sent, when vacation messages 
are sent, an entry in the deliver.db database is made 
-https://www.cyrusimap.org/imap/concepts/deployment/databases.html#duplicate-delivery-deliver-db
 - to track when for last time a vacation message was sent.  You can look there 
if there are entries.  If sieve REJECT does not work for you, this means that 
Cyrus IMAP is not configured to send emails and for this reason it does not 
send vacation/out-of-office
responses.

 From your examples:

anyof(address :contains ["To","TO","Cc","CC"]"[email protected]", address :contains 
["To","TO","Cc","CC"]"[email protected]")
You probably want to rewrite the above to the equivalent - 
seehttps://datatracker.ietf.org/doc/html/rfc5228.html#section-5.1 -

address :contains ["To", "Cc"] ["[email protected]","[email protected]"]
and use instead of :contains → :is (or the lack of [MATCH-TYPE], which implies 
:is)

Greetings // Дилян

-----Original Message-----
From: Dr. Thorsten Brandau via Info<[email protected]>
Reply-To: Info<[email protected]>
To:[email protected]
Subject: Insert a message for outside Emails?
Date: 28/08/25 19:30:17

I am looking at various sieve folders and wonder if anyone tried to
create a filter that inserts a message like "Email from Outside Adresse"
at the beginning of each message body, if the sender domain does not
match the local one.

Is that possible?

I am getting my emails via fetchmails -> postfix -> cyrus, so something
in postfix itself would not work.

Cheers

TB


------------------------------------------
Cyrus: Info
Permalink:https://cyrus.topicbox.com/groups/info/T4061c7db816fcf5c-Mfa1ed01a2531d5440cfdb680
Delivery options:https://cyrus.topicbox.com/groups/info/subscription

------------------------------------------
Cyrus: Info
Permalink: 
https://cyrus.topicbox.com/groups/info/T574c9d7435f44ed2-Mb7e58635111fad49b7321c63
Delivery options: https://cyrus.topicbox.com/groups/info/subscription

Reply via email to