Mail forwarding using Sendmail
I am using Sendmail ver 18.104.22.168 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: firstname.lastname@example.org wants to forward mails for this id to email@example.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.
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 firstname.lastname@example.org & email@example.com. MX record for both the domains are pointing to same server. And that user only wants to forward mails to yahoo for id firstname.lastname@example.org, mails for the other id email@example.com still needs to go to the exchange mailbox.
How do i tell sendmail to forward mails for firstname.lastname@example.org to yahoo and email@example.com 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 firstname.lastname@example.org 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:13 AM.|