Use a more generally runnable socketname
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user