The document describes how to make sendmail process corectly user@local.domain aliases. Without it sendmail ignores local.domaim during aliases expansion.
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.
Define "domanized" aliases in aliases file (in /etc/mail/ or /etc/ directory).
user1@first.local.domain: user1@domain2.com,\user1 user1@second.local.domain: userx@nowhere.com
Fix small bug present in cf/m4/proto.m4 of 8.12.6. In pre DH line comment it is declared (but not implemented) that "$R has precedence for unqualified names" [I have reported the bug to sendmail-bugs@sendmail.org]
Change order of MAIL_HUB and MAIL_RELAY processing.
Apply the patch (signature) - in main directory of sendmail distribtion execute
patch -p0 < RH.patch
dnl relay user@localdomain via MAIL_HUB FEATURE(`stickyhost')dnl define(`MAIL_HUB',`procmail:/etc/procmailrc/catch.rc')dnl dnl ignore MAIL_HUB for recipients without domain define(`LOCAL_RELAY',`$j')dnl dnl turn on alaises and S5 processing for procmail mailer MODIFY_MAILER_FLAGS(`PROCMAIL',`+A5')dnl MAILER(procmail)dnl LOCAL_RULESETS SLocal_localaddr # Strip domain part of recipient address R$+@$+ $# local $: $1
user1@first.local.domain: user1@domain2.com,\user1
newaliases -C sendmail-test.cf
sendmail -C sendmail-test.c -d27.2 user1@first.local.domain
A wonderful quote apropos the bug mentioned in install section:
If the code and the comments disagree, then both are probably wrong.
-- Norm Schryer
The
posting
Subject: Domanized aliases
Date: 2002-10-27
Newsgroups: comp.mail.sendmail
Message-ID: <3DBBEA84.6A656833@Andrzej.Adam.Filip>