You can specify the first content_filter
(i.e amavis ) in your main.cf
file
#/etc/postfix/main.cf
#...
content_filter = smtp:[localhost]:10097
#...
or master.cf
file.
#/etc/postfix/master.cf
smtp inet n - n - - smtpd
-o content_filter=smtp:[localhost]:10097
You will anyway define another smtpd
server to receive the email from amavis. Specify your second content_filter there like
#/etc/postfix/master.cf
127.0.0.1:10098 inet n - n - 10 smtpd
-o content_filter=emailcrypt:dummy
# other options if any
Now the second filter can inject the mail back to the smtpd
server listening on 10099
. Hope that helps.