imap-sieve, question concerning "sieve_user_email" and variables, migration from 2.3 to 2.4
Claus-Justus Heine via dovecot <[email protected]> Fri, 10 Apr 2026 18:11:59 +0200
| Newsgroups | gmane.mail.imap.dovecot |
|---|---|
| Message-ID | <[email protected]> |
Hi there, I have a question concerning the configuration setting sieve_user_email In a v2.3 setup I had it set to sieve_user_email = %[email protected] Now I am trying to migrate to v2.4 and thought the direct translation from the old variable expansion scheme to the new scheme deployed in v2.4 would be sieve_user_email = %{user|username|lower}@some.concrete.domain However, this does not work. Testing the documentation yields the following error: # dovecot -n -c dovecot.conf > /dev/null doveconf: Error: sieve: sieve settings: Failed to parse configuration: Failed to expand sieve_user_email setting variables: Unknown variable 'user' doveconf: Fatal: Error in configuration file dovecot.conf: Failed to initialize Sieve Setting "sieve_user_email" to something without variable expansion or just commenting it out yields a configuration which is accepted by "dovecot -n". Now I wonder: a) v2.3 did not complain. But perhaps just because it was using "%Ln" literally? b) In case it did work in v2.3, should it work in v2.4 also? And if so: what would be the correct syntax / variable names? c) Under which circumstances is this setting "sieve_user_email" used? The documentation states: https://doc.dovecot.org/main/core/summaries/settings.html#sieve_user_email > The primary e-mail address for the user. > > This is used as a default when no other appropriate address is available for sending messages. > > If this setting is not configured, either the postmaster or null <> address is used as a sender, depending on the action involved. > > This setting is important when there is no message envelope to extract addresses from, such as when the script is executed in IMAP. I thought that then it would make sense to use something which depends on the login-name of the IMAP-user? Or was this "sieve_user_email" intended to hold just one static email like "[email protected]"? Kind thanks for clarification, best regards Claus -- Claus-Justus Heine [email protected] http://www.claus-justus-heine.de/ Schatzmeister der Camerata Academica Freiburg e.V. --- www.cafev.de _______________________________________________ dovecot mailing list -- [email protected] To unsubscribe send an email to [email protected]
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEYUKGGMEPm0+I+1edXytte5s7C8oFAmnZIU8FAwAAAAAACgkQXytte5s7C8rx bw/+O9DH+ChasIdNprKWzVOJ9rejRbJ7Oeqhc4Uja8Hsre8fnT5tOEPF1X3BF2wwKuJlm61SqMCb ezQwq4bcWaObdj3YM8bhXaR9pjpTb3W4O1kFwdadLH+96xaDax7cdlmtu64w0qfPRHNmy6OA/EQJ 4wIPS5Utbgh04ZtNgylrYvx1swAOp95CNIACi2kRoMcZ6Sctaes8T1zKhIzEdD77FsZxcydHBMi6 2sfKmTHAum8A+/i43Uo9TZOBX5BuIfOhAOZxBsrQLkH0hEaQ7zntTtGkCFme/WAkMFLNHKq95PiH kOo0iISrKyKe+Q5FB9+JN4esqc8DTWim5+K7A8gwMspfPcsMsMZuVWwxH3A4ufejUNRpf34BNOT7 weDRqkmIDO0mzURILaPzg7W/G7Q+mo9BtUDnYLpOSGbOdlf7WX44zFr8kDJ0gYbjIPxBzyWrOBAG WKklGu2p2j9hDWB9Kw4OpG6vG2bkq1Ip49q9e3eWzY8MgmitRJ67yl3f1pzE/eBxp3kW8h+ctoPq FvtsnA/MEN2i2csk7wA5FBiUQgoeoPG+GC7Co8cRnJtEOzZmPGq5183AOuOaZc93XFHc1f9+rzZg SDMOZkzwc7M04H2niNAx6nvC2x3ZmSc2f1dvCqoMtuNrJxI2up3jwNT72iMWHGc1iZldrEm9TNMh NkU= =75sA -----END PGP SIGNATURE-----