S P Arif Sahari Wibowo wrote:
On Sat, 9 Aug 2008, Ralf Hildebrandt wrote:
Yes.

Thanks Ralf! Will it do it with less resources as well? It seems so, since that message does not need to go through 2 postfix smtpd process.

Yes, a policy service is always* less resource intensive than a content_filter or proxy.

*assuming well written software doing about the same thing.

Also body of the messages are not passed - but in the other hand the script will be contacted multiple time during receiving an e-mail, right?

If the service is called during smtpd_{client, helo, sender, recipient}_restrictions, it will be called once for each recipient.

If called during smtpd_data_restrictions, it will be called once per message, but no recipient info will be reported if the original message had multiple recipients.


It doesn't need to process the body of the email

Just curious, since queue_id is passed, is it possible for the script to actually read the email body in postfix queue?


No. The queue file format is intentionally undocumented to discourage direct manipulation of queue files. The queue file format can change between postfix versions without warning. Direct manipulation of queue files is unsupported and not recommended.

Of course, a more basic problem is that the queue file doesn't yet exist when the policy service is called from smtpd_{client, helo, sender, recipient, data}_restrictions.

Thanks!


--
Noel Jones

Reply via email to