> >That's probably the local_recipient_maps setting. You can just
> >disable it
>
> I don't currently have it enabled and I disabled the errors on unknown
> users. How can I set postfix to use the database when checking for
> valid users?
This is what we have, with postfix+postgres:
# grep local_recipient_maps /etc/postfix/main.cf
local_recipient_maps = proxy:pgsql:/etc/postfix/aliases.cf
# cat /etc/postfix/aliases.cf
user = postfix
password = <removed>
dbname = dbmail
hosts = forever.kci.net
table = aliases
select_field = deliver_to
where_field = alias
Note, this is the exact same lookup file we use for postfix
aliases lookups in the database.
> Also, I can't seem to get spamassasin working. I was using it with the
> following line:
> spamfilter unix - n n - - pipe
> flags=Rq user=spamfilter argv=/usr/bin/postfixfilter -f
${sender} --
> ${recipient}
>
> but since I have added the dmail line just below it, it seems to ignore
> spamassasin alltogether.
Offhand, I don't remember anything in your config that called
spamassasin .. your content_filter pointed to a virus scanner, didn't
it? That's how our setup works - we have amavis run from the
content_filter line, and it calls spamassasin itsself... your's is
a different setup if you were using a master.cf entry to call it.
Perhaps you used to have a transport map entry pointing to spamassasin,
and now have it pointing to dbmail?
Jn
--
Jesse Norell
jesse (at) kci.net