Add support for storing DKIM failed mails in a specified DiagnosticDirectory
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
- Install openrc init file for Gentoo and other openrc users
|
- Install openrc init file for Gentoo and other openrc users
|
||||||
- Add support for passing PID file name on command line to make it easier to
|
- Add support for passing PID file name on command line to make it easier to
|
||||||
keep system init and daemon configuration in sync
|
keep system init and daemon configuration in sync
|
||||||
|
- Add support for storing DKIM failed mails in a specified
|
||||||
|
DiagnosticDirectory
|
||||||
- Fix startup logging so it provides information at a useful time
|
- Fix startup logging so it provides information at a useful time
|
||||||
- Fix verify processing so missing (optional) i= tag doesn't cause the milter
|
- Fix verify processing so missing (optional) i= tag doesn't cause the milter
|
||||||
to fail (LP: #1842250)
|
to fail (LP: #1842250)
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ KeytableEd25519 implemented verified
|
|||||||
MinimumKeyBits implemented verified
|
MinimumKeyBits implemented verified
|
||||||
SignHeaders implemented verified by inspection
|
SignHeaders implemented verified by inspection
|
||||||
SigningTable implemented verified
|
SigningTable implemented verified
|
||||||
TemporaryDirectory
|
TemporaryDirectory implemented verified by inspection
|
||||||
|
|
||||||
Planned dataset type support (if needed):
|
Planned dataset type support (if needed):
|
||||||
mdb:
|
mdb:
|
||||||
|
|||||||
@@ -413,6 +413,7 @@ class dkimMilter(Milter.Base):
|
|||||||
self.dkim_domain = d.domain.lower()
|
self.dkim_domain = d.domain.lower()
|
||||||
else:
|
else:
|
||||||
if self.conf.get('DiagnosticDirectory'):
|
if self.conf.get('DiagnosticDirectory'):
|
||||||
|
tempfile.tempdir = self.conf.get('DiagnosticDirectory')
|
||||||
fd, fname = tempfile.mkstemp(".dkim")
|
fd, fname = tempfile.mkstemp(".dkim")
|
||||||
with os.fdopen(fd, "w+b") as fp:
|
with os.fdopen(fd, "w+b") as fp:
|
||||||
fp.write(txt)
|
fp.write(txt)
|
||||||
|
|||||||
@@ -211,9 +211,11 @@ header and the second to the body.
|
|||||||
.TP
|
.TP
|
||||||
.I DiagnosticDirectory (string)
|
.I DiagnosticDirectory (string)
|
||||||
Directory into which to write diagnostic reports when message verification
|
Directory into which to write diagnostic reports when message verification
|
||||||
fails. If not set (the default), these files are not generated. [Unlike
|
fails. If not set (the default), these files are not generated. The
|
||||||
OpenDKIM, this applies to all messages, not just on messages bearing a "z=" tag
|
directory must exist, dkimpy-milter will not create it and an error will be
|
||||||
because dkimpy does not yet support "z=".]
|
raised if it does not. [Unlike OpenDKIM, this applies to all messages, not
|
||||||
|
just on messages bearing a "z=" tag because dkimpy does not yet support
|
||||||
|
"z=" processing.]
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.I Domain (dataset)
|
.I Domain (dataset)
|
||||||
|
|||||||
@@ -211,9 +211,11 @@ header and the second to the body.
|
|||||||
.TP
|
.TP
|
||||||
.I DiagnosticDirectory (string)
|
.I DiagnosticDirectory (string)
|
||||||
Directory into which to write diagnostic reports when message verification
|
Directory into which to write diagnostic reports when message verification
|
||||||
fails. If not set (the default), these files are not generated. [Unlike
|
fails. If not set (the default), these files are not generated. The
|
||||||
OpenDKIM, this applies to all messages, not just on messages bearing a "z=" tag
|
directory must exist, dkimpy-milter will not create it and an error will be
|
||||||
because dkimpy does not yet support "z=".]
|
raised if it does not. [Unlike OpenDKIM, this applies to all messages, not
|
||||||
|
just on messages bearing a "z=" tag because dkimpy does not yet support
|
||||||
|
"z=" processing.]
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.I Domain (dataset)
|
.I Domain (dataset)
|
||||||
|
|||||||
Reference in New Issue
Block a user