diff --git a/template.py b/template.py index 0f8679e..c3d0df0 100644 --- a/template.py +++ b/template.py @@ -17,6 +17,7 @@ except: import time import email import sys +import os from socket import AF_INET, AF_INET6 from Milter.utils import parse_addr if True: @@ -157,7 +158,9 @@ def background(): def main(): bt = Thread(target=background) bt.start() - socketname = "/home/stuart/pythonsock" + # This is NOT a good socket location for production, it is for + # playing around. I suggest /var/run/milter/myappnamesock for production. + socketname = os.path.expanduser('~/pythonsock') timeout = 600 # Register to have the Milter factory create instances of your class: Milter.factory = myMilter