azusa_tar...@yahoo.co.jp:
> Hi,
> I'm trying to implement "Expires" header (Defined by RFC-5536).
> I want Postfix bounce the expired mails.
> At first, I use content filter to check Expires date is valid.
> 
> However, content filtering can be done only one time when into the mail queue.
> (It can't be done when Postfix resend deferred emails)

Extract the expiration time from the header and store it as 'named
attribute', just like MAIL_ATTR_ENCODING. Then have the queue manager
read it ffrom queue file just like MAIL_ATTR_ENCODING.

You may want to do some sanity checks such that Postfix will
not accept mail that is already expired.

        Wietse

Reply via email to