[imp] sendmail question

Pedro Leitao lists@leitao.com
Fri, 6 Sep 2002 18:48:49 +0000


Hi Guys,

Maybe I can get some help from you. I'm running Horde/Imp
and it's working fine. I have a request however to 
deny people from sending email to the internet. They 
shouldn't be allowed to send or receive email to the
internet, just to each other in their domain. There
would be exceptions however for some people who would 
be allowed to send and receive email to the internet. 
I'm running senmail 8.12.6 and have /etc/mail/access setup as follows;


localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
172.16                          RELAY

mydomain.com         OK

To:user@mydomain.com      OK
From:user@mydomain.com    OK

com                             ERROR "This user is not allowed to send or receive email from the outside."
net                             ERROR "This user is not allowed to send or receive email from the outside."
org                             ERROR "This user is not allowed to send or receive email from the outside." 
info                            ERROR "This user is not allowed to send or receive email from the outside."
biz                             ERROR "This user is not allowed to send or receive email from the outside." 


This example does not work. It does block email from coming and going to the internet,
but it also blocks email to go and come from those trusted users in the To:user and
From:user field.


Has anyone ever done this before? Thanks for the help in advance.

-Pedro