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 -firstname.lastname@example.org -s127.0.0.51 -p10024 email@example.com
Obviously Amavis will blindly deliver it back into Postfix, and delivery to firstname.lastname@example.org will be attempted….