I have a sender on my postfix host submitting mail via the sendmail (or mail) command.
I sometimes need to hold mail from that specific sender in the postfix Hold queue, instead of delivering it immediately.
IOW, I’m looking for the equivalent of:
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/*somefile*
where the entry in somefile is set to HOLD.
But, since this particular sender is submitting the mail via the sendmail (or mail) command, it’s not filtered by smtpd_sender_restrictions
Is there some other way I can hold this mail?