From: Magnus Bäck (no email)
Date: Sat Oct 01 2005 - 09:35:44 EDT
On Saturday, October 01, 2005 at 14:47 CEST,
Louis-Xavier Storme <> wrote:
> i have a postfix server on my network wich can relay mail from my
> users but i want that mails from the IP 100.100.100.1, which is inside
> my network= , can not be relay to the internet
> How can i do this ?
Assuming that 100.100.100.1 is in mynetworks, prepend your current value
of mynetworks with !100.100.100.1, for example like this:
mynetworks = !100.100.100.1, 100.100.100.0/24
The more generic approach is to use check_client_access, for example
like this:
smtpd_recipient_restrictions =
check_client_access hash:/path/to/file,
...
permit_mynetworks,
...
/path/to/file:
100.100.100.1 reject_unauth_destination
-- Magnus Bäck
|
|
|