Sendmail with multiple domains
I have 5 or more domains/websites that I run and I need to be able to configure sendmail to send emails using Auth:LOGIN PLAIN with the correct details.
For example when user1 sends email from the local network to the local mailserver the mailserver accepts the email and then sends it to the SmartHost Domain1.com and i can get this to send with the login information from a client-info.db file, upto here is working ok
But then when user2 wants to send an email from domain2 i need sendmail to send it using a different set of credentials, ie using the mail.domain2.com mail server not domain1`s settings.
I guess i probably need to set different environments for each domain so i can have multiple configurations of sendmail running for each of my domains but I`m not sure how to do this.