Thanks
firsttime,setting bad user
/etc/postfix/main.cf
smtpd_sender_restrictions =
check_sender_access hash:/etc/postfix/sender_
reject_addr_check
/etc/postfix/sender_reject_addr_check
[email protected] REJECT
It's working well, baduser will be reject, after that, setting
"IP_match_domain" restrictions
/etc/postfix/main.cf
smtpd_sender_restrictions =
check_client_access cidr:/etc/postfix/enforce_ip_
match_domain
smtpd_restriction_classes =
example
example = check_sender_access hash:/etc/postfix/example.domain
reject
/etc/postfix/enforce_ip_match_domain
IP example
/etc/postfix/example.domain
example.com OK
Then This IP only can use @example.com as the sender address, at this time,
can not reject [email protected] send mail. If I disable
"IP_match_domain" restrictions, It's working again. So, I really want these
two restrictions working together
Thank you very much
Tom
2013/7/11 Noel Jones <[email protected]>
> On 7/10/2013 1:27 PM, Feel Zhou wrote:
> > Hello,my friend
> > This is Tom, I'm sending my greeting from China
> >
> > /etc/postfix/main.cf <http://main.cf>
> > smtpd_sender_restrictions =
> > check_sender_access hash:/etc/postfix/sender_reject_addr_check
> > /etc/postfix/sender_reject_addr_check
> > [email protected] <mailto:[email protected]> REJECT
> > So, [email protected] <mailto:[email protected]>,this email
> > address can not send mail via my mail server, It's working well
> >
> > last week, add another restrictions
> > ip must use @example.com <http://example.com> as sender address,
> > This IP can not use @anotherexample.com <http://anotherexample.com>
> > as sender address. It's can working
> >
> > The problem is " [email protected] <mailto:[email protected]>
> > REJECT", the first restrictions can not working, How can I let these
> > two restrictions working together, Thanks a lot
> >
> > TOM
>
>
> So you have two smtpd_sender_restrictions sections defined in
> main.cf and you want to combine them?
>
> Please show your "postconf -n" output and the main.cf rule that seem
> to be missing.
>
>
>
> -- Noel Jones
>