I have postfix set up and a local user myuser
.
An email to [email protected]
is arriving without problems, so the basic postfix setup is fine.
I have then set up virtual alias:
[email protected] [email protected]
and in main.cf:
mydestination: mydomain, localdomain
virtual_alias_maps = hash:/path_to_virtual_aliases
I also created the database with postmap /path_to_virtual_aliases
When I send an email to [email protected]
, I get this error:
postfix/local[2341]: error: open database /etc/aliases.db: No such file or directory
postfix/local[2341]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
postfix/local[2341]: warning: hash:/etc/aliases is unavailable. open database /etc/aliases.db: No such file or directory
postfix/local[2341]: warning: hash:/etc/aliases: lookup of 'myuser' failed
postfix/local[2340]: F1D9C233E9A: to=<myuser@localdomain>, orig_to=<[email protected]>, relay=local, delay=2239, delays=2239/0.03/0/0.02, dsn=4.3.0, status=deferred (alias database unavailable)
Why does it try to look up myuser, when it is already a native user?
And if it really has to look it up, will the problem be fixed by setting up /etc/aliases? And if yes, how to do so?
newaliases
command?