Hi, We have an alias group named xyz at example.com, this alias group has 3 actual users a at example.com, b at example.com and c at example.com We set vacation rule on the generic sieve rule, the problem is that 3 responses are sent to the original sender. (obviously because the rule is being executed with each user in the alias group) Is it possible to set auto response only once, we tried the ( :days 1) option but still all 3 respond back. How can such a setup be achieved. (Single auto response to an alias group) CentOS 7.5 dovecot-pigeonhole-2.3.4.1-1.x86_64 dovecot-2.3.4.1-1.x86_64 postfix 2.10-1 -- Best Regards Monis -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190309/bd3ff948/attachment.html>
On Sat, 9 Mar 2019 at 14:41, Monis Monther via dovecot <dovecot at dovecot.org> wrote:> Hi, > > We have an alias group named xyz at example.com, this alias group has 3 > actual users a at example.com, b at example.com and c at example.com > > We set vacation rule on the generic sieve rule, the problem is that 3 > responses are sent to the original sender. (obviously because the rule is > being executed with each user in the alias group) > > Is it possible to set auto response only once, we tried the ( :days 1) > option but still all 3 respond back. > > How can such a setup be achieved. (Single auto response to an alias group) > > CentOS 7.5 > dovecot-pigeonhole-2.3.4.1-1.x86_64 > dovecot-2.3.4.1-1.x86_64 > postfix 2.10-1 > > > -- > Best Regards > Monis >If the whole "group" (alias) isn't on vacation, then why are you doing this? Let a,b or c activate their rules individually. K.I.S.S principle. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190309/3b908e9c/attachment.html>
Because its not actually a vacation, we are using it as an auto response feature. Its a support group that should auto respond to the customer automatically for the first time. If there is another method to achieve this, then we are more than happy to change our setup. Thanks Monis On Sat, Mar 9, 2019 at 4:36 PM Odhiambo Washington <odhiambo at gmail.com> wrote:> > > On Sat, 9 Mar 2019 at 14:41, Monis Monther via dovecot < > dovecot at dovecot.org> wrote: > >> Hi, >> >> We have an alias group named xyz at example.com, this alias group has 3 >> actual users a at example.com, b at example.com and c at example.com >> >> We set vacation rule on the generic sieve rule, the problem is that 3 >> responses are sent to the original sender. (obviously because the rule is >> being executed with each user in the alias group) >> >> Is it possible to set auto response only once, we tried the ( :days 1) >> option but still all 3 respond back. >> >> How can such a setup be achieved. (Single auto response to an alias group) >> >> CentOS 7.5 >> dovecot-pigeonhole-2.3.4.1-1.x86_64 >> dovecot-2.3.4.1-1.x86_64 >> postfix 2.10-1 >> >> >> -- >> Best Regards >> Monis >> > > If the whole "group" (alias) isn't on vacation, then why are you doing > this? Let a,b or c activate their rules individually. K.I.S.S principle. > > -- > Best regards, > Odhiambo WASHINGTON, > Nairobi,KE > +254 7 3200 0004/+254 7 2274 3223 > "Oh, the cruft.", grep ^[^#] :-) >-- Best Regards Monis -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190309/cd939de6/attachment-0001.html>
On 3/9/19 12:41 PM, Monis Monther via dovecot wrote:> Hi, > > We have an alias group named xyz at example.com <mailto:xyz at example.com>, > this alias group has 3 actual users a at example.com > <mailto:a at example.com>, b at example.com <mailto:b at example.com> and > c at example.com <mailto:c at example.com> > > We set vacation rule on the generic sieve rule, the problem is that 3 > responses are sent to the original sender. (obviously because the rule > is being executed with each user in the alias group) > > Is it possible to set auto response only once, we tried the ( :days 1) > option but still all 3 respond back. > > How can such a setup be achieved. (Single auto response to an alias group) > > CentOS 7.5 > dovecot-pigeonhole-2.3.4.1-1.x86_64 > dovecot-2.3.4.1-1.x86_64 > postfix 2.10-1 > > > -- > Best Regards > MonisHello Monis, As a workaround, you can turn xyz at example.com into an actual mailbox and give a at example.com, b at example.com and c at example.com read-only shared folder access. Yassine. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190310/5029662a/attachment.html>
On 3/10/19 9:07 AM, Yassine Chaouche via dovecot wrote:> > On 3/9/19 12:41 PM, Monis Monther via dovecot wrote: > >> Hi, >> >> We have an alias group named xyz at example.com >> <mailto:xyz at example.com>, this alias group has 3 actual users >> a at example.com <mailto:a at example.com>, b at example.com >> <mailto:b at example.com> and c at example.com <mailto:c at example.com> >> >> We set vacation rule on the generic sieve rule, the problem is that 3 >> responses are sent to the original sender. (obviously because the >> rule is being executed with each user in the alias group) >> >> Is it possible to set auto response only once, we tried the ( :days >> 1) option but still all 3 respond back. >> >> How can such a setup be achieved. (Single auto response to an alias >> group) >> >> CentOS 7.5 >> dovecot-pigeonhole-2.3.4.1-1.x86_64 >> dovecot-2.3.4.1-1.x86_64 >> postfix 2.10-1 >> >> >> -- >> Best Regards >> Monis > > Hello Monis, > > As a workaround, you can turn xyz at example.com into an actual mailbox > and give a at example.com, b at example.com and c at example.com read-only > shared folder access. > > Yassine. >As a request for comments and improvements, here's a my script to share folders via acl files and symlinks (dovecot must be configured accordingly) : root at messagerie[10.10.10.19] /usr/local/scripts/mail # cat sharemailbox.single #!/bin/bash function create_link { ??? l_src=$1 ??? l_dst=$2 ??? l_maildir=$3 ??? t_maildir=$(echo "$3" | tr . ?) ??? t_dst="$l_dst"/.shared."$t_maildir" ??? echo pointing "$t_dst" to "$l_src" ??? echo ln -s "$l_src/" "$t_dst" ??? ln -s "$l_src/" "$t_dst" } function verifier_email { ??? l_email=$1 ??? if ! searchmailbox.strict.sql $l_email > /dev/null ??? then ??????? echo "l'utilisateur $l_email n'a pas pu ?tre trouv? dans la base de donn?es." >&2 ??????? return 1 ??? fi ??? return 0 } function set_acl { ??? l_maildir=$1 ??? l_email=$2 ??? echo "giving $l_email access to $l_maildir" ??? if [ ! -d $l_maildir ] ??? then ??????? #.Sent isn't there yet. ??????? return ??? fi ??? acl_file="$l_maildir/dovecot-acl" ??? echo "echo user=$l_email lr >> $acl_file" ??? echo user="$l_email" lr >> "$acl_file" ??? chown vmail:vmail "$acl_file" } if [ "$#" -lt 2 ] then ??? echo "usage : $0 partage at domain.com user1 at domain.com user2 at domain.com ... " ??? exit 1 fi email="$1" inbox="${email%@*}" domain="${email#*@}" src="/var/vmail/$domain/$inbox" if ! verifier_email "$email" then ??? echo "exit at 1" ??? exit 1 fi shift for share_email in $@ do ??? if ! verifier_email $share_email ??? then ??????? continue ??? fi ??? share_inbox="${share_email%@*}" ??? share_domain="${share_email#*@}" ??? share_maildir=/var/vmail/"$share_domain"/"$share_inbox" ??? #echo grep "$share_email" "$src"/dovecot-acl ??? if grep "$share_email" "$src"/dovecot-acl > /dev/null 2>&1 ??? then ??????? # then is executed when exit status is 0 ??????? # exist status is 0 when there is a match ??????? echo "$share_email" has already access to "$email" ??? else ??????? set_acl $src $share_email ??????? create_link $src $share_maildir $inbox ??? fi done root at messagerie[10.10.10.19] /usr/local/scripts/mail # -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190310/1d3c4a07/attachment-0001.html>