The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mail forwarding in small network with mailserver hjallebk IP Networking 1 12-11-2007 03:01 PM
Forwarding mail with sendmail annececile UNIX for Advanced & Expert Users 2 01-24-2002 12:48 AM
Sendmail - forwarding mail warrend UNIX for Dummies Questions & Answers 1 12-14-2001 08:26 AM
Forwarding Mail from Unix account jsillers UNIX for Dummies Questions & Answers 2 12-09-2001 08:08 PM
E-mail forwarding BigBro UNIX for Dummies Questions & Answers 1 12-03-2000 08:40 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2008
Registered User
 

Join Date: Dec 2006
Posts: 131
Question Unix mail forwarding

Hi Everyone,

I am an intermediate to Unix.I want to forward the incoming messages for my Unix Account 'pdileep' to another mail account 'pdileep@ncmail.com'.
I tried out .forward option,but the forwarded message was not there in my Unix Account.

My requirement is like,i want to forward the incoming mail to another account in a different domain at the same time retain the copy of the forwarded message in my Unix mail account itself.

Can anybody provide a solution for this?Your help is appreciated.


With Regards
Dileep Pattayath
Reply With Quote
Forum Sponsor
  #2  
Old 04-21-2008
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Hi,
If you have procmail try this on your .procmailrc
Code:
:0c:
!anotheraccount@domain.xxx
will send a copy to notheraccount@domain.xxx hopefully!
Reply With Quote
  #3  
Old 04-21-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
The second colon is erroneous, and should be omitted. (It won't do anything, except produce "cannot deduce lock file" errors in the log.)

.forward is the traditional Sendmail mechanism but if your MTA is Exim, for example, it (optionally) uses a different system. Can you find out which mail server your system is running?

Last edited by era; 04-21-2008 at 07:55 AM. Reason: Removed erroneous tirade, misread the question
Reply With Quote
  #4  
Old 04-21-2008
Registered User
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 183
In exim, "\" means local delivery, so if you use exim, your .forward should look like:
Code:
my_other_account@anywhere.com
\local_account_name
Reply With Quote
  #5  
Old 04-21-2008
Registered User
 

Join Date: Dec 2006
Posts: 131
Post

Quote:
Originally Posted by andryk View Post
Hi,
If you have procmail try this on your .procmailrc
Code:
:0c:
!anotheraccount@domain.xxx
will send a copy to notheraccount@domain.xxx hopefully!
Great !It's working.Thanks a lot for your time and solution
Reply With Quote
  #6  
Old 04-21-2008
Registered User
 

Join Date: Dec 2006
Posts: 131
Post

Quote:
Originally Posted by fabtagon View Post
In exim, "\" means local delivery, so if you use exim, your .forward should look like:
Code:
my_other_account@anywhere.com
\local_account_name
How come i am able to know,which MailServer is running.Since there is no local mailserver running and am routing my outgoing/incoming mails through the Relay Exchange Server.


Thanks
Dileep
Reply With Quote
  #7  
Old 04-21-2008
Registered User
 

Join Date: Dec 2006
Posts: 131
Post

Quote:
Originally Posted by fabtagon View Post
In exim, "\" means local delivery, so if you use exim, your .forward should look like:
Code:
my_other_account@anywhere.com
\local_account_name
Anyway,this is working my friend.I tried it and seems a great option.
Thanks for your comments
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0