pymilter
pymilter copied to clipboard
Not setting client_* symbols when using Postfix
Hello,
I'm currently testing pymilter with Postfix and have noticed that the client_* symbols are not being set:
self.getsymval('{client_addr}') None
self.getsymval('{client_name}') None
self.getsymval('{client_port}') None
Postfix states that the symbols are set:
http://www.postfix.org/MILTER_README.html
Is this something that's introduced by pymilter or do I need to dig into postfix/libmilter? Thanks.
Before sdgathman asks, I use pymilter with postfix, but I don't use those macros, so I can't comment on this.
My apologies - figured out that the client_* macros aren't enabled by default in postfix and they have to be manually added to the milter_*_macros configuration directives. Example (in postfix main.cf):
milter_connect_macros = j {daemon_name} {daemon_addr} {client_addr} {client_name} {client_port} v _
This bug reminds me that this project needs a README-postfix.md. I will reopen as a documentation bug.