Patrik B?t: > I'm writing a incoming policy daemon and want to look where the mail > ends up, if there is more then 1 recipient I'm out to just see > rcpt_count, that will not state the destinations.
Invoke the policy service in smtpd_recipient_restrictions, so that it will be invoked once per recipient. Use the "instance" attribute to recognize recipients that belong to the same mail delivery transaction. Invoke the policy service in smtpd_data_restrictions (or at end of data) to make a final ruling based on all the information that you have seen. > A solution might be a recipients array with all the recipients, this In order to keep Postfix scalabe, the Postfix SMTP server does not keep the entire list of recipients in memory, just like no Postfix programs stores the entire message in main memory. Wietse