I wrote a script to change the perms adding the execute for the sasl
group (which postfix user is member of).

#!/bin/bash
#
while read line; do
  setoctal=`echo $line |awk '{print $1}'`
  filename=`echo $line | awk '{print $2}'`
  if [ -f $filename ]; then
          octal=`stat -c '%a' "$filename"`
    if [[ "$octal" != "$setoctal" ]]; then
      chmod "$setoctal" "$filename"
    fi
  fi
done</root/saslauthdfileperms.txt

/root/saslauthdfileperms.txt:
710 /var/spool/postfix/var/run/saslauthd/cache.flock
710 /var/spool/postfix/var/run/saslauthd/cache.mmap
777 /var/spool/postfix/var/run/saslauthd/mux
710 /var/spool/postfix/var/run/saslauthd/mux.accept
710 /var/spool/postfix/var/run/saslauthd/saslauthd.pid

This with a crontab & the suggested systemctl edit option of group=sasl;
will resolve the issues I am facing. Otherwise postfix cannot check
against saslauthd service to verify account is valid instead it fails
and assumes invalid userand & password.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078851

Title:
  saslauthd wrong permission of /var/spool/postfix/var/run/saslauthd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cyrus-sasl2/+bug/2078851/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to