forked from slimta/python-slimta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite_data.py
More file actions
19 lines (14 loc) · 677 Bytes
/
Copy pathsite_data.py
File metadata and controls
19 lines (14 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from socket import getfqdn
from itertools import product
# Configures the banners to use.
fqdn = getfqdn()
inbound_banner = '{0} ESMTP example.com Mail Delivery Agent'.format(fqdn)
outbound_banner = '{0} ESMTP example.com Mail Submission Agent'.format(fqdn)
# Calculates a list of all deliverable inbound addresses.
deliverable_domains = ['example.com']
deliverable_users = ['user', 'postmaster', 'abuse']
deliverable_addresses = set(['@'.join(pair) for pair in
product(deliverable_users, deliverable_domains)])
# Dictionary of acceptable outbound credentials.
credentials = {'user@example.com': 'secretpw'}
# vim:et:fdm=marker:sts=4:sw=4:ts=4