cody wrote: > How do i reject incoming e-mail's from remote servers to all local system > accounts? > I can list them in a map via smtpd_recipient_restriction but wonder if there > is an easier way to do that.
One of the standard configurations is as a "null client". http://www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client A null client is a machine that can only send mail. It receives no mail from the network, and it does not deliver any mail locally. A null client typically uses POP, IMAP or NFS for mailbox access. If that is what you want then setting up the configuration as described there is the way to do it. If you only want to prevent some local addresses from receiving mail while allowing the rest then a possible way is to add a check to smtpd_recipient_restriction: smtpd_recipient_restrictions = ... check_recipient_access hash:/etc/postfix/recipient-access, ... And in that file list addresses to be rejected. Use postmap to update the associated lookup table. m...@example.com REJECT User unknown in local recipient table s...@example.com REJECT User unknown in local recipient table al...@example.com REJECT User unknown in local recipient table b...@example.com REJECT User unknown in local recipient table Documentation on this. http://www.postfix.org/RESTRICTION_CLASS_README.html http://www.postfix.org/postconf.5.html#check_recipient_access And I am sure there are other alternatives too. Bob