> Am 29.03.2016 um 12:05 schrieb Boudewijn Dijkstra 
> <[email protected]>:
> 
> Hi,
> 
> It was a bit of a struggle, but I managed to set up a simple build 
> environment in OpenBSD 5.9 for creating OpenSMTPD filters.  I currently have 
> a filter in beta quality that performs an SPF check using libspf2 and inserts 
> a "Received-SPF:" header into the message.  Would the OpenSMTPD developers be 
> interested in integrating such a program into the Extras package?

Absolutely, yes. Send a diff or better a pull request, please :)
Make sure you follow coding style of existing filters.

> I am planning to build upon this to create a spammer-filter that resembles 
> OpenBSD's spamd (in greylisting mode), but based on domain names (and also 
> sender glob patterns).  

This sounds as you want to do to many things in a single filter.
You can easily chain filters, so try to do single simple tasks in a filter.
Keep it simple for a start and have a look into the existing ones, e.g. 
filter-regex 

> Alas the filter API doesn't provide a direct way to 'stutter' an entire 
> conversation, though of course it is possible to pause on every callback 
> event.  What do you think of the idea of a stutter mode in OpenSMTPD?

I use it already, see filter-pause. You may want to extend it, instead of 
re-inventing the wheel.
As mentioned above, you can chain things. 
Make sure you follow timeouts recommended in RFCs for stuttering.

> This spammer-filter needs an interface to a database where greylisting status 
> is kept and where policies are kept.  For a filter program, what would you 
> recommend for persistent storage?

This again sounds a bit over-engineered. Start simple, and add DB later. 
Do you really want to re-implement spamd, why?
There are already tables in extras which use various DBs for lookups,
have a look there for ideas.

> -- 
> (Remove the obvious prefix to reply privately.)
> Gemaakt met Opera's e-mailprogramma: http://www.opera.com/mail/
> 
> -- 
> You received this mail because you are subscribed to [email protected]
> To unsubscribe, send a mail to: [email protected]
> 


--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to