Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started 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
-
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
-
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.
-
use Darell May mailfront rules
http://wiki.contribs.org/index.php?module=article&view=10&MMN_position=33:33
Regards
Mike