cancel
Showing results for 
Search instead for 
Did you mean: 

Root Mail Problem.

Jeffrey F. Goldsmith
Super Advisor

Root Mail Problem.

I am running HP-UX 11.0 on an L2000 server. Up until the past month or so I have been getting root’s mail forwarded to my exchange server mailbox. I put a “.forward” in root’s home and put my e-mail address into the “.forward” file. This has worked for the past 5 years and now it isn’t working.

NOTE: Back in January I was trying to upgrade my OS from 11.0 to 11.i but wasn’t able to complete the upgrade due to some kernel files that were out of sync and needed to be reloaded. Management told me not to proceed at that point so I stopped.

In case this makes a difference, I have other users that are still getting their mail forwarded thru the server to their exchange mailbox using their “.forward” file. Right now the problem seems to only exist with root.

Th
9 REPLIES
Steven E. Protter
Exalted Contributor

Re: Root Mail Problem.

The backout on that upgrade should have been a recovery of the system from a make_tape_recovery tape or make_net_recovery archive. I hope you did that.

tail -f /var/adm/syslog/mail.log

Then direct a mail that should be forwarded.

You will get error diagnostics right on the screen.

You could also get interesting information on the machine itself with:
sendmail -v -d8.99 -d38.99 root

type some text

.



SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
RAC_1
Honored Contributor

Re: Root Mail Problem.

Does /var/mail/root exists??
Does file /etc/mail/aliases exists??
Can you send email to the address that you mentioned in .forward file directly??
There is no substitute to HARDWORK
Jeffrey F. Goldsmith
Super Advisor

Re: Root Mail Problem.

SEP â Yes, I did a recovery with my Ignite tape once I was done. I did the steps you suggested and here are the errors I got on the screen:

Mar 8 09:32:36 diomede sendmail[16661]: Warning: .cf file is out of date: sendmail 8.9.3 (PHNE_29773) supports version 8, .cf file
is version 6
Mar 8 09:32:36 diomede sendmail[16661]: JAA16661: forward /home/root/.forward.diomede: World writable directory
Mar 8 09:32:36 diomede sendmail[16661]: JAA16661: forward /home/root/.forward: World writable directory
Mar 8 09:33:32 diomede sendmail[16661]: JAA16661: from=root, size=28, class=0, pri=30028, nrcpts=1, msgid=<200503081832.JAA16661@di
omede.>, relay=root@localhost
Mar 8 09:33:32 diomede sendmail[16661]: JAA16661: to=root, ctladdr=root (0/3), delay=00:00:56, xdelay=00:00:00, mailer=local, stat=
Sent


root: /etc ==> sendmail -v -d8.99 -d38.99 root
seq_map_parse(aliases.files, )
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
seq_map_lookup(aliases, root)
seq_map_lookup(aliases.files, root)
impl_map_lookup(Alias0, root)
db_map_lookup(Alias0, root)
root... forward: /home/root/.forward.diomede: World writable directory
root... forward: /home/root/.forward: World writable directory
this is a test
only a test
.
root... Connecting to local...
root... Sent
closemaps: closing aliases.files (NULL)
closemaps: closing Alias0 (/etc/mail/aliases)
impl_map_close(Alias0, /etc/mail/aliases, 12a3)
db_map_close(Alias0, /etc/mail/aliases, 12a3)
closemaps: closing host (NULL)
closemaps: closing aliases (aliases)
closemaps: closing dequote (NULL)
You have mail in /var/mail/root
root: /etc ==>



RAC â Yes, /var/mail/root and /etc/mail/aliases do exist. When I tried to send an email to that address it didnâ t work. Here is what I did:

root: /etc/mail ==> mail -dt jgoldsmith@co.fairbanks.ak.us
hello Jeff
did you get this?
.
mail: can't send to jgoldsmith@co.fairbanks.ak.us
Mail saved in /home/root/dead.letter
root: /etc/ma
Jeffrey F. Goldsmith
Super Advisor

Re: Root Mail Problem.

NOTE: Using sendmail I can send an e-mail to the addresses in the /home/root/.forward file.
RAC_1
Honored Contributor

Re: Root Mail Problem.

/home/root/.forward: World writable directory

Give appropriate perms to this dir and check.
There is no substitute to HARDWORK
Jeffrey F. Goldsmith
Super Advisor

Re: Root Mail Problem.

This is what it looks like now:

-rw-r--r-- 1 root sys 56 Mar 7 14:43 .forward

And this is what mine looks like and it works:

-rw-r--r-- 1 root sys 30 Mar 7 09:14 .forward
Jeffrey F. Goldsmith
Super Advisor

Re: Root Mail Problem.

I still need some help with this problem. Anyone have any ideas at to what the problme is?

I did get this error when sending a mail message:

Mar 10 13:44:41 diomede sendmail[25522]: Warning: .cf file is out of date: sendmail 8.9.3 (PHNE_29773) supports version 8, .cf file is version 6

Do I need to install patch PHNE_29773 to fix this problem?
Jeffrey F. Goldsmith
Super Advisor

Re: Root Mail Problem.

Another question I have. When I ran the following test:

(screen #1) tail -f /var/adm/syslog/mail.log
(screen #2)sendmail -v -d8.99 -d38.99 root

I get the following information in the mail.log file. It doesnt show up if I do the sendmail test with my user id.

Mar 10 13:58:54 diomede sendmail[26189]: NAA26189: forward /home/root/.forward.diomede: World writable directory
Mar 10 13:58:54 diomede sendmail[26189]: NAA26189: forward /home/root/.forward: World writable directory

What is happening?
Jeffrey F. Goldsmith
Super Advisor

Re: Root Mail Problem.

I really didnt get the answers i needed. I am closig this call and opening a new one.