LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-28-2006, 08:21 AM   #1
yunus.raza
LQ Newbie
 
Registered: Jul 2004
Location: India
Posts: 16

Rep: Reputation: 0
Mail forwarding using Sendmail


Hi,

I am using Sendmail ver 8.76.4.16 on Red Hat Linux 7.3 in the gateway mode.Users dont have mailbox on this server , it only has alias and forwards mail to the exchange server.

My server accepts mail for 2 domains lets say abc.com & xyz.com and all users have aliases.

I have a specific requirement of forwarding one of the user's mail to another mail server.

For eg: user1@abc.com wants to forward mails for this id to user1@yahoo.com.

Alias file is not accepting two entries for user1 and it doesnt forward to the external id if i give explicitly agaist the warnings.

Please help

-Yunus
 
Old 03-28-2006, 08:58 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
Alias file is not accepting two entries for user1 and it doesnt forward to the external id if i give explicitly agaist the warnings.
Why would you need 2 aliases?
Simply make any mail to "user1" be forwarded to both the yahoo address and your exchange server with 1 alias.
ie
user1: address1, address2

See also:
man aliases
 
Old 03-28-2006, 09:02 AM   #3
yunus.raza
LQ Newbie
 
Registered: Jul 2004
Location: India
Posts: 16

Original Poster
Rep: Reputation: 0
That user has two id's user1@abc.com & user1@xyz.com. MX record for both the domains are pointing to same server. And that user only wants to forward mails to yahoo for id user1@abc.com, mails for the other id user1@xyz.com still needs to go to the exchange mailbox.

How do i tell sendmail to forward mails for user1@abc.com to yahoo and user1@xyz.com to the exchange mailbox.
 
Old 03-29-2006, 01:23 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Check out:
http://www.skillreactor.org/tutortxt/mailserv.htm
At least one of the config files for Sendmail should allow what you're trying.
 
Old 04-19-2008, 01:44 AM   #5
ynilesh
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
You need to /etc/virtusertable.....
where you can forward mails some thing like this.....

webmaster@another-site.com webmasters
@another-site.com marc
sales@my-site.com sales@another-site.com

- here webmaster@another-site.com will forward mail to webmasters users mailbox.

- all @another-site.com mails will forward to marc user mailbox.
 
  


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
Sendmail second server/mail forwarding? WorldBuilder Linux - Networking 4 03-11-2004 06:10 PM
mail forwarding problem with sendmail JelloMaster Linux - Software 18 08-14-2003 09:10 AM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM


All times are GMT -5. The time now is 04:58 PM.

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