* Matthew Kitchin via Postfix-users <postfix-users@postfix.org> [250522 13:04]:
> On Thu, May 22, 2025 at 11:58 AM Marvin Renich via Postfix-users
> <postfix-users@postfix.org> wrote:
> 
> >
> > What is «postconf sender_canonical_maps»?  Is it
> >
> > sender_canonical_maps = f...@example.com
> >
> > If so, you need to read «man 5 canonical».  sender_canonical_maps should
> > be a mapping table with each row containing a pattern and an address.
> > Frequently the value of sender_canonical_maps is something like
> > «hash:/etc/postfix/canonical» with that file containing the mappings.
> >
> 
> Sorry. Typo when I was cleaning it up. It should have said
> sender_canonical_maps = static:f...@example.com

If I am not mistaken, the static: returns f...@example.com for _all_
queries, as opposed to returning "" for queries matching
f...@example.com.  This would explain the behavior you are seeing.

Try using

sender_canonical_maps = hash:/etc/postfix/canonical

and have that file contain:

f...@example.com b...@example.com

(Don't forget to postmap /etc/postfix/canonical.)

...Marvin

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to