Sendmail Config. question

From: Mitch McNeel (mitchm@mwh.com)
Date: Wed May 19 2004 - 13:56:32 EDT


Sun Managers,

    I'm running sendmail version 8.12.10+Sun on a V480 running Solaris 9 which
is about a month behind on patch levels (sendmail patch up-to-date). I'm having
a problem removing the hostname from the 'FROM:' header of any email sent from
this server. Since I don't have DNS resolving this host (internal host, sends
all mail to a MTA) on the outside, some mail servers will not accept mail from
my domain.

Example: 'someuser@thismachine.mwh.com' needs to be 'someuser@mwh.com'

I've set the masquerading parameter and that didn't work. I've even tried
rewriting the header within the following rule set:

#
# common sender and masquerading recipient rewriting
#
SMasqSMTP
R$* < @ $* > $* $@ $1 < @ $2 > $3 already fully qualified
## Added 05/18/2004 Mitch M. to remove hostname from the headers
R$+ $@ $1 < @ $m > Remove local
qualification
#R$+ $@ $1 < @ *LOCAL* > add local qualification

but that didn't work for this version of sendmail. It works on a Solaris 2.6
machine running sendmail version 8.9+1.5+Sun.

Does anyone have tips, tricks or been able to resolve this problem?

Below is a copy of my machine.mc file that I used to build my sendmail.cf file.

TIA!

Mitch

MC file:

divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# Copyright (c) 1997-2000
# Sun Microsystems, Inc. All rights reserved.
#
# ident "@(#)subsidiary.mc 1.10 00/12/14 SMI"
#
# This is a configuration file for SunOS 5.8 (a.k.a. Solaris 8) and later
# subsidiary machines. It has support for local and SMTP mail. The
# SMART_HOST macro is enabled, which means that messages will be sent to
# the SMART_HOST, which is set to mailhost.$m ($m is the local domain).
# A short-cut rule is also defined, which says if the recipient host is
# in the local domain, send to it directly instead of the smart host.
#
# Note: if you do not need a smart host; i.e., you are in an environment
# where MX records are properly defined, then you should not be using
# this subsidiary config file; use main instead.
#
# If you want to customize this further, copy it to a name appropriate
# for your environment and do the modifications there.
#

divert(0)dnl
VERSIONID(`@(#)subsidiary.mc 1.10 (Sun) 12/14/00')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
MASQUERADE_AS(`mwh.com')
define(`LOCAL_RELAY', `mail.mwh.com')
define(`MAIL_HUB', `mail.mwh.com')
define(`SMART_HOST', `mail.mwh.com')
MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3

--
                          |||||
                        ((~) (~))
                         ( (_) )
                          { ~ }
                            V
----------------------oOO0-----0OOo---------------------------------
Mitch McNeel                               # Phone Ext. 2236
Unix Systems Administrator                 # Phone Num. 858-831-2210
Maintenance Warehouse/A Home Depot Company # http://www.mwh.com
--------------------------------------------------------------------
[demime 1.01b removed an attachment of type text/x-vcard which had a name of mitchm.vcf]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:42 EDT