Feel Zhou:
> Hello,my friend
> This is Tom, I'm sending my greeting from China
> 
> /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
> So, [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 as sender address, This IP can not use @
> anotherexample.com as sender address. It's can working
> 
> The problem is " [email protected] REJECT", the first restrictions can
> not working, How can I let these two restrictions working together, Thanks
> a lot

Postfix can implement "sender=X AND client=Y", but doing this is
hard because Postfix has no "AND" command.  There are some examples
http://www.postfix.org/RESTRICTION_CLASS_README.html for how to
implement combined check_XXX_access and check_YYY_access lookups.

It looks like you want to accept sender=example.com only from 
hosts in example.com. I did that long ago with aol.com, yahoo.com
etc. but this was causing too many problems.

For me, DNSBL's, DNSWL's and postscreen (with whitelist threshold)
stop practically all the spam that I can stop without deep content
inspection.

        Wietse

Reply via email to