Add sendmail style MTA policy query module

This commit is contained in:
Stuart D. Gathman
2020-07-04 22:29:28 -04:00
parent 1234869dd6
commit 7df236127b
6 changed files with 66 additions and 113 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class MTAPolicy(object):
self.acf = dbmopen(self.access_file,'r')
except:
print('%s: Cannot open for reading'%self.access_file)
syslog.syslog('%s: Cannot open for reading'%self.access_file)
raise
return self
def __exit__(self,t,v,b): self.close()