Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: robey on November 24, 2003, 05:45:28 PM

Title: Internal only
Post by: robey on November 24, 2003, 05:45:28 PM
Hi there,

I have an intresting request,

How would I setup 5 users to RECEIVE internal(local) email only. Yet still be able to SEND email out remotely.

Ive tried wrapping me brain around how to do this using groups n pseudonyms,ect. But its either not possible or my brain doesnt wrap that far.

im leaning toward a virtual domin being the solution, but,

if I setup a virtual domain , maybe called internal, will I be able to add/create users per domain, or will creating john@domain1 automatically create a john@internal ??

just looking for some input

thanks in advance
robey
Title: Re: Internal only
Post by: Michiel on November 24, 2003, 06:52:51 PM
Now why would you want to do that??

Anyway, you could achieve this with procmail. Sort all mail coming from *@yourdomain to the MAILDIR and the rest to /dev/null, or forward it to admin. For example (untested):

:0
^From:.*@mydomain
$HOME/Maildir/

:0
! admin@mydomain
Title: Re: Internal only
Post by: boris on November 24, 2003, 09:36:55 PM
If you don't point external DNS server to resolve MX record to your server from outside, nobody from Internet will be able to send your e-mail in the first place.
Title: Re: Internal only
Post by: Mike Pascual on November 25, 2003, 03:08:48 PM
use Darell May mailfront rules
http://wiki.contribs.org/index.php?module=article&view=10&MMN_position=33:33

Regards

Mike