Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
December 2019: OpenSMTPD and filters work, articles and goodies #31
I was able to port most of our special configuration/functionality to the new setup but "mail queue archiving" was missing (and using dovecot + sieve was not near to the smtpd enough as needed).
Soooo i read your latest smtp-filters man page, took the "filter-rspamd" sourcecode, stripped it nearly completely, used it as opensmtpd-go-filter-template and - created a mail queue archive filter.
It's working for me - so i'm fine with it - but there are some open questions and maybe legal issues i want to fix first of all because I took your sourcecode (filter-rspamd) as start template. I'm not sure what's the legal situation is here for the LICENSE + sourcecode. Yes, the code will be completely open and free.
Thank you for the awesome work!
Only files which borrow logic I wrote should bear my name and retain the ISC license, files not borrowing my code don't have to be under my copyright nor under the ISC license.
You're under no obligation to publish your source, but if you do the ISC license should always appear on files borrowing my code. If you intend to publish your source with a different license, the files that are covered by my license should display both mine and yours. Your license will then only cover parts that are not already licensed ISC (you might want to document which parts these are in your project).
Hope this clears things ?
Quite frankly I don't really care
Did a fast read because I'm not too comfortable with Go yet, no horrible bugs were seen.
You understood the API good however one thing is kind of incorrect, you're using the
It should work, that's what I use myself:
I fixed it in the filter-archive.go file.
Thanks, i think that's enough for now. If there are some bugs i'll see them with crashes.
Just to mention it, i had an idea:
filter-checksenderdomain seems to be too small to have a benefit and filter-eventlog is C code (but may be ported really easy to golang with less code because also most of the needed code still exists in filter-archive and filter-rspamd).
IF someone is interested into something like that, I will support such package (with e.g. writing code and using it in filter-archive). Otherwise i'm waiting until i'm in the need of it for myself (maybe because writing another filter/report addon and don't want to duplicate code and logic).
Fixed, thanks! I haven't realized the event in the documentation.
and removed the fixed link-auth question.
Could you take a look at opensmtpd-filters-go, I'm interested in feedback and it might serve some of your use-cases already. (Still does in-memory caching though)
@jdelic Looks interesting and it seems that i'm not the only one who is thinking about this!