On Fri, May 16, 2014 at 08:42:38PM +0300, Marius Gologan wrote:
> Is it possible to apply smtp_reply_filter for some SMTP in transport_maps,
> not for all?
This is a per-transport setting, so to apply it to a particular set of
destinations you need to define a clone of the "smtp unix" transport in
master.cf, and add the override for that clone.
master.cf:
mysmtp unix ... smtp
-o smtp_reply_filter=$mysmtp_reply_filter
main.cf:
# Choose one:
# re = pcre:${config_directory}/
re = regexp:${config_directory}/
mysmtp_reply_filter = ${re}smtp_reply.re
smtp_reply.re:
/554 (.*)/ 454 ${1}
--
Viktor.