Postfix, reject some system users?
With Postfix, I want to restrict some system users to be rejected while sending mail. I think I should disallow all users of the domain at first, then permit some in the db tables.
smtpd_sender_restrictons & smtpd_client_restrictions may be the very parameters to do this, so I configure: Code:
/etc/postfix/main.cf: Please tell me how to achieve this goal. Thanks. |
Did you make hashed files from the text files?
see man postmap |
Yes, of course.
# postmap -q zouben.org client_access REJECT # postmap -q roc@zouben.org sender_access ...(nothing) So I think the regular expression has some problems? |
If config like this:
Code:
/etc/postfix/main.cf For example, roc and Mu01 both the legal system user, so both of them can be authenticated by SASL. To Mu01, I use mutt + esmtp, and esmtp like this: Code:
hostname = mail.DOMAIN.com:25 FROM: Mu01@DOMAIN.com He will been reject. But if he mail as: FROM: roc@DOMAIN.com Well, he is permitted! How can Postfix authorize access based on SASL authentication? Thanks. |
All times are GMT -5. The time now is 09:10 PM. |