- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail .forward 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
Forums
Discussions
Discussions
Discussions
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
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-21-2002 11:18 PM
03-21-2002 11:18 PM
I got the problem with .forward for sendmail,
nornally when specify e-mail address in .forward on home directory. all mail mesg will forward to address that specify in .forward file.
But for user oracle that using C shell I could not do that , pls see below,
=========================
detdb2:/home/mis> /usr/sbin/sendmail -v orat20
orat20... forward: /oracle/T20/.forward.detdb2+: World writable directory
orat20... forward: /oracle/T20/.forward+: World writable directory
orat20... forward: /oracle/T20/.forward.detdb2: World writable directory
orat20... forward: /oracle/T20/.forward: World writable directory
TEST
.
orat20... Connecting to local...
orat20... Sent
=====================
entry of .forward that located on orat20's home dir
=====================
sysadm
=====================
Mail has been sent to user orat20 not user sysadm.
Actually I need to forward all orat20's messages to user sysadm.
Anyone helps
Worapoj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:50 AM
03-22-2002 12:50 AM
Re: Sendmail .forward problem.
Check the permission on the .fowrard file for your user - does it have permision to read it ??
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:59 AM
03-22-2002 12:59 AM
Re: Sendmail .forward problem.
plase find as below,
-rw-r--r-- 1 orat20 dba 7 Mar 22 14:17 /oracle/T20/.forward
Pls advise,
worapoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:10 AM
03-22-2002 01:10 AM
Re: Sendmail .forward problem.
Try
sysadm@
in your .forward file.
Also what dors mailq tell you ? are there any mails to sysadm in the queue?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:18 AM
03-22-2002 01:18 AM
Re: Sendmail .forward problem.
I tried as your suggest add sysadn@ to /oracle/T20/.forward , but result still be the same, still coundn't.
not any mesg go to sysadm's queue
pls
advise
worapoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:21 AM
03-22-2002 01:21 AM
SolutionDo you get any messages in mail.log ?
did you check /etc/aliases ?
Is sysadm a user or a alias ?
try sendmail -bv sysadm, is the output like this:
sysadm... deliverable: mailer local, user sysadm
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:25 AM
03-22-2002 01:25 AM
Re: Sendmail .forward problem.
If the user get mail and sysadm does not then:-
Is the .forward file in the users HOME dir?
Is sysadm a valid user?
If you manually mail to the "ora" users does sysadm get a copy.
Try putting root / or another valid mail user in the .forward file and test.
See man aliases it may help.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:37 AM
03-22-2002 01:37 AM
Re: Sendmail .forward problem.
Ok I tested as
I) add sysadm to t20adm's home dir as
==== /home/sysadm/.forward =======
sysadm
==================================
II) test sendmail as
detdb2:/home/mis> /usr/sbin/sendmail -bv t20adm
sysadm... deliverable: mailer local, user sysadm
III) verify orat20's home dir
======= /oracle/T20/.forward ======
sysadm
===================================
IV)
detdb2:/home/mis> /usr/sbin/sendmail -bv t20adm
sysadm... deliverable: mailer local, user sysadm
detdb2:/home/mis> /usr/sbin/sendmail -bv orat20
orat20... deliverable: mailer local, user orat20
But for orat20 , the mesg will not forward to system user.
Answer
==========
Q1:If the user get mail and sysadm does not then:-
A1: Yes , orat20 got mail but system not.
Q2:Is the .forward file in the users HOME dir?
A2: Yes pls obtain /etc/passwd,
orat20:fdfklsdkfldfk:3200:201:Standard SAP R/3 User:/oracle/T20:/usr/bin/csh
Q3:Is sysadm a valid user?
A3: Yes , pls see
#id sysadm
detdb2:/home/t20adm# id sysadm
uid=0(root) gid=20(users)
Q4:If you manually mail to the "ora" users does sysadm get a copy.
A4: No ,the mesg had only been sent to orat20.
Q5:Try putting root / or another valid mail user in the .forward file and test.
A4: Yes I tested to t20adm, it work fine as above memtion.
Pls advise,
worapoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 03:54 AM
03-22-2002 03:54 AM
Re: Sendmail .forward problem.
Does a normal mail to sysadm work?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 04:18 AM
03-22-2002 04:18 AM
Re: Sendmail .forward problem.
could the problem be something like this:
If the owner of the .forward file lacks a valid shell as listed in /etc/shells file, the execution of such programs will be disallowed. The user can still execute such programs by placing the special string
/SENDMAIL/ANY/SHELL/ in the /etc/shells file.
Extracted from man aliases .
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 05:26 AM
03-22-2002 05:26 AM
Re: Sendmail .forward problem.
The line is:
O DontBlameSendmail=IncludeFileInUnsafeDirPath
Note that the first character is a capital "O" which stands for option. I think you need to restart mail after making this change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 11:13 AM
03-22-2002 11:13 AM
Re: Sendmail .forward problem.
this should also be 555 and not 777. Your mail is probably still going thru.
555 r-xr-xr-x
777 rwxrwxrwx
World writeable just means that evryone and anyone can write to this directory which is a no no for security reasons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 05:59 PM
03-25-2002 05:59 PM
Re: Sendmail .forward problem.
I already tested all you suggest, but still couldn't, even /etc and /etc/mail permission are 555.
I could send mail mesg to user system
Please suggest,
worapoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 06:19 PM
03-25-2002 06:19 PM
Re: Sendmail .forward problem.
I wonder if the problem is represented by the usage of the C chell.... Would it be possible to change the shell temporarily to another shell like ksh and test it.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 07:35 PM
03-25-2002 07:35 PM
Re: Sendmail .forward problem.
I cann't change current shell to C shell for user oracle ,because SAP still running, So I simulate on another machine , result it's work fine even C shell.
But I deleted .forward on home dir of orat10
then test sendmail by command #sendmail -v orat10 I wonder result is same as below
detdevl:t10adm 1> /usr/sbin/sendmail -v orat10
orat10... forward: /oracle/T10/.forward.detdevl+: World writable directory
orat10... forward: /oracle/T10/.forward+: World writable directory
orat10... forward: /oracle/T10/.forward.detdevl: World writable directory
orat10... forward: /oracle/T10/.forward: World writable directory
Please helps
worapoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 08:01 PM
03-25-2002 08:01 PM
Re: Sendmail .forward problem.
Could it be that sendmail is complaining that the directory where it is finding the .forward is world writable -- and hence the .forward is subject to hijacking, certainly a security issue. What are the permissions on /oracle/T20 ? If the directory permissions are ok (as in writeable only by user), what are the permissions on the .forward file itself?
If the permissions on the directory cannot be changed for whatever reason, consider using an alias instead. I use this mechanism to send myself notifications of various system events (to my pager, email, whatever).
Best regards
Mark