Skip to content

Commit

Permalink
Fix maildroprelay import
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlander committed May 19, 2014
1 parent a9fb75c commit 81dfab5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/slimta-mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

# {{{ _start_inbound_relay()
def _start_inbound_relay(args):
from slimta.maildroprelay import MaildropRelay
from slimta.relay.pipe import MaildropRelay

relay = MaildropRelay(executable='/usr/bin/maildrop')
relay = MaildropRelay()
return relay
# }}}

Expand Down Expand Up @@ -48,11 +48,11 @@ def _start_inbound_edge(args, queue):
from site_data import inbound_banner, deliverable_addresses

class EdgeValidators(SmtpValidators):

@check_dnsbl('zen.spamhaus.org', match_code='520')
def handle_banner(self, reply, address):
reply.message = inbound_banner

def handle_rcpt(self, reply, recipient):
if recipient not in deliverable_addresses:
reply.code = '550'
Expand Down Expand Up @@ -132,7 +132,7 @@ class EdgeValidators(SmtpValidators):
@check_dnsbl('zen.spamhaus.org')
def handle_banner(self, reply, address):
reply.message = outbound_banner

def handle_mail(self, reply, sender):
print self.session.auth_result
if not self.session.auth_result:
Expand Down

0 comments on commit 81dfab5

Please sign in to comment.