afshin afzali: > > Postfix has no support for senders to specify "do not deliver > > this message after X" (i.e. no per-message expiration time). > > > Of course, for transports such as SMS or voice I need to use custom scrips > to wrap postfix to appropriate managers. In these scripts I will check > time-frame parameter to decide if the message should let to go or not. >
Fine. then you can do the content inspection there, too. Otherwise, see http://www.postfix.org/CONTENT_INSPECTION_README.html. Here are some tips if you use the pipe(8) delivery agent for SMS deliveries: - If the message is spam, report "successful delivery" (exit status 0) to Postfix, and Postfix will throw the message away. - If the message is too old, report "successful delivery" (exit status 0) to Postfix, and Postfix will throw the message away. - If the message is delivered, report "successful delivery" (exit status 0) to Postfix, and Postfix will throw the message away. - Otherwise, if the message can't be delivered, report a "temporary error" (exit status 75) to Postfix, and Postfix will try again later as configured with minimal/maximal_backoff_time. Wietse