Solved

forward emails without  deleting them from the server

Posted on 2001-06-05
8
313 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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
 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java core in Solaris 10 1 280
Virtualizing TAPE on dual VIOS 3 87
Invalid password trying to cannect to Unix server 2 78
Adding a continue option in a script 9 39
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.

805 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