<div dir="ltr"><div>@odhiambo : we may later, but currently we are dependent on this email<br></div><div dir="ltr"><br></div><div dir="ltr">Hi Yassine, <div><br></div><div>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.</div><div><br></div><div>I have moved the rule from global sieve script to one of group members in his local sieve script, the syntax is the same</div><div><br></div><div>As for the rule itself</div><div><br></div><div><div>if header :contains "to" "<a href="mailto:xyz@example.com">xyz@example.com</a>"</div><div>{</div><div>        vacation :days 1 :addresses "<a href="mailto:xyz@example.com">xyz@example.com</a>" :subject "Automated Response" :from "XYZ <<a href="mailto:xyz@example.com">xyz@example.com</a>>" text:</div><div>Dear Customer,</div><div>Greetings,</div><div>Kindly be ....etc.,</div></div><div>.</div><div>;</div><div>}</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 10, 2019 at 1:55 PM Yassine Chaouche via dovecot <<a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>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. <br>
    </p>
    <p>Yassine.<br>
    </p>
    <div class="gmail-m_-6805851436701688189moz-cite-prefix">On 3/10/19 11:51 AM, Yassine Chaouche
      via dovecot wrote:<br>
    </div>
    <blockquote type="cite">
      
      <p>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 ? <br>
      </p>
      <p>Yassine.<br>
      </p>
      <div class="gmail-m_-6805851436701688189moz-cite-prefix">On 3/10/19 11:40 AM, Monis Monther
        via dovecot wrote:<br>
      </div>
      <blockquote type="cite">
        
        <div dir="ltr">Hi Yassine,
          <div><br>
          </div>
          <div>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</div>
          <div><br>
          </div>
          <div>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?</div>
          <div><br>
          </div>
          <div>Thanks</div>
          <div>Monis</div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Sun, Mar 10, 2019 at
            11:13 AM Yassine Chaouche via dovecot <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div bgcolor="#FFFFFF">
              <p><br>
              </p>
              <div class="gmail-m_-6805851436701688189gmail-m_7397772123934652686moz-cite-prefix">On
                3/10/19 9:07 AM, Yassine Chaouche via dovecot wrote:<br>
              </div>
              <blockquote type="cite">
                <p>On 3/9/19 12:41 PM, Monis Monther via dovecot wrote:<br>
                </p>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div dir="ltr">Hi,
                      <div><br>
                      </div>
                      <div>We have an alias group named <a href="mailto:xyz@example.com" target="_blank">xyz@example.com</a>,
                        this alias group has 3 actual users <a href="mailto:a@example.com" target="_blank">a@example.com</a>, <a href="mailto:b@example.com" target="_blank">b@example.com</a> and <a href="mailto:c@example.com" target="_blank">c@example.com</a></div>
                      <div><br>
                      </div>
                      <div>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)</div>
                      <div><br>
                      </div>
                      <div>Is it possible to set auto response only
                        once, we tried the ( :days 1) option but still
                        all 3 respond back.</div>
                      <div><br>
                      </div>
                      <div>How can such a setup be achieved. (Single
                        auto response to an alias group)<br clear="all">
                        <div><br>
                        </div>
                        <div>CentOS 7.5</div>
                        <div>
                          <div>dovecot-pigeonhole-2.3.4.1-1.x86_64</div>
                          <div>dovecot-2.3.4.1-1.x86_64</div>
                        </div>
                        <div>postfix 2.10-1</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        -- <br>
                        <div dir="ltr" class="gmail-m_-6805851436701688189gmail-m_7397772123934652686gmail_signature">
                          <div dir="ltr">
                            <div>Best Regards</div>
                            <div>Monis</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <p>Hello Monis,</p>
                <p>As a workaround, you can turn <a class="gmail-m_-6805851436701688189gmail-m_7397772123934652686moz-txt-link-abbreviated" href="mailto:xyz@example.com" target="_blank">xyz@example.com</a> into an
                  actual mailbox and give <a class="gmail-m_-6805851436701688189gmail-m_7397772123934652686moz-txt-link-abbreviated" href="mailto:a@example.com" target="_blank">a@example.com</a>, <a class="gmail-m_-6805851436701688189gmail-m_7397772123934652686moz-txt-link-abbreviated" href="mailto:b@example.com" target="_blank">b@example.com</a> and <a class="gmail-m_-6805851436701688189gmail-m_7397772123934652686moz-txt-link-abbreviated" href="mailto:c@example.com" target="_blank">c@example.com</a> read-only
                  shared folder access. <br>
                </p>
                <p>Yassine.<br>
                </p>
              </blockquote>
              <p><br>
              </p>
              <p>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) :<br>
              </p>
              <p>root@messagerie[10.10.10.19] /usr/local/scripts/mail #
                cat sharemailbox.single <br>
                #!/bin/bash<br>
                <br>
                function create_link {<br>
                    l_src=$1<br>
                    l_dst=$2<br>
                    l_maildir=$3<br>
                    t_maildir=$(echo "$3" | tr . ․)<br>
                    t_dst="$l_dst"/.shared."$t_maildir"<br>
                    echo pointing "$t_dst" to "$l_src"<br>
                    echo ln -s "$l_src/" "$t_dst"  <br>
                    ln -s "$l_src/" "$t_dst"  <br>
                <br>
                }<br>
                <br>
                <br>
                function verifier_email {<br>
                    l_email=$1<br>
                    if ! searchmailbox.strict.sql $l_email >
                /dev/null<br>
                    then<br>
                        echo "l'utilisateur $l_email n'a pas pu être
                trouvé dans la base de données." >&2<br>
                        return 1<br>
                    fi<br>
                    return 0<br>
                }<br>
                <br>
                function set_acl {<br>
                    l_maildir=$1<br>
                    l_email=$2<br>
                    echo "giving $l_email access to $l_maildir"<br>
                    if [ ! -d $l_maildir ]<br>
                    then<br>
                        #.Sent isn't there yet.<br>
                        return<br>
                    fi<br>
                    acl_file="$l_maildir/dovecot-acl"<br>
                    echo "echo user=$l_email lr >> $acl_file"<br>
                    echo user="$l_email" lr >> "$acl_file"<br>
                    chown vmail:vmail "$acl_file"<br>
                }<br>
                <br>
                <br>
                if [ "$#" -lt 2 ]<br>
                then<br>
                    echo "usage : $0 <a class="gmail-m_-6805851436701688189gmail-m_7397772123934652686moz-txt-link-abbreviated" href="mailto:partage@domain.com" target="_blank">partage@domain.com</a> <a class="gmail-m_-6805851436701688189gmail-m_7397772123934652686moz-txt-link-abbreviated" href="mailto:user1@domain.com" target="_blank">user1@domain.com</a> <a class="gmail-m_-6805851436701688189gmail-m_7397772123934652686moz-txt-link-abbreviated" href="mailto:user2@domain.com" target="_blank">user2@domain.com</a> ... "<br>
                    exit 1<br>
                fi<br>
                <br>
                email="$1"<br>
                inbox="${email%@*}"<br>
                domain="${email#*@}"<br>
                src="/var/vmail/$domain/$inbox"<br>
                if ! verifier_email "$email"<br>
                then<br>
                    echo "exit at 1"<br>
                    exit 1<br>
                fi<br>
                <br>
                <br>
                shift <br>
                for share_email in $@<br>
                do<br>
                    if ! verifier_email $share_email<br>
                    then<br>
                        continue<br>
                    fi<br>
                    share_inbox="${share_email%@*}"<br>
                    share_domain="${share_email#*@}"<br>
                   
                share_maildir=/var/vmail/"$share_domain"/"$share_inbox"<br>
                    #echo grep "$share_email" "$src"/dovecot-acl <br>
                    if grep "$share_email" "$src"/dovecot-acl >
                /dev/null 2>&1<br>
                    then<br>
                        # then is executed when exit status is 0<br>
                        # exist status is 0 when there is a match<br>
                        echo "$share_email" has already access to
                "$email"<br>
                    else<br>
                        set_acl $src $share_email<br>
                        create_link $src $share_maildir $inbox<br>
                    fi<br>
                done<br>
                root@messagerie[10.10.10.19] /usr/local/scripts/mail #<br>
                <br>
              </p>
            </div>
          </blockquote>
        </div>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr" class="gmail-m_-6805851436701688189gmail_signature">
          <div dir="ltr">
            <div>Best Regards</div>
            <div>Monis</div>
          </div>
        </div>
      </blockquote>
    </blockquote>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Best Regards</div><div>Monis</div></div></div>