Koozali.org: home of the SME Server

Configure Qmail for Local mail only for some users

Graeme Fleming

Configure Qmail for Local mail only for some users
« on: February 02, 2004, 04:40:43 PM »
Hi all

I need to be able to tell Qmail that an indivudual user can only send/receive local email (for their domain); I am hoping there is some setting I can use in each users .qmail file so I can control this on a per user basis.

I found this with Googles help:

If you want to have private .qmail files which only work on local mail (e.g. a fax gateway), you can put the following test at the beginning of it (all on one line): | if [ -n "sed -n -e '/invoked from network/p' -e 2q" ]; then exit 100; else exit 0; fi That is, peek at the headers, if the message came from the network, bounce it, otherwise forward it along.
[John R. Levine]

Any ideas if this is what I need; is the best way; if there is a better way?

TIA