16 lines
610 B
Python
Executable File
16 lines
610 B
Python
Executable File
#!/usr/bin/env python3
|
|
import argparse
|
|
from dmarcreceiver.commands import receive_report, init
|
|
|
|
if __name__ == '__main__':
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('-b', dest='bounce_address', help='Forwarding address for messages that are not DMARC reports.')
|
|
parser.add_argument('-f', dest='config_file', default='/etc/dmarc-receive.conf', help='Configuration file')
|
|
parser.add_argument('-i', action='store_true', dest='init', default=False, help='Initialize database')
|
|
args = parser.parse_args()
|
|
if args.init:
|
|
init(args)
|
|
else:
|
|
receive_report(args)
|
|
|