Dnia  9.04.2024 o godz. 11:11:31 Paul van der Vlis via Postfix-users pisze:
When I want to make an alias, I try this in /etc/aliases:
"al...@domain.nl":  j...@domain.nl
But when I sent mail, I get a bounce with "user unknown".

When I do this in /etc/aliases:
alias:  j...@domain.nl
This works fine, but for all domains on this server. And that's not
what I want.

Do you know a way how to use aliases with an @ in it?

Op 09-04-2024 om 11:46 schreef Jaroslaw Rafa via Postfix-users:
You can't do it alias_maps= table (which by default points to /etc/aliases
file).
You should use virtual_alias_maps= table in main.cf file and define the
aliases there.

On 09.04.24 12:04, Paul van der Vlis via Postfix-users wrote:
Thanks, it works.

I thought I would not need this file anymore.

virtual_alias_maps and alias_maps have slightly different capabilities

virtual_alias_maps
- is processed when mail is being received
- can be used to rewrite ANY destination mail address (including non-local recipients) - can be (usually is) used at SMTP level to validate recipients
alias_maps
- is used when delivering mail to local recipients
- can include recipients from file
- can feed mail to a program or a file
- can change mail sender when "alias" is the recipient and "owner-alias" exists

Preferrably use virtual_alias_maps, but if you need any of alias_maps features, use that one.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I feel like I'm diagonally parked in a parallel universe.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to