sendmail "root... User address required." error


 
Thread Tools Search this Thread
Operating Systems Solaris sendmail "root... User address required." error
# 1  
Old 06-26-2007
sendmail "root... User address required." error

I'm running sendmail (8.13.8+Sun/8.13.8/Submit) solaris 10.

When I send mail to root at the command line (whether I use a full-qualified address or just root), I get the error message

root... User address required.

Sending mail to root (either at the command line or in a cron job), fails. I just tried to send to root as me, and the failure notice came to my exchange account.

@root on 6/26/2007 5:25 PM
The format of the e-mail address is incorrect. Check the address, look up the recipient in the Address Book, or contact the recipient directly to find out the correct address.
< host.domain.com #5.1.3>


This is my submit.mc and all mail is correctly relaying to the exchange server, and mail from root shows correctly as root@host.domain.com.

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
kristina#

This is my 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
MAILER(`local')dnl
MAILER(`smtp')dnl

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

Again, thank you.

Last edited by csgonan; 06-26-2007 at 06:48 PM..
# 2  
Old 06-26-2007
I found if I removed the LOCAL_USER(`root')dnl
from the submit.mc, I do not get the error. The problem is mail is masquarading as root@domain.com and the exchange server doesn't know what to do with it.

How can I get local root mail to stay local.

THanks
# 3  
Old 06-26-2007
Quote:
Originally Posted by csgonan
I found if I removed the LOCAL_USER(`root')dnl
from the submit.mc, I do not get the error. The problem is mail is masquarading as root@domain.com and the exchange server doesn't know what to do with it.

How can I get local root mail to stay local.

THanks
You have many choices.

using and entry in the aliases file
redirecting from virtusertable to another address.
redirect to the aliases file from the access file.

I suggest you go to http://sendmail.org/doc/ and read up, they have an install guide available as a pdf. read it.

Sendmail is "complicated"

At the very least you domain will need to really exist, (as in, visible to a DNS query) if you just want root mail to work, then make sure you have mailhost listed as an alias of 127.0.0.1 (or your IP address)
It is considerably easier if you're just mucking about with UNIX/Linux to install a mail client, (Thunderbird) and have it use gmail as a server.

If you're actually doing this for real, then you need to know what you're doing, so you need to read the document. If you don't know what you're doing don't put an insecure Sendmail system on the internet.
# 4  
Old 06-27-2007
I'd vote for adding entry in aliases file, just "cat /etc/mail/aliases", since this is Solaris and reading the comments in this file should be enough for you to deal with the problem. If you choose to alter this file, invoke "newaliases" to update the aliases' DB.
# 5  
Old 06-27-2007
thank you for the information.

I had already tried the alias method for root, but root is still relaying out to the exchange server (so it doesn't seem to use it the alias file). The alias is the same as a user that I can successifully send mail to. I just want root mail to go to the local root mail box.

Which file does the alias reference go into, the submit.cf or local.cf?

The mailhost is the SmartHost, not 127, which it needs to be for all other outgoing mail. This server is just a mail client. The other mail clients I have are configured the same way but with the earlier version of sendmail.

If this has to be setup differently, so it thinks the localhost is mailhost for root, but not for anything else, how is that setup.

I read that document but it doesn't explain the new cf files and the sequence of processing.

All I want is local mail delivered to the local root mailbox.

Thanks so much.

Last edited by csgonan; 06-27-2007 at 03:39 PM..
# 6  
Old 06-27-2007
What is being suggested is that you use the standard client configuration and do not attempt to directly relay all mail.

Instead you construct an alias for each non-local user in /etc/mail/aliases eg:

Code:
john:   john@example.com

then type in 'newaliases' to build the alias list.

This will be relayed to the mailhost, you then do not alias the local delivery accounts such as root. Mail will then be relayed to the fully qualified name, and non relayed mail will stay local.
# 7  
Old 06-27-2007
Thank you but I have done that already. I put root: csgonan@domain.com to forward mail to me (and newalias). What I see is with my mc entries, the local.cf file has the alias entry activated, but the submit.cf doesn't.

Beyond that what won't root mail stay local. This is my maillog when I try to send root mail at the command linel. I would think whatever is generating the first entry should be delivering the mail local.

Thank you for responding to this.


Jun 27 15:04:04 kristina sendmail[406]: [ID 801593 mail.info] l5RJ446I000406: from=root, size=140, class=0, nrcpts=1, msgid=<200706271904.l5RJ446I000406@kristina.domain.com>, relay=root@localhost
Jun 27 15:04:05 kristina sendmail[406]: [ID 801593 mail.info] l5RJ446I000406: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30140, relay=directencryptedhccsroute.domain.com. [192.168.0.221], dsn=2.0.0, stat=Sent ( <200706271904.l5RJ446I000406@kristina.domain.com> Queued mail for delivery)
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to run root level command , if user has "su -" permission in sudoers provided?

I am looking t run root level command on multiple servers, but all servers have only "su - " permission available in sudoers. please help me if any way that I can run command using help of "su -" My script for hosts in `cat hosts.txt`; do echo "###########################Server Name-... (5 Replies)
Discussion started by: yash_message
5 Replies

2. Shell Programming and Scripting

Root running a script calling to scp using user "xyz" is not authenticating!

Close duplicate thread. (0 Replies)
Discussion started by: denissi
0 Replies

3. AIX

Change "root" to "root.admin" in outgoing e-mails

Our AIX servers send e-mails which have the "from" address set to "root@company.com" for our root user ("C{M}company.com" in /etc/sendmail.cf). The problem is that when bad e-mails are sent out or rejected by remote servers, they are being returned and delivered to e-mail box of "Mary Root". ... (2 Replies)
Discussion started by: kah00na
2 Replies

4. Red Hat

Sendmail saying "user unknown" after setting up MX

Hi Friends, I set up the sendmail in my perosnal home lab. I am using mutt to send the email in between the machines. Everything is working fine if i send email like <username>@<hostname>. Now i set up the MX record for my domain "home.com" and then i was trying to send the email to like... (2 Replies)
Discussion started by: Rohit Bhanot
2 Replies

5. Solaris

"! bad user (root)" in cron log

I am getting the following error in the cron log: ! bad user (root) Wed Sep 22 14:30:00 2010 < root 8989 c Wed Sep 22 14:30:00 2010 rc=1 What does this mean? (5 Replies)
Discussion started by: jastanle84
5 Replies

6. UNIX for Advanced & Expert Users

How to allow particular user only to login as a root using "ssh" ?

Q1 I want to allow particular user only to login into root using ssh. I have set PermitRootLogin no for security purpose but I want to allow some of the users to login as a root using ssh how to do this? I have tried with Allowusers user1 user2 its working for only the user1 and... (3 Replies)
Discussion started by: ungalnanban
3 Replies

7. Red Hat

error"warning: user owen does not exist - using root"?

I am trying to install openmotif22-2.2.3-18.src.rpm, after I typed in " rpm -i openmotif22-2.2.3-18.src.rpm" the following message comes out: warning: user owen does not exist - using root warning: group owen does not exist - using root I am install openmotif under root account. Do... (2 Replies)
Discussion started by: fishwater00
2 Replies

8. OS X (Apple)

Ho do I masquerade the "user@user.local" address in mail/mailx?

Hi, I'm brand new here and looking for a solution: I'm using mail or mailx. The default reply address is «myshortusername@mylongusername.local» which makes absolutely no sense for anybody receiving my emails. But how do I change it? There seem to be many solutions but none for Mac OS X.... (0 Replies)
Discussion started by: gczychi
0 Replies

9. UNIX for Dummies Questions & Answers

Possible to give non root user sudo to "crontab -l"

Does anyone know if this is possible? I want to give some users access to root's crontab but only with a read privilege. Is this possible to do or can only root or people with full root sudo view root's cron? (4 Replies)
Discussion started by: LordJezoX
4 Replies
Login or Register to Ask a Question