Good day to you all.
I have a question regarding the dovecot sieve vacation function that I
am unable to answer myself by reading the documentation.
A while ago we moved our dovecot server to a newer system (and newer
dovecot version 2.3.16 ). This worked mostly fine, except there is now
an issue with the auto-reply emails send from sieve vacation scripts.
While the sending of the auto reply generally works fine, the emails
always appear to come from the "sysgr...@ida.ing.tu-bs.de" address
rather than the original recipient of the message.
This is bad since the recipient of the auto reply then has no idea who
the person on vacation actually is (unless there is a name in the
message body).
The sieve scripts are managed by roundcube webmail, an example entry for
a vacation rule looks like this:
require ["vacation"];
# rule:[Vacation]
if true
{
vacation :days 7 :subject "Nicht im Büro" :from
"tbt...@ida.ing.tu-bs.de" "Ich bin nicht da!";
}
This looks ok to me. The problem is that the "tbtest" address is not
used in the generated reply, instead sysgr...@ida.ing.tu-bs.de is used
as a from address for all recipients.
Note that the sysgroup@ address appears nowhere in the dovecot config,
but it does in
/etc/postfix/sender-canonical like that:
r...@ida.ing.tu-bs.de sysgr...@ida.ing.tu-bs.de
@ida.ing.tu-bs.de sysgr...@ida.ing.tu-bs.de
@net.ida sysgr...@ida.ing.tu.bs.de
The /etc/dovecot/conf.d/90-sieve.conf is mostly on default values, the
remaining config settings are these:
plugin {
sieve = file:~/Maildir/sieve;active=~/Maildir/.dovecot.sieve
sieve_extensions = +editheader
#Send vacation auto responder with correct Address
sieve_vacation_send_from_recipient = yes
sieve_vacation_use_original_recipient = no
}
I have attached the output of "dovecot -n" below.
Many thanks for any ideas on what could be the issue!
Kind regards,
Thomas
--
Dipl. Inf. Thomas Boroske
Institute of Computer and Network Engineering
TU Braunschweig
Hans-Sommer-Str. 66, D-38106 Braunschweig, Germany
www.ida.ing.tu-bs.de
# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.16 (09c29328)
# OS: Linux 5.14.0-316.el9.x86_64 x86_64 CentOS Stream release 9 ext4
# Hostname: letterbox.net.ida
auth_mechanisms = plain login
auth_username_format = %n
auth_verbose = yes
first_valid_uid = 1000
last_valid_uid = 1000
lda_original_recipient_header = X-Original-To
lmtp_save_to_detail_mailbox = yes
log_path = /var/log/dovecot.log
mail_location = maildir:/var/spool/imap/%u/Maildir
mail_plugins = " acl notify mail_log"
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext editheader
mbox_write_locks = fcntl
namespace {
hidden = no
ignore_on_failure = no
list = children
location = maildir:%%h/Maildir:INDEXPVT=~/Maildir/shared/%%u
prefix = shared/%%u/
separator = /
subscriptions = yes
type = shared
}
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix = INBOX/
separator = /
type = private
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
acl = vfile
acl_shared_dict = file:/var/spool/imap/shared-mailboxes.db
mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
mail_log_fields = uid box msgid size
sieve = file:~/Maildir/sieve;active=~/Maildir/.dovecot.sieve
sieve_extensions = +editheader
sieve_vacation_send_from_recipient = yes
sieve_vacation_use_original_recipient = no
}
pop3_uidl_format = %v.%u
protocols = imap pop3 lmtp sieve
service auth {
inet_listener {
port = 12345
}
unix_listener auth-userdb {
group = vmail
user = vmail
}
}
service lmtp {
inet_listener lmtp {
port = 24
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
ssl = required
ssl_cert = </etc/pki/tls/certs/imap.ida.ing.tu-bs.de.pem
ssl_cipher_list = PROFILE=SYSTEM
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
override_fields = uid=vmail gid=vmail home=/var/spool/imap/%u master_user=%u system_groups_user=%u
}
verbose_proctitle = yes
protocol lmtp {
mail_plugins = " acl notify mail_log sieve"
postmaster_address = postmas...@ida.ing.tu-bs.de
}
protocol imap {
mail_plugins = " acl notify mail_log imap_acl"
}
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org