Friday, October 29, 2021

Re: use pfctl to reread /etc/mail/spamd-white table

On 10/28/21 11:55, Harald Dunkel wrote:
> Hi folks,
>
> my pf.conf contains
>
>     table <spamd-white>     persist file "/etc/mail/spamd-white"
>
> I understand that I can add and delete hosts from the table manually
> later, but on very large tables this is pretty painful. There is a high
> risk that the table has just been flushed and is not up-to-date yet,
> while the next EMail comes in.
>
> Would it be possible to add some magic to pfctl -T to reread the whole
> table from file and hand it off to pf in an atomic operation?

How do you maintain the contents of the /etc/mail/spamd-white file?

As in, do you have a cron job or similar that dumps the contents of the
table there?

If you have a set of hosts or networks that you want to not subject to
spamd's gentle treatments, I suspect what you really want is to maintain
a static-ish nospamd, see the spamd man page (and for that matter a not
yet totally outdated article of mine,
https://bsdly.blogspot.com/2018/11/goodness-enumerated-by-robots-or.html)

All the best,
Peter

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.

No comments:

Post a Comment