LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-12-2006, 09:57 AM   #1
rafalek2
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
forwarding mail


HI,

Can anybody tell me how to forward mails like this:
I got only one system account and mail server use it and when I mail to rafal@aaa.com and rafal@bbb.com it deliver mails to this same account.

I want to do it like this:
If I receive mail to rafal@aaa.com then mailserver deliver it to rafal_a account and when to rafal@bbb.com it deliver to rafal_b account.

I thing this is .procmailrc or .forward file.

Thanks
 
Old 10-13-2006, 02:58 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Sounds like you are describing virtual hosting.

Although, in a very simple situation you could do something with a procmail rule (I would think...). Something like this in a procmailrc file:
Code:
:0:
* ^TO.rafal@bbb.com
/home/rafal_b
And a similar rule for aaa. The rc might not be exactly correct (that TO might need changing) but that is probably the way to do it on a very simple setup. Ultimately something like that would be done using virtual hosting:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Procmail: forwarding mail to remote mail account Cadmium Linux - Software 2 01-14-2010 01:05 PM
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
mail forwarding rvilo LQ Suggestions & Feedback 4 08-04-2006 09:09 AM
mail forwarding??? activeq Linux - Networking 1 07-29-2006 12:00 PM
mail forwarding Ammad Linux - Networking 4 05-25-2005 10:40 PM


All times are GMT -5. The time now is 07:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration