I currently have this rewrite rule:
* "$header_from:" F
Which sets the envelope from address to match the From address (for correct DMARC alignment).
However, when Cron runs, I get this error in my paniclog:
Rewrite of firstname.lastname@example.org yielded unqualified address "root (Cron Daemon)"
I'm unsure why the From field doesn't contain the address, but I'm guessing the best solution to this would be to rewrite the From field if it is not a qualified address.
So, how would I match an unqualified address for rewriting? Or, feel free to suggest a better approach to handle this.