pymilter icon indicating copy to clipboard operation
pymilter copied to clipboard

Not setting client_* symbols when using Postfix

Open amartin-git opened this issue 3 years ago • 3 comments

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.

amartin-git avatar Jan 27 '22 20:01 amartin-git

Before sdgathman asks, I use pymilter with postfix, but I don't use those macros, so I can't comment on this.

kitterma avatar Jan 27 '22 21:01 kitterma

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 _

amartin-git avatar Jan 27 '22 23:01 amartin-git

This bug reminds me that this project needs a README-postfix.md. I will reopen as a documentation bug.

sdgathman avatar Jan 28 '22 00:01 sdgathman