Mohammad Ghobadi:
> i trying figure out how local_recipient_maps work ...
As documented local_recipient_maps lists the users for the domains
in $mydestination (and some stuff with $inet_interfaces that is
not relevant for your question).
> local_recipient_maps = hash:/etc/postfix/userlist
> and
> postmap hash:/etc/postfix/userlist
> service postfix restart
>
> /etc/postfix/userlist :
> alex exists
> amin exists
>
> i expect that mail for alex@localhost. and amin@localhost. delivered to
> /var/spool/mail and mail's to other user's of my system (like root or test)
> bounced (or rejected)
Only if localhost is listed in $mydestination.
Wietse