I am working on a Webmail solution, that uses Squirrelmail, Postfix,
and Dovecot. I am trying to block email between users, and I don't
seem to be able to do this.

I was having trouble blocking emails selectively, so now I just trying
to block all emails - to make sure it is working.

In my main.cf, I have:

smtpd_sender_restrictions =
  check_sender_access regexp:/etc/postifx/check_sender_access.regexp


The check_sender_access.regexp file consists of:

/./ REJECT
/.*/ REJECT


Shouldn't this reject all email that goes through the system?

My local users can still email eachother. It is as if Postfix is being bypassed.

Non-local users are being blocked, so I am beginning to wonder if
Postfix is not being used when mail is between local user, perhaps it
is a Dovecot issue?

Is there any way to trace how an email moves through Postfix? It would
be great to see what is happening when it encounters the
smtpd_sender_restrictions and smtpd_recipient_restrictions.

Reply via email to