luben / postfix-utils Goto Github PK
View Code? Open in Web Editor NEWbounce sign/check, greylisting server with memcached backend
bounce sign/check, greylisting server with memcached backend
INSTALL ======= copy all files from perl directory to /etc/postfix/perl copy all files from init directory to /etc/init.d CONFIGURE ========= Edit conf files in /etc/postfix/perl Edit /etc/postfix/perl/bounce-sign and /etc/postfix/perl/bounce-check and change keys and domain regex on top of the files RUN === Provided are init scripts for Debian/Ubuntu systems. /etc/init.d/bounce-sign start /etc/init.d/bounce-check start /etc/init.d/greycached start IMPLEMENTATION ============== All the services are written as asynchronous tcp servers. Bounce services use select loop, greylisting service use high performance EV loop (epoll, kqueue etc.). PERFORMANCE =========== Single connection benchmark on common hardware (AMD Athlon(tm) 64 X2 Dual Core Processor 3800+) Rate sign check sign 20576/s -- -82% check 113636/s 452% -- POSTFIX CONFIGURATION ===================== bounce-sign: ----------- main.cf: sender_canonical_maps = tcp:127.0.0.1:10200 canonical_classes=envelope_recipient,header_recipient canonical_maps=regexp:/etc/postfix/cleanup-prvs.regexp cat /etc/postfix/cleanup-prvs.regexp # cleanup bounce-signed addresses /^([^+]+)\+prvs=[0-9]{4}[0-9a-f]{6}@((corp\.)?example\.com)$/i $1@$2 bounce-check: ------------ main.cf: Add "check_policy_service inet:127.0.0.1:10201" to smtpd_recipient_restrictions grycached: --------- Add "check_policy_service inet:127.0.0.1:10222" to smtpd_recipient_restrictions SEE ALSO ======== Another implementation and a good explanation of the principles of bounce signing: http://babel.de/batv.html AUTHOR ====== Luben Karavelov, "[email protected]" COPYRIGHT AND LICENSE ==================== Copyright (C) 2010-2011 by Luben Karavelov. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.