Mail forwarding using Sendmail
I am using Sendmail ver 126.96.36.199 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: email@example.com wants to forward mails for this id to firstname.lastname@example.org.
Alias file is not accepting two entries for user1 and it doesnt forward to the external id if i give explicitly agaist the warnings.
Simply make any mail to "user1" be forwarded to both the yahoo address and your exchange server with 1 alias.
user1: address1, address2
That user has two id's email@example.com & firstname.lastname@example.org. MX record for both the domains are pointing to same server. And that user only wants to forward mails to yahoo for id email@example.com, mails for the other id firstname.lastname@example.org still needs to go to the exchange mailbox.
How do i tell sendmail to forward mails for email@example.com to yahoo and firstname.lastname@example.org to the exchange mailbox.
At least one of the config files for Sendmail should allow what you're trying.
You need to /etc/virtusertable.....
where you can forward mails some thing like this.....
- here email@example.com will forward mail to webmasters users mailbox.
- all @another-site.com mails will forward to marc user mailbox.
|All times are GMT -5. The time now is 07:52 PM.|