This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lynx = require('lynx'); | |
var metrics = new lynx('localhost', 8125); | |
var hostname = require('os').hostname(); | |
// Connections per second | |
// Connections by source port (25, 80, ...) | |
exports.hook_lookup_rdns = function (next, conn) { | |
// Ignore connections from localhost | |
if (conn.remote_ip === '127.0.0.1' || | |
conn.remote_ip === '::1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Authentication against a MySQL server | |
var net_utils = require('./net_utils'); | |
var mysql = require('mysql'); | |
var crypto = require('crypto'); | |
exports.register = function() { | |
this.inherits('auth/auth_base'); | |
} | |
exports.hook_capabilities = function(next, connection) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@mail1-ec2 Haraka]# diff -uNr plugins.js.orig plugins.js | |
--- plugins.js.orig 2012-04-14 15:22:47.575558052 +0000 | |
+++ plugins.js 2012-04-16 17:56:01.915136250 +0000 | |
@@ -30,6 +30,7 @@ | |
this.full_paths = full_paths; | |
this.config = config; | |
this.hooks = {}; | |
+ this.server = {}; // set by server.js | |
}; | |