Solaris 10 sendmail issues - client

From: Lisa Weihl (lweihl@cs.bgsu.edu)
Date: Fri Mar 16 2007 - 10:21:55 EST


I have a sendmail problem on a Solaris client that I'm hoping you
experts can help me with. I've been banging my head on this for
several days. The client is running Solaris 10 6/06. I will show
the submit.mc and hostname.mc that were used to build the submit.cf
and sendmail.cf files below.

Users are logging in to a local unix host. This host should simply
forward it's mail to the mailhost in our domain. There are some
return address issues going on and also a delay in the mail being
sent and received (sometimes it's delayed and sometimes it doesn't
come through at all) if sent to a username that is unqualified.

Issue #1: if a user uses mailx to send email to users their return
address is often user@hostname.cs.bgsu.edu instead of
user@cs.bgsu.edu. The weird thing is this doesn't affect every
user. Nothing with respect to sendmail has been changed recently.

Issue #2: if users use mailx and send to a local domain user with an
unqualified address there is a delay in receiving the mail and
sometimes it never does make it through. Hmm, just tried again and
now it seems to be delayed even is I type mailx user@cs.bgsu.edu.

Just to note issues #1 and #2 are not affected by a user having a
.mailrc in their account.

Issue #3: Anyone who uses pine has no problems and it doesn't matter
if the username is unqualified or not.

I will admit right now that I don't 100% understand all the
intricacies of Sendmail. This problem has me stumped and in trying
to fix it I may have added directives into these files that don't
need to be there.

Thanks in advance for any suggestions.

Lisa

Here are the submit.mc and hostname.mc used to build the respective
submit.cf and sendmail.cf files.

SUBMIT.MC
****************************************
divert(-1)
#
# Copyright (c) 2001, 2002 Sendmail, Inc. and its suppliers.
# All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#ident "@(#)submit.mc 1.3 02/12/29 SMI"
#

#
# This is the prototype file for a set-group-ID sm-msp sendmail that
# acts as a initial mail submission program.
#

divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.6.2.4 2002/12/29 03:54:34 ca Exp $')
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`SMART_HOST', `mail.cs.bgsu.edu')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl
MASQUERADE_AS(`cs.bgsu.edu')dnl

******************************************************************

HOST.MC

divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)sendmail.mc 1.11 04/06/21 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
# confFALLBACK_SMARTHOST macro is enabled, which means that messages will
# be sent to that host (which is set to mailhost.$m [$m is the local domain])
# if MX records are unavailable. 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.
#
# 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(`@(#)sendmail.mc 1.11 (Sun) 06/21/04')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
#define(`confFALLBACK_SMARTHOST', `mail$?m.$m$.')dnl
define(`SMART_HOST',`mail.cs.bgsu.edu')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
MASQUERADE_AS(`cs.bgsu.edu')dnl
undefine(`ALIAS_FILE')dnl
#this keeps the daemon only running for local mail
DAEMON_OPTIONS(`NAME=NoMTA4,Family=inet,Addr=127.0.0.1')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl

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

************************************************************************************
**********************************************************************************
Lisa Weihl, System Administrator E-mail: lweihl@cs.bgsu.edu
Department of Computer Science Office: Hayes 225
Bowling Green State University Phone: (419) 372-0116
Bowling Green, Ohio 43403-0214 Fax: (419) 372-8061
_______________________________________________
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:41:46 EDT