Initial import
This commit is contained in:
15
scripts/dmarc-receive
Executable file
15
scripts/dmarc-receive
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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)
|
||||
|
||||
Reference in New Issue
Block a user