I'm running postfix + dovecot + spamassassin and I achieved to get
everything working except
make spamassassin understand that I'm using virtual users and because
of that it should create
user_prefs files for each user (as in, in each user's dir) rather than
using a single file.

That's what my systemd/spamassassin.service looks like: (shortened)

ExecStart=/usr/bin/vendor_perl/spamd -d --pidfile /var/run/spamd.pid
-c --username postfix -x --virtual-config-dir=/home/vhosts/%d/mail/%l

And this is my postfix master.cf (shortened)

dovecot-spamassassin   unix  -       n       n       -       -       pipe
flags=DRhu user=dovecot:the_chosen_ones
argv=/usr/bin/vendor_perl/spamc -e /usr/lib/dovecot/deliver -d
${recipient}

According to docs SA should create use_prefs for each user in it's own
dir, e.g: /home/vhosts/mydomain.com/mail/alex,
but I'm getting instead /home/vhosts//mail// in /var/log/mail.log, so
the variables aren't expanded.

Why is this happening? What am I missing?

Regards!



alexandernst

Reply via email to