Obsoleted by Extended LUSER_RELAY/LOCAL_RELAY
New way of getting the same results coming soon.
The document describes how to modify your sendmail configuration to allow extended LUSER_RELAY syntax in the following form:
DLmailer:host,domain OR DLhost,domain
It will cause unknown local user "xyz" to be relayed to "host" via "mailer" with address "xyz@domain"
Before applying the suggestion below read about FEATURE(`preserve_luser_host') introduced by sendmail 8.12 - it may be a good alternative.THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE AUTHOR NAME MUST BE QUOTED IN ANY WORK DERIVATED FROM THE WORK.
It requires change in rule set S5 in your /etc/sendmail.cf (In newer releases it is called Slocaladdr=5).
I know no way to make the change via *.mc file. So, you need to add a few lines yourself.
In sendmail.cf version 8.8.7 and 8.9.3 the changes are needed at the very end of rule set S5.
OLD sendmail.cf lines:
# version 8.9.3 (absent in 8.8.7) R< local : $+ > $+ $: $>95 < error : $1 > $2 < @1 > R< error : $+ > $+ $: $>95 < error : $1 > $2 < @1 > # version 8.8.7 and 8.8.7 R< $- : $+ > $+ $: $>95 < $1 : $2 > $3 < @ $2 > R< $+ > $+ $@ $>95 < $1 > $2 < @ $1 > # --- End of rule set S5
NEW sendmail.cf lines:
R< local : $+ > $+ $: $>95 < error : $1 > $2 < @1 > R< error : $+ > $+ $: $>95 < error : $1 > $2 < @1 > R< $- : $+ , $+ > $+ $: $>95 < $1 : $2 > $4 < @ $3 > R< $- : $+ > $+ $: $>95 < $1 : $2 > $3 < @ $2 > R< $+ , $+ > $+ $: $>95 < $1 > $3 < @ $2 > R< $+ > $+ $@ $>95 < $1 > $2 < @ $1 > # --- End of rule set S5
The
posting
Subject: RE: LUSER_RELAY: relay host + relay user domain
Date: 1999-02-20
Newsgroups: comp.mail.sendmail
Message-ID: <36CEF3E2.1D79A174@polbox.com>