I would like to set up centrally managed user masquaradeing for my virtual
domains.

For this I thought that I read MAILUSER, MAILNAME and MAILHOST from a
central file, in a wrapper of qmail-inject.

The question is whether I can do this? Or perhaps is there an already
established mechanism for that?

I thought of something like this:

Move qmail-inject to qmail-inject-bin and use the following in 
qmail-inject:

# retrieve MAILUSER MAILHOST MAILNAME according to $USER from a file

MAILUSER=... 
MAILHOST=...
MAILNAME=...

QMAILDEFAULTHOST=MAILHOST
QMAILINJECT=`echo ${QMAILINJECT}f

export MAILUSER MAILHOST MAILNAME QMAILDEFAULTHOST QMAILINJECT

qmail-inject-bin $*



Will this work?

Robert Varga


Reply via email to