Background: We would like to split transactional and promotional email. email.mydomain.com for promotional bulk messages, mail.mydomain.com for transactional and internal messages.
So far we have the DNS and local addresses set up and I think I understand most of how this works except for one thing. If a message is sent via the command line with
sendmail -t
How can I specify which sendmail instance to send with? (email.mydomain.com or mail.mydomain.com)
mail.mydomain.com sendmail instance listens on localhost and 192.168.1.15
email.mydomain.com sendmail instance listens on 192.168.1.25
Is it as simple as SSHing to the machine on the 192.168.1.25 interface and sending mail from there?
There doesn't seem to be a command line switch for sendmail. Am I missing something in my config or overlooking an important aspect of this somewhere?
I followed this for setting up another sendmail instance.
http://www.brandonhutchinson.com/Running_a_second_sendmail_instance.html