Bug#1020519: cyrus-imapd: Permission problem sending redirect email from sieve rule

2023-06-28 Thread Jean Charles Delépine
Followup-For: Bug #1020519

Hello,

Did you try to let cyrus use /usr/lib/sendmail as it does by default ?
sendmail: /usr/lib/sendmail
 The pathname of the sendmail executable.  Sieve invokes sendmail for 
sending rejections, redirects and vacation responses.

Sincerly,
Jean Charles Delépine


Bug#1020519: cyrus-imapd: Permission problem sending redirect email from sieve rule

2022-09-22 Thread Libor Klepáč
Version: 3.2.6-2+deb11u2

Sorry, it's on Debian Bullseye , i filled the report from my machine
and forgot to change the version

Libor


Bug#1020519: cyrus-imapd: Permission problem sending redirect email from sieve rule

2022-09-22 Thread Libor Klepáč
Source: cyrus-imapd
Version: 3.6.0~beta2-5
Severity: normal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

We have problems sending redirect emails using sieve filter.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

When sieve sends email, it spawns 
/usr/lib/postfix/sbin/smtpd
under user cyrus.
Problem is, we use proxymap in our postfix setting (users in mariadb).

And so it needs access to socket /var/spool/postfix/private/proxymap which is 
only accessible by user/group postfix.
So i added user cyrus to group postfix.

Next problem is, that directory /var/spool/postfix/private/ is only accessible 
by user postfix.
So i added changed rights to 710 and chgrp-ed it to postfix

Now, i can forward emails from sieve, but i don't like it and don't know, if it 
survives reboot/package upgrade.

Can this be somehow addressed from cyrus side?

Thanks for info,
Libor



- -- System Information:
Debian Release: 11.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-17-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cyrus-imapd depends on:
ii  cyrus-common  3.2.6-2+deb11u2
ii  libc6 2.31-13+deb11u4
ii  libcom-err2   1.46.2-2
ii  libsasl2-22.1.27+dfsg-2.1+deb11u1
ii  libssl1.1 1.1.1n-0+deb11u3
ii  libwrap0  7.6.q-31
ii  zlib1g1:1.2.11.dfsg-2+deb11u2

Versions of packages cyrus-imapd recommends:
ii  rsync  3.2.3-4+deb11u1

cyrus-imapd suggests no packages.

- -- Configuration Files:
/etc/pam.d/imap changed:
@include common-auth-mail
@include common-account-mail


-BEGIN PGP SIGNATURE-

iQJJBAEBCAAzFiEEPGZVVU37tFmB0TQv8O+MbsKfR44FAmMshKUVHGxpYm9yLmts
ZXBhY0BiY29tLmN6AAoJEPDvjG7Cn0eOCVgP/1OjSpXSGA4L1TXcwvX+H3tWEclm
lCTObrRLxckCvHUZt1o6IDBR8nzDryTdv+oUzjLihitDtdg4SUJXyltxY8lkF5X7
QT/r90vJF6o8dOwQakKvKrP9ENkX9bUx7jA1YDWfbSX4tA+ZcS0qMRSG8oLi/z7K
cm/69DyG/hEv3RMiinIo6p1RB9MFI2eloK5HgFc1UoO36PExvtqpS0s7xAlhYXJL
b0Aun5YqYAcdHsl+EveZkhIBFYAkR+YUyh5ZY4g5b49AQaQBBIxcUwTBLhYiwwv5
/SEFQBr8ij8uUzgkU8ujzTN67Gpn1MEXCF/n1eqQ5rZzs8eNhYYvc3q3oVEf6H3K
3L/ipn5yBQVD1I+R86fBb+YvCIMR/c/h3YvHwjlDm7KNS90nPNAkT8z8pPZXjTaR
WQ8Iv0Vsx6TuEgpNuxNOGsjmDZ35My6vvtIkYvsK6mzUjsEnxQ3X+ORWknsS2mvt
+nZDbuiSMs7n9cEy9CvoGrbPNJeO0AGWGJjAIrNjOebV+ZngmLCRgkFjQClUdr53
pQ+50+twoKnPrfHFnGKwJQM+keooq2NMvJ37sQWuZSLIHoR0oRewlvCPio8z8cvF
j5ZEEXeqiYF8GrOinxcpWYa9vF/hVoAR1Zjn8/gM4GJuih6dETJYWlR50d8MkQ+P
35RIJ9Xs09KE348K
=pEkn
-END PGP SIGNATURE-