On Sat, May 21, 2022 at 10:07:57AM -0400, post...@ptld.com wrote: > What is the best option for changing the recipient address case such > as forcing all to be lowercase? > > > All you need is a case folding regexp before your real virtual table. > > > > /etc/postfix/main.cf: > > virtual_maps = > > regexp:/etc/postfix/virtual_regexp > > mysql:/etc/postfix/mysql-virtual.cf > > > > /etc/postfix/virtual_regexp: > > /^(.*[A-Z].*)$/ $1 > > > > It's a little disgusting, but I expect that it would work. > > Wietse > > I found this from 2003, is it still the best/only way? > Im using virtual_mailbox_maps instead of virtual_maps.
This no longer works, because regex table keys are no longer folded to lower case, so the table in question leaves the input unchanged, and also prevents any later table lookup from taking effect. -- Viktor.