- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail problem.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 06:57 AM
тАО03-17-2005 06:57 AM
Here is the /var/adm/syslog/mail.log file that shows what is happening when I try to send mail to root.
Mar 17 10:51:40 diomede sendmail[22363]: KAA22363: from=root, size=51, class=0, pri=60051, nrcpts=2, msgid=<200503171951.KAA22363@di
omede.>, relay=root@localhost
Mar 17 10:51:41 diomede sendmail[22405]: KAA22363: to=ssmith@co.fairbanks.ak.us,jgoldsmith@co.fairbanks.ak.us, ctladdr=root (0/3), d
elay=00:00:21, xdelay=00:00:01, mailer=smtp, relay=co.fairbanks.ak.us. [172.16.0.150], stat=Sent (OK)
Mar 17 10:52:37 diomede sendmail[22406]: KAA22406: forward /home/root/.forward.diomede: World writable directory
Mar 17 10:52:37 diomede sendmail[22406]: KAA22406: forward /home/root/.forward: World writable directory
Mar 17 10:52:43 diomede sendmail[22406]: KAA22406: from=root, size=11, class=0, pri=30011, nrcpts=1, msgid=<200503171952.KAA22406@di
omede.>, relay=root@localhost
Mar 17 10:52:43 diomede sendmail[22409]: KAA22406: forward /home/root/.forward.diomede: World writable directory
Mar 17 10:52:43 diomede sendmail[22409]: KAA22406: forward /home/root/.forward: World writable directory
Mar 17 10:52:43 diomede sendmail[22409]: KAA22406: to=root, ctladdr=root (0/3), delay=00:00:06, xdelay=00:00:00, mailer=local, stat=
Sent
Anyone know how to fix this problem?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:01 AM
тАО03-17-2005 07:01 AM
Re: Sendmail problem.
home/root/.forward.diomede: World writable directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:11 AM
тАО03-17-2005 07:11 AM
Re: Sendmail problem.
The only thing in the /home/root/.forward is my outlook e-mail address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:20 AM
тАО03-17-2005 07:20 AM
Re: Sendmail problem.
root> chmod 400 .forward
Then sendmail will like it and start using it to forward your email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:29 AM
тАО03-17-2005 07:29 AM
Solutionroot> chmod o-w /home
root> chmod o-w /home/root
That command means change mode removing write access for other for the directory /home and /home/root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:34 AM
тАО03-17-2005 07:34 AM
Re: Sendmail problem.
Bad idea. Thats why the log file is complaining. I think its always a good idea to know why somethng is happening.
The chmod fix is good.
A better place however to handle root mail forwarding is in /etc/aliases or /etc/mail/access file.
You need to know how to generate sendmail.cf but this presentation and script shows you how to do that with sendmail 8.11.1
http://www.hpux.ws/buildmail.hpux.text
@ http://www.hpux.ws/
Regards,
Steven
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:43 AM
тАО03-17-2005 07:43 AM
Re: Sendmail problem.
chmod o-w home
drwxr-xr-x 176 root root 4096 Jan 25 08:42 home
chmod o-w root
drwxrwxr-x 6 root sys 1024 Mar 17 11:12 root
Now when I try to send root an email this is what shows up in the mail.log file.
Mar 17 11:38:30 diomede sendmail[26580]: LAA26580: forward /home/root/.forward.diomede: Group writable directory
Mar 17 11:38:30 diomede sendmail[26580]: LAA26580: forward /home/root/.forward: Group writable directory
Mar 17 11:38:35 diomede sendmail[26580]: LAA26580: from=root, size=11, class=0, pri=30011, nrcpts=1, msgid=<200503172038.LAA26580@di
omede.>, relay=root@localhost
Mar 17 11:38:35 diomede sendmail[26582]: LAA26580: forward /home/root/.forward.diomede: Group writable directory
Mar 17 11:38:35 diomede sendmail[26582]: LAA26580: forward /home/root/.forward: Group writable directory
Mar 17 11:38:35 diomede sendmail[26582]: LAA26580: to=root, ctladdr=root (0/3), delay=00:00:05, xdelay=00:00:00, mailer=local, stat=
Sent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:50 AM
тАО03-17-2005 07:50 AM
Re: Sendmail problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 08:07 AM
тАО03-17-2005 08:07 AM
Re: Sendmail problem.
Thanks for all the help.
Now I need to go back and figure out when and who changed roots permissions.
Question, I rebuilt the alias database /etc/mail/aliases the same day that root was changed. Doing that rebuile wouldnt have made any changes to root would it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 08:16 AM
тАО03-17-2005 08:16 AM