summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2015-11-18 00:27:56 +0100
committerRuben Pollan <meskio@sindominio.net>2015-12-09 19:21:58 +0100
commit8fc1258ace65be2bb828bf302fc0661cdd128bd7 (patch)
tree705ff34d8d077eb5a3d752468161fe345082211d /pkg
parent3360cc70b7752f6ebedb56cb8ffc01b81cd640d6 (diff)
[feat] postfix lookup against couchdb for client smtp fingerprint
- Resolves: #4285
Diffstat (limited to 'pkg')
-rw-r--r--pkg/mx.conf.sample3
-rwxr-xr-xpkg/mx.tac8
2 files changed, 11 insertions, 0 deletions
diff --git a/pkg/mx.conf.sample b/pkg/mx.conf.sample
index c9ad0f8..a649b73 100644
--- a/pkg/mx.conf.sample
+++ b/pkg/mx.conf.sample
@@ -14,6 +14,9 @@ port=4242
[check recipient]
port=2244
+[fingerprint map]
+port=2424
+
[bounce]
from=<address for the From: of the bounce email without domain>
subject=Delivery failure \ No newline at end of file
diff --git a/pkg/mx.tac b/pkg/mx.tac
index 4ae08f2..42d40a8 100755
--- a/pkg/mx.tac
+++ b/pkg/mx.tac
@@ -24,6 +24,7 @@ from leap.mx import couchdbhelper
from leap.mx.mail_receiver import MailReceiver
from leap.mx.alias_resolver import AliasResolverFactory
from leap.mx.check_recipient_access import CheckRecipientAccessFactory
+from leap.mx.fingerprint_resolver import FingerprintResolverFactory
try:
from twisted.application import service, internet
@@ -57,6 +58,7 @@ except ConfigParser.NoSectionError:
alias_port = config.getint("alias map", "port")
check_recipient_port = config.getint("check recipient", "port")
+fingerprint_port = config.getint("fingerprint map", "port")
cdb = couchdbhelper.ConnectedCouchDB(server,
port=port,
@@ -79,6 +81,12 @@ check_recipient = internet.TCPServer(
interface="localhost")
check_recipient.setServiceParent(application)
+# Fingerprint map
+fingerprint_map = internet.TCPServer(
+ fingerprint_port, FingerprintResolverFactory(couchdb=cdb),
+ interface="localhost")
+fingerprint_map.setServiceParent(application)
+
# Mail receiver
directories = []
for section in config.sections():