Christian R??ner: > I thought mail would arrive on smtpd where all the milters are > called and afterwards the mail would be handed over to cleanup, > which does canonical stuff. But it seems I am wrong :)
While Milters see SMTP commands as they happen, the first Milter inspects the message content and makes changes after the entire message has been received, then the second Milter inspects the content and makes its changes, and so on. After the entire message is received by Postfix, the message exists only in the Postfix queue file. There is no place where messages hang around between smtpd(8) and cleanup(8), and I wasn't going to change that for Milters. Wietse