Hosted by PSE.pl | Created: 1999-10-23 | Last update: 2004-03-17 07:40:32 UTC | GnuPG signature of this page
anfiTop | anfiUp | Andrzej Filip | Mirror Sites | GnuPG Keys | New!google
googleMy Postings | slashdotJournal | Showing Gratitude
Personal | Sendmail | Exim | General MTA | Cyrus IMAP | UUCP

Extended LUSER_RELAY

Obsoleted

Obsoleted by Extended LUSER_RELAY/LOCAL_RELAY

Abstract

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.
Copyright (c) 1999 Andrzej Filip

Required Modifications

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.

  1. make a copy of the original /etc/sendmail.cf (just in case)
  2. change the /etc/sendmail.cf
  3. restart sendmail

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

Original Posting

googleThe posting
Subject: RE: LUSER_RELAY: relay host + relay user domain
Date: 1999-02-20
Newsgroups: comp.mail.sendmail
Message-ID: <36CEF3E2.1D79A174@polbox.com>