I'm trying to send an email to my aliases in my system. This is how my aliases file look like:
cat aliases
users: user, user1
After I added the aliases I added it to postfix with postalias aliases
then I restarted my postfix service and then my dovecot service. I then tried to send an email to my alias with mutt
:
mutt -s "hello from root" users
But the email doesn't get deliver to either user or user1 and I get a email in the mailbox from when I sent the email:
The mail system
: unknown user: "users"
postconf alias_maps alias_database local_recipient_maps
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
postconf alias_maps alias_database local_recipient_maps
man 5 postconf
indicates that whitespace or comma is OK - my config has commas, and aliases work without a problem here, so that may be worth trying). Can you add the mail.log entries for sending a test message to an alias? (hint: grep for the destination address to get the queue-id, and then grep for the queue-id).