From: Rocco Scappatura (no email)
Date: Fri Feb 13 2009 - 10:15:31 EST
I need to setup a mail server for outgoing email only. I clearly would
like to restrict access to my networks only.
Moreover, I would like to permit only to some envelope senders to relay
email trhough a such MTA. And no other envelope sender should be able to
relay trhough this MTA.
So the restriction classes are made so:
proxy:mysql:/etc/postfix/mysql-check-client-filter-access.cf <-- this
let me disable some content checking through filter (Amavisd-new). No
Please note that I use "check_client_access" restriction together with:
mynetworks = /etc/postfix/relay
to limit access to SMTP relay server per IP.
The "/etc/postfix/mysql-check-sender-access.cf" verifies if the envelope
sender is enabled for relay (I'm assuming that on my networks none
forges email sender).
The lookup return "OK" if sender is enabled. Nothing otherwise (the
sender should be rejected at the next restriction..).
This configuration doesn't work. What is conceptually wrong in my
Finally I would like to deny message delivery to my mail server.. It
should suffice to unset "relay_domains" or it is too restrictive doing