Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not forwarding

Status
Not open for further replies.

ereyes

IS-IT--Management
Dec 6, 2005
1
CA
I'm currently running sendmail 8.13.1 on RHEL 4 AS.

When a user is going to be out for long time, usually set a .forward file on his home directory so his mail is automatically forwarded to another mailbox.

That used to work perfectly on UnixWare but not on our recently installed Linux system.

Any suggestion?

Thnaks
 
Make sure the user owns the .forward file (not root:root) and turn off group and world write bits for that file.

Make sure that sendmail.cf is searching where you think it should:
Code:
smtp1 mail # grep Forward sendmail.cf.smtp
# Forward file search path
O ForwardPath=$z/.forward.$w:$z/.forward
In this example, it will look in the user's home directory ($z) for two files, the second of which is $HOME/.forward, which is the one you're seemingly trying to use. Make sure that the directory you're using matches the home directory shown in 'getent passwd USERNAME'.

If those two don't fix it, I'm not sure what could be the problem.
 
How do I configure sendmail on a smtp server running linux just for outgoing mail only?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top