.forward file for mail redirection

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers .forward file for mail redirection
# 1  
Old 01-11-2002
.forward file for mail redirection

I've set up a .forward file on a few identical servers that we have (all identical .forward file as well) but only one server is forwarding any of my unix mail (mail generated by cron) to my internet account.

Because these servers (5) are all identical in terms of aix versions, etc., I do not understand why only one works. The only difference that I can say is that these servers all run different cron jobs. Cron is the guy generating all these log messages and I'd like to see these emails in Outlook not unix.

Please advise as to what could be the issue. Is the use of the | tee command important in setting up the crontab to utilize the .forward file? Someone told me this is the case but I see no documentation in my unix admin book.

# 2  
Old 01-11-2002
Tee has nothing to do with it.

The .forward must be readable by everyone. The directory in which it sits must be searchable by everyone. Could that be it? Is there a entry in aliases for the user?
# 3  
Old 01-11-2002
The .forward file is in the home directory of each user who has the crontab entries:


-rw-r--r-- 1 prodgrp admingrp 35 Jan 10 10:17 .forward

One works but not the other ones...and I pretty much just duplicated (ftp) the .forward from one node/server to another for the userids needing this feature. Not sure what's going on.

I thought that the tee may have nothing to do with it but I needed confirmation. Thanks.
# 4  
Old 01-12-2002
user mail

I have all my boxes forward mail to my Laptop from each unix box.

The only configuration that I have is one ".forward" file in ROOT's home directory of each box with my email address to my laptop account.

You may have a few problems 1) your .forward is in the wrong directory. 2) your file contains extra spaces or unprintable chars in the file. 3) Your net connection from your boxes to your network where your laptop resides are not connected.

I would suggest recreating each .forward file from scratch on each host in the proper directory for the user that you want the mail forwarded for.

Double check your work just to be sure. It is probably something simple that you have overlooked.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Iptables forward traffic to forward chain!!!

Hi, I am new to linux stuff. I want to use linux iptables to configure rule so that all my incoming traffic with protocol "tcp" is forwarded to the "FORWARD CHAIN". The traffic i am dealing with has destination addresss of my machine but i want to block it from coming to input chain and somehow... (0 Replies)
Discussion started by: arsipk
0 Replies

2. UNIX for Dummies Questions & Answers

prevent copy , forward of mail sent through unix

Hi, We are using mailx -s command to send mails from unix. We need to ensure that this mail is not copied,forwarded etc. Is there a command which can be used to achieve this using unix? Thanks. (1 Reply)
Discussion started by: dwarkeshr
1 Replies

3. UNIX for Advanced & Expert Users

prevent copy , forward of mail sent through unix

Hi, We are using mailx -s command to send mails from unix. We need to ensure that this mail is not copied,forwarded etc. Is there a command which can be used to achieve this using unix? Thanks. No double posting please, continue here. (0 Replies)
Discussion started by: dwarkeshr
0 Replies

4. Debian

Forward a specific incoming mail to a user

Hi There Not sure if this is the correct place for this. I'm running Sendmail on a Debian box and want to do the following. e-mail comes in from userk@domain.co.za and is destined for usera@mydomain.co.za, but i want all mail from userk@domain.co.za to go to userb@mydomain.co.za. Sendmail... (3 Replies)
Discussion started by: linuxjunkie
3 Replies

5. UNIX for Dummies Questions & Answers

fetchmail: forward mail changing subject

Hi there, I receive job applications sent by a website daemon. The email subject contains the job offer description. The problem is that gmail tends to concatenate emails with the same subject and I don't really want all applications in the same email. Thus the from field contains the candidate... (0 Replies)
Discussion started by: chebarbudo
0 Replies

6. Shell Programming and Scripting

How to convert forward zone file to reverse

I have forward dns zone file with A records and converting it to reverse zone file ex. subdomain1 A subdomain2 A subdomain3 A subdomain4 A subdomain5 ... (5 Replies)
Discussion started by: mosavani
5 Replies

7. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

8. Linux

send mail purtcular subject forward

Hai can you help it out i am using send mail server in that some messages are teged with spam that messages has to forwaded to putecular Id and it has to removed from the user. s.sheik (1 Reply)
Discussion started by: s_sheik
1 Replies

9. UNIX for Dummies Questions & Answers

.forward and alias mail forwarding questions

I am trying to configure sendmail to forward email to a PHP script. I don't know UNIX and am having trouble figuring out how to forward the mail. I think this is just a bunch of basic questions, but I have had little luck getting help elsewhere on my specific questions and it's driving me nuts. You... (3 Replies)
Discussion started by: bitt3n
3 Replies

10. Solaris

forward root mail

how can i forward roots mail, i want every mail fowarded (1 Reply)
Discussion started by: csaunders
1 Replies
Login or Register to Ask a Question