[email protected] a écrit : > Hi, > Please do not top post. put your replies after the text you reply to.
>[snip] > > > so i am running a virtual setup using mysql for maps. when i try to send > an email to root it gets sent to [email protected], since <root> doesn't have a domain part, postfix adds @$myorigin. by default: myorigin = $myhostname If you set myorigin = $mydomain, the <root> will become <[email protected]> > this email > address doesnt exist, it is a local root account, so i have setup an > alias in /etc/aliases which is root: [email protected] but > this doesnt seem to be working. mail.domain.tld ($myhostname) is not listed in mydestination, so the mail won't be delivered locally, and thus /etc/aliases is not used in this case. Instead of using /etc/aliases, use virtual_alias_maps: [email protected] [email protected] for safety, add also: [email protected] [email protected] (so that if you set myorigin=$mydomain, things will continue to work). PS. virtual_alias_maps apply to _all_ mail (whether local, virtual, relay and even mail destined to external domains). > [snip]
