On Wed, Nov 24, 2010 at 08:53:45AM -0800, Bruce Perryman wrote: > Hello, > > This is, again, for mail server 101. > > It seems my postfix/dovecot server on ubuntu 10.10 is working well. However, > I notice that mail sent to 'mail@' is loaded with spam. > > Is it possible to disable the 'mail' user, or reject mail sent to > m...@? What should I do?
For domains listed in $mydestination if you want to accept mail for only a subset of users listed in /etc/passwd you need to change local_recipient_maps to include only the desired users. You can leave out the unix:passwd.byname entirely: local_recipient_maps = $alias_maps provided you list all valid local users in either the aliases(5) file: # Identity mapping for local_recipient_maps! joeuser: joeuser or the virtual(5) file: # Match bare joeuser in $mydestination or $myorigin, # rewrite to "@localhost" for local delivery. # joeuser joeu...@localhost # # OR if you prefer comment above and uncomment below # to rewrite to joeu...@$myorigin # # joeuser joeuser Provided a recipient is listed in either aliases(5) or virtual(5) mail will be accepted. Otherwise the recipient will be rejected (given the above setting of local_recipient_maps). -- Viktor.