Re: Internal email only...?

Brian Candler <[email protected]>
Newsgroups gmane.mail.sqwebmail
Message-ID <[email protected]>
On Tue, Feb 03, 2004 at 03:57:20PM -0500, Jeff Gordon wrote:
> I have qmail (netqmail 1.04), vpopmail 5.3.30, and SqWebMail 3.6.2
> serving a double handful of virtual-host domains on a particular
> RH 8 server.
> 
> I need now to set up one domain on the same server, as an "internal
> only" mail center, one that will allow users of the domain to send
> messages to each other but will _disallow_ sending mail outward to
> other Internet domains.
> 
> Any tips, please, on how to accomplish that?

Configure your MTA with a policy rule which says bounce mail where sender
address is *@domain1.com but the destination is not *@domain1.com.

If you are using an MTA which is not sufficiently flexible to achieve this,
then install exim :-)

If you're only concerned about mail from webmail users, then note that all
outgoing mail is sent via the script 'sendit.sh'. You could therefore
replace this script with something else which implements your policy for
you, e.g. a small perl program.

Regards,

Brian.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.