On 2026-01-16 at 13:02:10 UTC-0500 (Fri, 16 Jan 2026 10:02:10 -0800)
Randy Bush via Postfix-users <[email protected]>
is rumored to have said:

fwiw, my current hack is in `header_checks` a la

    /^To:.*[email protected]/              PASS
    /^To:.*[email protected]/              PASS
    /^To:.*[email protected]/              PASS
    ...
    /^To:.*@bogus.com/          DISCARD

A more elegant mechanism would be to do that in your virtual map. Use it to direct the valid addresses to their delivery points and discard the rest:

virtual_alias_maps=pcre:/etc/postfix/virtual

virtual:

        /.*[email protected]/      [email protected]
        /.*[email protected]/      [email protected]
        /.*[email protected]/      [email protected]
        /.*@bogus.com/          /dev/null

The RHS values are, obviously, invented placeholders. Replace with your actual targets for those aliases.

--
 Bill Cole
 [email protected] or [email protected]
(AKA @[email protected] and many *@billmail.scconsult.com addresses)
 Not Currently Available For Hire
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to