Does a user masquerading solution exist in which it is not necessary to
add MAILHOST and MAILUSER environment variables for every user on a
system hosting a half dozen virtual domains with hundreds of users? I
have read FAQ sections 1.1 and 1.2:
-----
1.1. How do I set up host masquerading? All the users on this host,
zippy.af.mil, are users on af.mil. When joe sends a message to fred, the
message should say ``From: [EMAIL PROTECTED]'' and ``To: [EMAIL PROTECTED]'', without
``zippy'' anywhere.
Answer: echo af.mil > /var/qmail/control/defaulthost; chmod 644
/var/qmail/control/defaulthost.
1.2. How do I set up user masquerading? I'd like my own From lines to
show [EMAIL PROTECTED] rather than [EMAIL PROTECTED]
Answer: Add MAILHOST=af.mil and MAILUSER=boss to your environment. To
override From lines supplied by your MUA, add QMAILINJECT=f to your
environment.
-----
Neither FAQ offers a workable solution. 1.1 addresses the problem of
masquerading when virtual domains are NOT being used. 1.2 addresses the
problem at a microscopic level. However, the solution is not workable in
an environment of hundreds of users and a half dozen virtual domains. It
requires MAILHOST and MAILUSER environment variables for EVERY user.
I am looking for a solution, similar in simplicity to 1.1, that works
for virtual domains.
- Bernie