My idea is quite simple - I have list of IP addresses that are only
sending spam and I need to collect that spam, instead of rejecting it,
so that I can report it to authorities.
Why do you want to do that?
I need it to report spam to authorities, they only react here if you
have actually received the spam.
accept from any for any deliver to maildir /var/spamdb
What am I doing wrong here?
You need to show your full and exact smtpd.conf
and the full and exact error message(s).
That's all there is to show (except for comments):
listen on lo0 port 9025
accept from any for any deliver to maildir /var/spamdb
# /usr/sbin/smtpd
/etc/mail/smtpd.conf:17: syntax error
warn: no rules, nothing to do
Line 17th is "accept" rule in smtpd.conf file.
By the way, I'm doing this on OpenBSD 5.3.
Thanks,
Karlis