pgala: > but when i use generic file rewriting is field "mail from" and "recipient". I > want disabled recipient rewriting and rewrite only field "mail from". Is it > possible? > .* wildcard is ok when i use regexp, i tested it.
The use case of smtp_generic_maps is to replace all "internal" addresses, whether they are sender or (carbon-copy) recipient, with "external" addresses. Quote from the generic(5) manpage: Typically, one would use the generic(5) table on a system that does not have a valid Internet domain name and that uses something like localdo- main.local instead. The generic(5) table is then used by the smtp(8) client to transform local mail addresses into valid Internet mail addresses when mail has to be sent across the Internet. See the EXAM- PLE section at the end of this document. What is your use case to replace lots of unrelated domain names with one external domain name? Wietse