[MacPorts] #58560: dovecot2 authorization failure

MacPorts noreply at macports.org
Thu Jun 6 19:36:33 UTC 2019


#58560: dovecot2 authorization failure
-----------------------+--------------------
  Reporter:  braslau   |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  dovecot2  |
-----------------------+--------------------

Comment (by braslau):

 Thank you for the information.

 This seems like a bug. I do not have last_valid_gid set in any
 configuration file and setting it explicitly to last_valid_gid=100 as
 suggested does not allow authorization. Its default value (of 0) should
 not block users.

 What if the user's primary group is something greater, as is the case on
 my network (where the user group is 1000)?

 The solution, I have found, is to set
 {{{
 first_valid_gid=1000
 last_valid_gid=0
 }}}
 thus limiting use to my network users.

 Setting just first_valid_gid causes dovecot to fail to run;
 explictly setting last_valid_gid=0 (or to 1000) seems to be necessary.

 Would not a better solution be to pass only the primary gid, or to
 truncate the list of gid to a valid maximum number of entries? Maybe that
 is an upstream fix.

 Alan

-- 
Ticket URL: <https://trac.macports.org/ticket/58560#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list