Koozali.org: home of the SME Server

Internal only

robey

Internal only
« 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

Michiel

Re: Internal only
« Reply #1 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

boris

Re: Internal only
« Reply #2 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.

Mike Pascual

Re: Internal only
« Reply #3 on: November 25, 2003, 03:08:48 PM »