# disabled accounts don't even get local mail.
deny domains = +virtual_domains
- local_parts = ${if exists {${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}\
- {lsearch;${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}\
+ condition = ${if exists {${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}\
+ {lookup{${extract{1}{-}{$local_part}}}lsearch;${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}\
{}}
- message = ${lookup{$local_part}lsearch{${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}{$value}}
+ message = ${lookup{${extract{1}{-}{$local_part}}}lsearch{${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}{$value}}
deny local_parts = lsearch;/var/lib/misc/$primary_hostname/mail-disable
domains = +local_domains