Ram: > I want to redirect all mails that expire after maximal_queue_lifetime > to a program that will parse these mails then send an appropriate error > Can I do this with postfix ?
That is not documented, therefore that is not implemented. Postfix uses the same text for bounced mail as "too old" mail. See: http://www.postfix.org/bounce.5.html The default text is: failure_template = <<EOF Charset: us-ascii From: MAILER-DAEMON (Mail Delivery System) Subject: Undelivered Mail Returned to Sender Postmaster-Subject: Postmaster Copy: Undelivered Mail This is the mail system at host $myhostname. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system EOF Wietse