[aklug] sendmail replacing recipient's address with user@interfacename

From: David M. Syzdek <david@syzdek.net>
Date: Tue Sep 14 2010 - 13:10:22 AKDT

It has been a while since I have configured Sendmail to receive mail for
local deliver, more common for me is to use sendmail to route mail to the
appropriate backend server. I am however in a situation where I need to use
send mail to receive local mail for mailing lists on four separate domains.
I am finding that sendmail is changing the recipient's e-mail address from
`user@domain` to `user@interface` before delivering the mail to a user's
mail spool. I've been pouring over the documentation trying to find a
solution, but I've not been able to find one.
The exact problem is that I send an e-mail to "
syzdek@lists.hfcyoungadults.com" from Gmail or from telnet on localhost and
the message arrives as being addressed to "syzdek@support.bindlebinaries.com
".

The mail server has multiple interfaces. One of the interfaces is
support.bindlebinaries.com. lists.hfcyougadults.com is a CNAME to
support.bindle binaries.com.

Mail is being delivered to the correct user spool for all of the users,
however sendmail is replacing the recipient's domain name with "
support.bindlebinaries.com".

Can someone please tell me what I'm missing? I've included the contents of
my sendmail.mc file and other files that I've modified. The other sendmail
files are either empty or unchanged.

Thanks,
David Syzdek

System Info:
   Slackware 13.0
   Sendmail 8.14.3

--- /etc/mail/sendmail.mc ---
include(`/usr/share/sendmail/cf/m4/cf.m4')

VERSIONID(`test config 0.1')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl

FEATURE(`stickyhost')
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(local_lmtp)dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`nouucp',`reject')dnl
FEATURE(`always_add_domain')dnl
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`redirect')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
EXPOSED_USER(`root')dnl

LOCAL_DOMAIN(`lists.hfcyoungadults.com')dnl

MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
--- end of /etc/mail/sendmail.mc ---

--- /etc/mail/access ---
# Relay IP space
##############################################################
Connect:127 OK
Connect:192.168.192 RELAY # Net: office
Connect:208.109.220.137 RELAY # Host: roasted
Connect:208.109.222.101 RELAY # Host: roasted
Connect:208.110.88.24 RELAY # Host: salmon
Connect:208.110.88.25 RELAY # Host: salmon
Connect:208.110.88.26 RELAY # Host: salmon

# Allowed emails
##############################################################
To:@lists.bindlebinaries.com <To%3A@lists.bindlebinaries.com>
     OK
To:@lists.hfcyoungadults.com <To%3A@lists.hfcyoungadults.com>
     OK
To:@lists.theologyandbrew.com <To%3A@lists.theologyandbrew.com>
      OK
To:@lists.syzdek.net <To%3A@lists.syzdek.net> OK

# Munges unusual email domains and addresses
##############################################################
salmon.bindlebinaries.com "550 Invalid email domain"
ns2.bindlebinaries.com "550 Invalid email domain"
--- end of /etc/mail/access ---

--- /etc/mail/mailertable ---
lists.hfcyoungadults.com local:
--- end of /etc/mail/mailertable ---

--- /etc/mail/virtusertable ---
syzdek@lists.hfcyoungadults.com syzdek
--- end of /etc/mail/virtusertable ---

--- /etc/mail/local-host-names ---
# names of hosts for which we receive email
lists.hfcyoungadults.com

support.bindlebinaries.com
lists.theologyandbrew.com
lists.syzdek.net
--- end of /etc/mail/local-host-names ---

--- /etc/mail/aliases ---
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/mail.
#
# >>>>>>>>>> The program "newaliases" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> show through to sendmail.
#

# Basic system aliases -- these MUST be present.
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts.
bin: root
daemon: root
games: root
ingres: root
nobody: root
system: root
toor: root
uucp: root

# Well-known aliases.
manager: root
dumper: root
webmaster: root
abuse: root

# trap decode to catch security attacks
decode: root

# custom aliases
root: /dev/null
noreply: /dev/null

## hfcya-mail mailing list
hfcya-mail: "|/usr/local/mailman/mail/mailman post hfcya-mail"
hfcya-mail-admin: "|/usr/local/mailman/mail/mailman admin hfcya-mail"
hfcya-mail-bounces: "|/usr/local/mailman/mail/mailman bounces
hfcya-mail"
hfcya-mail-confirm: "|/usr/local/mailman/mail/mailman confirm
hfcya-mail"
hfcya-mail-join: "|/usr/local/mailman/mail/mailman join hfcya-mail"
hfcya-mail-leave: "|/usr/local/mailman/mail/mailman leave hfcya-mail"
hfcya-mail-owner: "|/usr/local/mailman/mail/mailman owner hfcya-mail"
hfcya-mail-request: "|/usr/local/mailman/mail/mailman request
hfcya-mail"
hfcya-mail-subscribe: "|/usr/local/mailman/mail/mailman subscribe
hfcya-mail"
hfcya-mail-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe
hfcya-mail"
--- end of /etc/mail/aliases ---

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Sep 14 13:10:32 2010

This archive was generated by hypermail 2.1.8 : Tue Sep 14 2010 - 13:10:32 AKDT