[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

forward emails without  deleting them from the server

Posted on 2001-06-05
8
Medium Priority
?
330 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses
Course of the Month18 days, 4 hours left to enroll

829 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