Greetings,

I'm attempting to use the following in master.cf to integrate with SpamAssassin:

smtp inet n - n - - smtpd -o content_filter=spamassassin
...
spamassassin unix - n n - - pipe flags=R user=nobody argv=/usr/bin/spamc -u ${user} -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

(along with spamassassin_destination_recipient_limit = 1 in main.cf)

I want to use the '-u' argument with spamc because each user needs a user_prefs file in his home directory. However, the '${user}' macro isn't always returning the desired value for this purpose, i.e. in the case where the To: address was an alias rather than the actual (OS) user name. Is there any way to determine the user name after the alias has been expanded?

PS: I'm trying to avoid the use of procmail in favor of dovecot-lda (and sieve).

Thank you,

--
Roy McMorran
Systems Administrator
MDI Biological Laboratory
mcmor...@mdibl.org

Reply via email to