Is there any chance of the policy server in the future adding a feature to include the mail body in the attributes?

A setting in main.cf:enable_policy_body=yes to include or not include the body for those who don't need/want the extra data sent. Maybe also separate out body vs attachment allowing us to choose to get one or the other or both.

Send the body line by line using the same attribute name so a script can process line by line like a header check withing having to store the entire body at once avoiding large mail memory issues.

    request = smtpd_access_policy
    protocol_state = RCPT
    protocol_name = ESMTP
    ...
    policy_context =
    body = This is the first line in the email body.
    body = And this is the 2nd.
    body = And 3rd, etc.

This way we can easily create scripts to act as a poor man's milter.
Or is there something im unaware of that makes this a terrible idea?

Reply via email to