Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error mail sent to root

Status
Not open for further replies.

csgonan

MIS
May 2, 2007
118
US
I'm running sendmail (8.13.8+Sun/8.13.8/Submit) solaris 10.

I want all local (root) mail delvered locally to root but when I send mail to root at the command line, or a job runs that sends mail to root, I get the error message

root... User address required.

Also, my mail log shows it is being sent to the mail gateway. This is even if I send it to root@hostname.domain.com.

How can I keep the mail local. This is the file that built my submit.cf file. When I do a PS though, the local.cf file is referenced, which is using the default local.cf. The local.mc file is below that too.

Thanks

---------------------------------------------------
kristina# more submit.mc
divert(-1)

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
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
dnl FEATURE(`msp', `[127.0.0.1]')dnl
MASQUERADE_AS(`domain.com')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`msp', `mailhost.domain.com')dnl
LOCAL_USER(`root')dnl
EXPOSED_USER(`root')dnl

-------local.mc
divert(0)dnl
VERSIONID(`@(#)local.mc 1.1 (Sun) 08/01/06')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`NAME=NoMTA4, Family=inet, Addr=127.0.0.1')dnl
DAEMON_OPTIONS(`Name=MSA4, Family=inet, Addr=127.0.0.1, Port=587, M=E')dnl
LOCAL_USER(`root')dnl
EXPOSED_USER(`root')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
 
I found that if remove the Local_user from the submit.mc file, the root... User address required.

error goes away. Mail is still failing because it is trying to be delivered to the relay server at root@domain.com.

All I need is to have root stay local.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top