Name

forward_expansion_filter

Possible values:

characters

Default:

(see example)

When assigning path names to the forward_path parameter, you can use macros such as $user that are expanded by Postfix to determine the path for the current message. The forward_expansion_filter parameter specifies a list of characters that should be allowed when expanding macros. Characters that are not permitted are replaced by underscores.

Example:

forward_expansion_filter = 
 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyz\
 ABCDEFGHIJKLMNOPQRSTUVWXYZ

Get Postfix: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.