Note to self … if you need to pass a “doctored” email into Amavis, that’s running as a daemon on the local computer, without it going IN through Postfix (and getting mangled) ….
Assuming Amavisd is listening on 127.0.0.51, port 10024 for incoming mail (that would normally be fed in from Postfix)
Usage example :
cat test.eml | mini_sendmail -f<smtp-from-address> -s127.0.0.51 -p10024 <smtp-to-address>
cat test.eml | mini_sendmail -email@example.com -s127.0.0.51 -p10024 firstname.lastname@example.org
Obviously Amavis will blindly deliver it back into Postfix, and delivery to email@example.com will be attempted….