Steve Dondley:
> I'm using system users on my machine.
>
> I've got the following in /etc/postfix/main.cf:
>
> virtual_alias_maps = hash:/etc/postfix/virtual
>
> I've got the following in my alias table at /etc/postfix/virtual:
>
> [email protected] s
>
> I've got the following in master.cf:
>
> user=debian-spamd argv=/usr/bin/spamc -u ${user} -e /usr/sbin/sendmail
> -oi -f ${sender} ${recipient}
>
> When an email is sent to "[email protected]", spamassassin does not do
> any bayes filtering on the email. Presumably it's because the user
> "steve" does not exist on the system and is only a virtual user. So no
> bayes database exists for this user.
>
> How might I configure postfix so that when an email is sent to
> [email protected] the it gets checked against the bayes database located
> at /home/s/.spamassassin?
By doing the virtual_alias_maps *before* instead of after the content
filter, so that the content filter sees the final envelope recipient.
This is done by by NOT having ("receive_override_options" with
"no_address_mappings") before the content filter and by having
("receive_override_options" with "no_address_mappings") after the
content filter. See http://www.postfix.org/FILTER_README.html for
a few examples.
Wietse