Solved

forward emails without  deleting them from the server

Posted on 2001-06-05
8
312 Views
Last Modified: 2013-12-27
Hello,
I use an email server on solaris and i like to forward emails that come in to another email address (by request from some users).I have done this by creating a file '.forward' in the users directory and writting the destination email in this file. The problem is that the emails do not remain in the server, they move to the email address written in the '.forward' file.
In fact i like to copy the incoming emails to another email address.How can i do this?
Thanks for your help
0
Comment
Question by:oceanis
8 Comments
 
LVL 1

Expert Comment

by:mshivdas
ID: 6157076
I think you can use the format:

\username, "remoteusername@remotesite"

0
 
LVL 1

Expert Comment

by:mshivdas
ID: 6157086
Whoops -- hit submit a second too soon.

I think you can use the format:

 \username, "remoteusername@remotesite"

in the .forward file in the user's home directory.
0
 
LVL 5

Expert Comment

by:dcgames
ID: 6157670
Will this cause a loop?
0
 
LVL 1

Expert Comment

by:mshivdas
ID: 6157682
It didn't when I tested it.    I believe that the \ stops the second loop from happening.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:mshivdas
ID: 6162037
To clarify further, to the best of my knowledge, the result of putting a \ before the username is that the message gets copied to the local mail spool rather than actually being "sent" back to the user which would potentially create a rather ugly mail loop.
0
 
LVL 1

Expert Comment

by:Haho
ID: 6172543
in sendmail, u can use the virtualuserdb to forward mails from one account to another or even to an external address..
we use this feature to provide email forwarding services to our users..
0
 
LVL 1

Expert Comment

by:Haho
ID: 6172547
0
 
LVL 1

Accepted Solution

by:
shanechambers earned 100 total points
ID: 6177832
The .forward functionality offers the ability to list more than one destination.  You can therefore put something like

user, user@remotesite.com

into the .forward file, and it would keep a copy in the local user's mail file (with no chance of a mail loop), and send a copy to the user@remotesite.com.

I do this all the time, and it works fine.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 79
UNiX Script filesystem space usage 19 69
Linux hostname change 2 55
aix unix tar error 3 43
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now