Leonid Vasiliev wrote:
Hi!
We use last mimedefang-2.79 and postfix-3.1.4 and have problem with definition
of $QueueID vars in filter_begin.
Usually all work fine. It is the known problem or we not correctly use
mimedefang? If it is required, I'm ready to get and provide detailed log data.
We found similar discussion about this problem in postfix maillist:
http://postfix.1071664.n5.nabble.com/Queue-ID-availability-for-milters-on-multi-message-connections-sessions-td89741.html
Following the results of that thread I spent a while tracing MIMEDefang
code and sent in the attached patch which seemed to resolve the issue
without breaking anything.
-kgd
--- mimedefang-2.79/mimedefang.c 2015-04-28 15:23:51.000000000 -0400
+++ mimedefang-2.79.new/mimedefang.c 2017-03-30 17:21:01.280000000 -0400
@@ -853,6 +853,7 @@
if (data->qid && data->qid != NOQUEUE) {
free(data->qid);
data->qid = NOQUEUE;
+ data->qid_written = 0;
}
if (queueid && *queueid) {
data->qid = strdup_with_log(queueid);
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang