diff options
author | Kali Kaneko <kali@leap.se> | 2015-12-02 14:44:57 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-12-02 14:44:57 -0400 |
commit | 24f2bb2b4cef60598ca5e924eb7e3788929daaae (patch) | |
tree | c3ccd6238bd7d51332e7377880beb08de016ed07 /pkg/leap_mx.tac | |
parent | 80b80d34818840ea60f57c4580db19527dd4ea0c (diff) | |
parent | 0226ccbc7a8b43e5d8ea9825a5a9aebb6c0c5755 (diff) |
Merge branch 'develop' into debian/platform-0.8
Diffstat (limited to 'pkg/leap_mx.tac')
-rw-r--r-- | pkg/leap_mx.tac | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pkg/leap_mx.tac b/pkg/leap_mx.tac index 7da59cf..6f7b104 100644 --- a/pkg/leap_mx.tac +++ b/pkg/leap_mx.tac @@ -68,19 +68,18 @@ cdb = couchdbhelper.ConnectedCouchDB(server, application = service.Application("LEAP MX") # Alias map -alias_map = internet.TCPServer(alias_port, AliasResolverFactory(couchdb=cdb)) +alias_map = internet.TCPServer( + alias_port, AliasResolverFactory(couchdb=cdb), + interface="localhost") alias_map.setServiceParent(application) # Check recipient access -check_recipient = internet.TCPServer(check_recipient_port, - CheckRecipientAccessFactory(couchdb=cdb)) +check_recipient = internet.TCPServer( + check_recipient_port, CheckRecipientAccessFactory(couchdb=cdb), + interface="localhost") check_recipient.setServiceParent(application) # Mail receiver -mail_couch_url_prefix = "http://%s:%s@%s:%s" % (user, - password, - server, - port) directories = [] for section in config.sections(): if section in ("couchdb", "alias map", "check recipient", "bounce"): @@ -89,6 +88,5 @@ for section in config.sections(): recursive = config.getboolean(section, "recursive") directories.append([to_watch, recursive]) -mr = MailReceiver(mail_couch_url_prefix, cdb, directories, bounce_from, - bounce_subject) +mr = MailReceiver(cdb, directories, bounce_from, bounce_subject) mr.setServiceParent(application) |