Hello all, I'm running a mail server with this setup: Debian based postfix + spamassassin (called using spamass-milter) and I have a config problem I cannot fix by myself...
All the users are virtual users (using a sql database) and both delivery and per-user spamassassin prefs/bayes are working just fine. Unfortunately I have a problem with mailbox aliases. They works just fine and the mail is correctly delivered to the main mailbox, but I would like spamassassin to use the main mailbox user prefs and bayes.... For this reason I've tried adding the "-x" option in /etc/default/spamass-milter, but it breaks everything, and no user prefs/bayes works anymore. This are some config lines from my setup, but I can provide more info if needed. I suppose I could switch to sql preferences for spamassassin, but I will do this only if really needed... Below I've changed my real domain/mailboxname with MYDOMAIN.COM and MYEMAIL, nothing else changed. In /etc/default/spamassassin I've set this options OPTIONS="--create-prefs --max-children 5 --helper-home-dir -x -u vmail --virtual-config-dir=/var/vmail/%d/%l/.spamassassin" and in /etc/default/spamass-milter OPTIONS="-u spamass-milter -e MYDOMAIN.COM -i 127.0.0.1" All of this is called by postfix with in /etc/postfix/main.cf smtpd_milters = unix:/spamass/spamass.sock milter_connect_macros = j {daemon_name} v {if_name} _ in /etc/postfix/master.cf maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} ********** without "-x" works just fine OPTIONS="-u spamass-milter -e MYDOMAIN.COM -i 127.0.0.1" Jan 6 11:27:57 mail spamd[18251]: spamd: using default config for myem...@mydomain.com /var/vmail/MYDOMAIN.COM/MYMAIL/.spamassassin/user_prefs Jan 6 11:27:57 mail spamd[18251]: spamd: processing message <878284e3fd78d1feec2e5e79a4ec947a.Seasickness.Cellaret.MYDOMAIN.COM> for myem...@mydomain.com:5000 Jan 6 11:27:57 mail spamd[18251]: spamd: identified spam (22.3/5.0) for myem...@mydomain.com:5000 in 0.3 seconds, 6638 bytes. ********** with "-x" nothing works OPTIONS="-u spamass-milter -x -e mydomain.com -i 127.0.0.1" Jan 6 11:23:39 mail spamd[18251]: spamd: using default config for spamass-milter: /var/vmail///.spamassassin/user_prefs Jan 6 11:23:39 mail spamd[18251]: spamd: processing message (unknown) for spamass-milter:5000 Jan 6 11:23:39 mail spamd[18251]: spamd: clean message (3.7/5.0) for spamass-milter:5000 in 0.3 seconds, 272 bytes. and I've got also a "probe" mail locally delivered to spamass-mil...@mydomain.com. Can someone help me with this config? I'm really stuck with no ideas... Thanks in advance, Raffaele