Bill Cole via Postfix-users:
> On 2026-01-16 at 20:17:48 UTC-0500 (Sat, 17 Jan 2026 12:17:48 +1100)
> Viktor Dukhovni via Postfix-users <[email protected]>
> is rumored to have said:
>
> > What is "/dev/null" supposed to mean there? That's not valid syntax in
> > the virtual(5) alias table. Mail to unknown virtual alias recipients is
> > automatically **rejected**, so there's no need for any discard logic.
>
>
> >From man 5 aliases:
>
> /file/name
> Mail is appended to /file/name. See local(8) for details of delivery
> to file. Delivery is not limited to regular files. For example, to
> dispose of unwanted mail, deflect it to /dev/null.
That syntax is valid for local aliases, not virtual_alias_maps.
In local aliases, Postfix recognizes a few special patterns:
"|command" execute the command with the message in stdin
/file/name append to the file
and more.
In all other contexts, these forms are not special and will result
in a "user unknown" error (assuming that users do not have names
like "|sed '1,/^$/d'|/bin/sh").
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]