|
How do I point the virtual host to the new instance?
You don't. If you're following my advice from earlier, you're not going to be receiving mail via the second instance--only sending, since sending is where you're having problems.
To bind to a specific IP, you edit the master.cf file. Where it says:
smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes
Change it to:
192.168.1.1:smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes
This will need to be done for all of the services that you're keeping and for both Postfix instances--since a network bind command is either "all addresses" or "this address". This also probably introduces a lot of pain with regard to localhost mail clients that expect to connect on 127.0.0.1, which won't be bound unless you create a second directive for the services you need on localhost. This is actually getting really ugly!
Also, nothing but the system route determines the outgoing IP, and won't be different no matter which Postfix instance is sending. I'm not sure you can change that. Though your goal was to make the Postfix instance claim to be a specific hostname, and that doesn't require a different IP.
I'm thinking maybe the pains of trying this experiment are more than the results they'll provide (which I expect very strongly will be "nothing good").
Have you asked Hotmail what's triggering your messages being trashed? I know that Gmail and Yahoo are both pretty helpful about such things (actual spammers probably don't get treated nicely, of course, but legitimate mail users do usually get answers). If your problem were with Gmail, I could get you in touch with someone who could help, but I don't know anybody on the Hotmail team. ;-)
|