nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Redirect / forward mail to another user from specific address.

This is a discussion on Redirect / forward mail to another user from specific address. within the Mail Servers forums, part of the Mastering Servers category; Hello, I wish to intercept/forward emails that is sent to one user on multi user mail server.I only want email ...


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Linux answers from nixCraft.


Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 30-06-2009, 10:45 PM
Member
User
 
Join Date: Jul 2008
OS: Fedora
Posts: 41
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
nishith is on a distinguished road
Question Redirect / forward mail to another user from specific address.

Hello,

I wish to intercept/forward emails that is sent to one user on multi user mail server.I only want email from one specific address or group,to be redirected and it will be redirected to another user on same server.

The email should not arrive in original users inbox.

".forward" file can not give me such solution,because ".forward" file will forward all mails to another specific mail id,which i don't want. I want only specific users mails onto another local user.

Is this possible in sendmail?

Anybody have clear idea of "virtusetable" & "aliases" file?

Server runs sendmail only.

Shall "procmail" give us any solution?


Advanced Thanks,
Nishith Vyas
Reply With Quote
  #2 (permalink)  
Old 12-07-2009, 09:42 AM
Junior Member
User
 
Join Date: Jun 2007
OS: Freebsd, CentOS, Solaris, RHEL, Fedora, and Ubuntu
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
manish_2479 is on a distinguished road
Send a message via ICQ to manish_2479 Send a message via AIM to manish_2479 Send a message via MSN to manish_2479 Send a message via Yahoo to manish_2479
Default

Hi nishith,

You can use the alias file, wher you can define for one group which has all of those email address which need to be forwarded. For example there are two groups support and info the it should be like this

vi /etc/aliases
Code:
support: bob, tom, harry, george@domain.com, sam@domain2.com
info: ritesh, snajay, vivek, sony@domain1.com
So here bob, tom and harry are local user, whereas george an same are remote user.

Regards
Manish
Reply With Quote
  #3 (permalink)  
Old 13-07-2009, 10:40 PM
Member
User
 
Join Date: Jul 2008
OS: Fedora
Posts: 41
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
nishith is on a distinguished road
Exclamation How?

Dear Friend,

I think , /etc/aliases concept can not work due to limitation. Just tell me how it is possible to forward particular group mails onto another mail id?

This is a biggest question & i don't think alias file will work.

If i have 30 users & i have made a group i.e. "admin" in "/etc/aliases" file. Then how could i forward all "admin" group mails onto another mail id?

Can alias is having a facility to forward mails? or redirect mails ?

Please confirm.

I don't know more about "procmail". But, if anyone is having any idea & usability of PROCMAIL, please let me know.

May b i can get soln. by using PROCMAIL!!!!!!!!


Thanks,
Nishith
Reply With Quote
  #4 (permalink)  
Old 15-07-2009, 03:30 AM
Junior Member
User
 
Join Date: Jun 2007
OS: Freebsd, CentOS, Solaris, RHEL, Fedora, and Ubuntu
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
manish_2479 is on a distinguished road
Send a message via ICQ to manish_2479 Send a message via AIM to manish_2479 Send a message via MSN to manish_2479 Send a message via Yahoo to manish_2479
Default

Hi Nishit,

Did you tried it by editing /etc/aliases file

Suppose the emails are sent to admin@domain.com and you want to forward it to different email account then edit

vi /etc/aliases

Code:
admin:        bob, tom, harry, george@domain.com, sam@domain2.com
The run command newaliases this will update those settings and then restart sendmail.

For more information you can see this url
How To Forward Email with Aliases and Virtusertable

You have to try out, unless you not gone try out, it will be in restricted mode and you will not get the solution.

Thank you
Manish
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Per user mail attachment filtering rslrdx Mail Servers 1 26-03-2009 02:45 AM
VSFTPD: Only One IP Address allowed for one user javora Web servers 2 13-03-2009 01:36 PM
store sender mail address of incoming mails ephdia Databases servers 0 26-08-2008 12:19 PM
mail forward between ISPs picioslug Shell scripting 2 23-09-2006 04:53 PM
FetchMail/GetMail/Procmail mail forward between providers picioslug Linux software 0 19-09-2006 04:33 PM


All times are GMT +5.5. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38