Hua Young via Postfix-users:
> 1. can sender be a specified email such as u...@outlcck.net?

Yes, according to 
https://www.postfix.org/access.5.html#email_address_patterns_in_indexed_tables

> 2. in postfix setup, how can I reject all messages to a local user (this 
> user has a valid dovecot account)?

With check_recipient_access:

/etc/postfix/main.cf:
    smtpd_recipient_restrictions =
        permit_mynetworks
        reject_unauth_destination
        check_recipient_access hash:/etc/postfix/recipient_access
        ....other stuff...

/etc/postfix/recipient_access:
     u...@example.com reject

This rejects only mail for that recipient from remote systems.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to