sieve vacation to an alias group
Hi,
We have an alias group named xyz@example.com, this alias group has 3 actual users a@example.com, b@example.com and c@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
On Sat, 9 Mar 2019 at 14:41, Monis Monther via dovecot dovecot@dovecot.org wrote:
Hi,
We have an alias group named xyz@example.com, this alias group has 3 actual users a@example.com, b@example.com and c@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 ^[^#] :-)
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@gmail.com wrote:
On Sat, 9 Mar 2019 at 14:41, Monis Monther via dovecot < dovecot@dovecot.org> wrote:
Hi,
We have an alias group named xyz@example.com, this alias group has 3 actual users a@example.com, b@example.com and c@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
On 9 Mar 2019, at 06:43, Monis Monther via dovecot dovecot@dovecot.org wrote:
Because its not actually a vacation, we are using it as an auto response feature.
Have you considered that your users hate auto-response messages and that "we got your mail" is basically saying "we'll get around to it in a much longer amount of time than seems reasonable, so we’re trying to placate you by sending you a useless auto-response"?
I mean, that's how I view auto-responses; they instantly lower my perception of the company.
-- Real magic is the hand around the bandsaw, the thrown spark in the powder keg, the dimension-warp linking you straight into the heart of a star, the flaming sword that burns all the way to the pommel. --Moving Pictures
Actually our customers feel the exact opposite and feel very happy when receiving the email, it tells customers that we did receive your request and someone has already seen it. If they don't receive this email they will start calling on the call center and asking if anyone has seen their email.
This is similar to any ticketing system, It there a way to achieve this?
Thanks Monis
On Sat, Mar 9, 2019 at 9:29 PM @lbutlr via dovecot dovecot@dovecot.org wrote:
On 9 Mar 2019, at 06:43, Monis Monther via dovecot dovecot@dovecot.org wrote:
Because its not actually a vacation, we are using it as an auto response feature.
Have you considered that your users hate auto-response messages and that "we got your mail" is basically saying "we'll get around to it in a much longer amount of time than seems reasonable, so we’re trying to placate you by sending you a useless auto-response"?
I mean, that's how I view auto-responses; they instantly lower my perception of the company.
-- Real magic is the hand around the bandsaw, the thrown spark in the powder keg, the dimension-warp linking you straight into the heart of a star, the flaming sword that burns all the way to the pommel. --Moving Pictures
-- Best Regards Monis
On 3/9/19 12:41 PM, Monis Monther via dovecot wrote:
Hi,
We have an alias group named xyz@example.com mailto:xyz@example.com, this alias group has 3 actual users a@example.com mailto:a@example.com, b@example.com mailto:b@example.com and c@example.com mailto:c@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@example.com into an actual mailbox and give a@example.com, b@example.com and c@example.com read-only shared folder access.
Yassine.
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@example.com mailto:xyz@example.com, this alias group has 3 actual users a@example.com mailto:a@example.com, b@example.com mailto:b@example.com and c@example.com mailto:c@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
- 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@example.com into an actual mailbox and give a@example.com, b@example.com and c@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@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@domain.com user1@domain.com user2@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@messagerie[10.10.10.19] /usr/local/scripts/mail #
Hi Yassine,
Thanks for the effort, unfortunately, we cannot turn it into an actual mailbox, this is a long story that I don't want to include here. but it would not be a valid option in our environment. Any other ideas
Is it possible to do it with vacation? Is there another auto responder or plugin that can achieve this? How do ticketing systems handle this?
Thanks Monis
On Sun, Mar 10, 2019 at 11:13 AM Yassine Chaouche via dovecot < dovecot@dovecot.org> wrote:
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@example.com, this alias group has 3 actual users a@example.com, b@example.com and c@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@example.com into an actual mailbox and give a@example.com, b@example.com and c@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@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@domain.com user1@domain.com user2@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@messagerie[10.10.10.19] /usr/local/scripts/mail #
-- Best Regards Monis
I think you should run a true ticketing system like RT ( https://bestpractical.com/request-tracker)
On Sun, Mar 10, 2019, 13:40 Monis Monther via dovecot dovecot@dovecot.org wrote:
Hi Yassine,
Thanks for the effort, unfortunately, we cannot turn it into an actual mailbox, this is a long story that I don't want to include here. but it would not be a valid option in our environment. Any other ideas
Is it possible to do it with vacation? Is there another auto responder or plugin that can achieve this? How do ticketing systems handle this?
Thanks Monis
On Sun, Mar 10, 2019 at 11:13 AM Yassine Chaouche via dovecot < dovecot@dovecot.org> wrote:
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@example.com, this alias group has 3 actual users a@example.com, b@example.com and c@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@example.com into an actual mailbox and give a@example.com, b@example.com and c@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@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@domain.com user1@domain.com user2@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@messagerie[10.10.10.19] /usr/local/scripts/mail #
-- Best Regards Monis
I am curious to know how did you define the filter on an alias in the first place ? is it a filter defined globaly in dovecot ? I don't see how it can be defined in any individual mailbox. Can you show the dovecot/sieve configuration to achieve this ?
Yassine.
On 3/10/19 11:40 AM, Monis Monther via dovecot wrote:
Hi Yassine,
Thanks for the effort, unfortunately, we cannot turn it into an actual mailbox, this is a long story that I don't want to include here. but it would not be a valid option in our environment. Any other ideas
Is it possible to do it with vacation? Is there another auto responder or plugin that can achieve this? How do ticketing systems handle this?
Thanks Monis
On Sun, Mar 10, 2019 at 11:13 AM Yassine Chaouche via dovecot
mailto:dovecot@dovecot.org> wrote: 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@example.com <mailto:xyz@example.com>, this alias group has 3 actual users a@example.com <mailto:a@example.com>, b@example.com <mailto:b@example.com> and c@example.com <mailto:c@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@example.com <mailto:xyz@example.com> into an actual mailbox and give a@example.com <mailto:a@example.com>, b@example.com <mailto:b@example.com> and c@example.com <mailto:c@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@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@domain.com <mailto:partage@domain.com> user1@domain.com <mailto:user1@domain.com> user2@domain.com <mailto:user2@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@messagerie[10.10.10.19] /usr/local/scripts/mail #
-- Best Regards Monis
Since sending to the alias will send to a, b and c, just define the filter on one mailbox only instead of making it global I guess.
Yassine.
On 3/10/19 11:51 AM, Yassine Chaouche via dovecot wrote:
I am curious to know how did you define the filter on an alias in the first place ? is it a filter defined globaly in dovecot ? I don't see how it can be defined in any individual mailbox. Can you show the dovecot/sieve configuration to achieve this ?
Yassine.
On 3/10/19 11:40 AM, Monis Monther via dovecot wrote:
Hi Yassine,
Thanks for the effort, unfortunately, we cannot turn it into an actual mailbox, this is a long story that I don't want to include here. but it would not be a valid option in our environment. Any other ideas
Is it possible to do it with vacation? Is there another auto responder or plugin that can achieve this? How do ticketing systems handle this?
Thanks Monis
On Sun, Mar 10, 2019 at 11:13 AM Yassine Chaouche via dovecot
mailto:dovecot@dovecot.org> wrote: 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@example.com <mailto:xyz@example.com>, this alias group has 3 actual users a@example.com <mailto:a@example.com>, b@example.com <mailto:b@example.com> and c@example.com <mailto:c@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@example.com <mailto:xyz@example.com> into an actual mailbox and give a@example.com <mailto:a@example.com>, b@example.com <mailto:b@example.com> and c@example.com <mailto:c@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@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@domain.com <mailto:partage@domain.com> user1@domain.com <mailto:user1@domain.com> user2@domain.com <mailto:user2@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@messagerie[10.10.10.19] /usr/local/scripts/mail #
-- Best Regards Monis
@odhiambo : we may later, but currently we are dependent on this email
Hi Yassine,
This is actually what I have done now, but I want it to be more robust, if this user quits, then I must have someone else in the group with the rule.
I have moved the rule from global sieve script to one of group members in his local sieve script, the syntax is the same
As for the rule itself
if header :contains "to" "xyz@example.com" { vacation :days 1 :addresses "xyz@example.com" :subject "Automated Response" :from "XYZ xyz@example.com" text: Dear Customer, Greetings, Kindly be ....etc., . ; }
On Sun, Mar 10, 2019 at 1:55 PM Yassine Chaouche via dovecot < dovecot@dovecot.org> wrote:
Since sending to the alias will send to a, b and c, just define the filter on one mailbox only instead of making it global I guess.
Yassine. On 3/10/19 11:51 AM, Yassine Chaouche via dovecot wrote:
I am curious to know how did you define the filter on an alias in the first place ? is it a filter defined globaly in dovecot ? I don't see how it can be defined in any individual mailbox. Can you show the dovecot/sieve configuration to achieve this ?
Yassine. On 3/10/19 11:40 AM, Monis Monther via dovecot wrote:
Hi Yassine,
Thanks for the effort, unfortunately, we cannot turn it into an actual mailbox, this is a long story that I don't want to include here. but it would not be a valid option in our environment. Any other ideas
Is it possible to do it with vacation? Is there another auto responder or plugin that can achieve this? How do ticketing systems handle this?
Thanks Monis
On Sun, Mar 10, 2019 at 11:13 AM Yassine Chaouche via dovecot < dovecot@dovecot.org> wrote:
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@example.com, this alias group has 3 actual users a@example.com, b@example.com and c@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@example.com into an actual mailbox and give a@example.com, b@example.com and c@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@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@domain.com user1@domain.com user2@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@messagerie[10.10.10.19] /usr/local/scripts/mail #
-- Best Regards Monis
-- Best Regards Monis
On 3/10/19 12:35 PM, Monis Monther via dovecot wrote:
[...]
This is actually what I have done now, but I want it to be more robust, if this user quits, then I must have someone else in the group with the rule. [...]
Yeah, a multipurpose, reusable notifications@domain.tld fake / bot email account :)
Yassine.
Hi,
Is there a solution for this? Not necessarily with vacation , even with another tool. It feels like this should be a normal use case, but no one has a solution to it. Any help would be appreciated.
Thanks Monis
On Sun, Mar 10, 2019 at 3:18 PM Yassine Chaouche via dovecot < dovecot@dovecot.org> wrote:
On 3/10/19 12:35 PM, Monis Monther via dovecot wrote:
[...]
This is actually what I have done now, but I want it to be more robust, if this user quits, then I must have someone else in the group with the rule. [...]
Yeah, a multipurpose, reusable notifications@domain.tld fake / bot email account :)
Yassine.
-- Best Regards Monis
On Wed, 13 Mar 2019 at 11:16, Monis Monther via dovecot dovecot@dovecot.org wrote:
Hi,
Is there a solution for this? Not necessarily with vacation , even with another tool. It feels like this should be a normal use case, but no one has a solution to it. Any help would be appreciated.
Thanks Monis
Look for the solution within your MTA. Really, what you are looking for has nothing to do with vacation. It's just an autoresponder which you would do natively within you MTA or use procmail. The perfect tool though is Request Tracker, which I suggested a few days ago. Well, I suggested RT just because I am kinda familiar with it. There are others.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)
participants (4)
-
@lbutlr
-
Monis Monther
-
Odhiambo Washington
-
Yassine Chaouche