Hi, I'm grateful to all of you that helped me to solve this problem.
The check_sender_access on smtpd_sender_restrictions including my domain with REJECT solved my problem completely as all my clients connect using SASL. So I permited_sasl and then I rejected my domain from outside with check_sender_access. Thanks, Gabriel. On Thu, Dec 4, 2008 at 2:46 PM, mouss <[EMAIL PROTECTED]> wrote: > Brian Evans - Postfix List a écrit : > > Gabriel Hahmann wrote: > >> Hi all, > >> > >> I'm new to the list and have a problem with my mail system. Recently > >> I'm receiving a lot of spam emails coming from the internet but the > >> sender is a user from my domain. Then I tried the same thing directly > >> from other system, as described below: > >> > > > > The answer to your question is as such. > > Add 'check_sender_access pcre:/path/to/config/restrict_internal_domain' > > to the end of smtpd_sender_restrictions > > (You may use regexp instead of pcre if your postfix does not support it, > > use 'postconf -m' to check) > > > > /path/to/config/restrict_internal_domain: > > /.*\.example.com/ REJECT external email with an internal sender > address > > > > that should be > /(^|\.)example\.com$/ REJECT ... > > but there is no need to use pcre. a hash/cdb/... map is enough: > .example.com REJECT ... > example.com REJECT ... > > > > > [snip] >