Dear all,
Hope to have your input as I am new to sendmail
MX to mailforwarder
mailforwarder will forward emails to serverA and if user not found will forward the mail to ServerB
ServerB will receive the email for user that was not in ServerA and store it locally.
Domain for server A and B is domain.com
so both users in A and B will have an email address of
A@domain.com and B.domain.com
The server A configuration behave as it should be. It will forward email to Server B if the user is not in Server A
Problem:
How do I configure sendmail in Server B to
1. Any email received from serverA to be stored locally in B and any outgoing email from users in ServerB relay to mailforwarder
2. If users in Server B sending email to another user that resides in Server A, relay the email to mailforwarder
3. If users in server B sending email to another user that resides in the same Server B, it will locally save it to the sent user mailbox.
Some examples of the configuration and files needed to do this would be appreciated.