varad gupta:
> >>> Kindly advise how to replace "text1" with "text2" for multiple
> >>> occurences of "text1" in the same line
>
> Can you suggest any way in which my requirement can be achieved (apart
> from writing my own filter?)
Like this:
/etc/postfix/main.cf:
header_checks = tcp:127.0.0.1:port
or:
/etc/postfix/main.cf:
header_checks = socketmap:inet:127.0.0.1:port:mapname
Where a program listens on the specified port that implements the
Postfix tcp_table protocol (see "man tcp_table") or the Sendmail
socketmap protocol (ask your favorite search engine).
Socketmap support is introduced with Postfix 2.10.
socketmap (read-only)
Query a Sendmail-style socketmap server. The name of the table
specifies inet:host:port:socketmap-name for a TCP-based server, or
unix:pathname:socketmap-name for a UNIX-domain server. In both cases
socketmap-name is the name of the socketmap.
Wietse