- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: my .forward can't work
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
тАО08-14-2002 05:18 AM
тАО08-14-2002 05:18 AM
I have most of the message about .forward in thsi forums, I did not find the answer.
any idea who has???
The following is my system configuration.
sendmail process is running.
mailx -s "just test" lycc@hotmail.com
I can recieve the mail.
system:/home # grep lyndon /etc/passwd
lyndon:n2nYuDrDHrLnQ:108:20:,,,:/home/lyndon:/usr/bin/sh
system:/home #
system:/home #cat /etc/shells
/sbin/sh
/usr/bin/sh
system:/home #ll
drwxr-xr-x 2 lyndon users 96 Aug 14 05:31 lyndon
nsswitch.conf and resolv.conf correct,and sendmail can send out the message.
system:/home/lyndon #ll
-rw------- 1 lyndon users 25 Aug 14 05:31 .forward
cat .forward
lycc@hotmail.com
but it can not work. sendmail can't send the message to lycc@hotmail.com.
So, I get a idea. I create a alias in /etc/mail/aliases,like this
lyndon : lycc@hotmail.com
Yes, It worked.
So everything is ok,but only users .forward can't work.
any idea please!!!!!!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 05:33 AM
тАО08-14-2002 05:33 AM
SolutionIf you do:
ls -la `which sendmail`
it is proberbly form root:mail.
Is sendmail prohibited to read your .forward?
What about chmod a+r .forward ??
Or add yourself into the group mail and
chown lyndon:mail .forward
chmod 640 .forward
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 05:34 AM
тАО08-14-2002 05:34 AM
Re: my .forward can't work
think .forward has to have execution bit set.
Try chmod 700 .forward
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 05:37 AM
тАО08-14-2002 05:37 AM
Re: my .forward can't work
Group writable files and directories containing .forward files are a secrity hole.
Looks like your .forward file has the correct permissions, but check the directory.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 06:25 AM
тАО08-14-2002 06:25 AM
Re: my .forward can't work
The .forward file does not need to be executable.
My question would be, can YOU send mail?
Try this:
As root, "su - lyndon"
mailx -s "just test" lycc@hotmail.com
Does this work?
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 06:32 AM
тАО08-14-2002 06:32 AM
Re: my .forward can't work
.forward = 644
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 05:46 PM
тАО08-14-2002 05:46 PM
Re: my .forward can't work
For copyright information, see /etc/copyright
$ll -a .forward
-rw------- 1 lyndon users 25 Aug 14 05:31 .forward
$ chmod 644 .forward
$ ll -a .forward
-rw-r--r-- 1 lyndon users 25 Aug 14 05:31 .forward
$ mail lyndon
dd
.
EOT
$
user lyndon still received this mail, this meaning .forward still not work.
so i chmod 777 ,still not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 05:52 PM
тАО08-14-2002 05:52 PM
Re: my .forward can't work
system:/home/lyndon #su - lyndon
$ mailx -s "Just a test" lycc@hotmail.com
tt
.
EOT
Yes, It worked, I can receive the mail from lycc@hotmail.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 05:59 PM
тАО08-14-2002 05:59 PM
Re: my .forward can't work
My sendmail belong to root group, so I change the lyndon's .forward file to root group
like this:
-rw-r--r-- 1 lyndon root 25 Aug 14 05:31 .forward
It still can not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 06:03 PM
тАО08-14-2002 06:03 PM
Re: my .forward can't work
Tom,
I have check /etc/mail/sendmail.cf, .forward file is in the users $HOME.
Then you said chech the directory, which directory?