We have a multi-store set up in nopCommerce 3.20 with SSL enabled.
Our environment info as follows,
- Windows 2012 R2 VPS Server.
- .Net 4.5, SQL Server 2012 Express
- Multi SSL in Same IP using SNI.
- Win Pleask version 12.0.18.
- Email Server - MailEnable Standard Edition 7.53
Scenario
A domain (say domainalias.com. As standard nop setup) set up as a domain alias of maindomain.com in our VPS. Nop Commerce website is working fine with SSL for multi-store. Right now emails of domainalias.com works fine as email alias for maindomain.com. But problem comes when you try to reply for an email of domainalias.com. Right now replies only can be sent via maindomain.com not as from domain1.com
We are in a situation, where website should work as a part of alias as per nop multi-store design. But email should work as separate email server. That means, when a email from domainalias.com is replied, email should be sent as email@domainalias.com instead of email@maindomain.com
I am aware of one solution. It’s to buy a email server from service provider such as Google and update MX record in the vps for domainalias.com. But my company wouldn't not prefer this as costly.
Question 1
Is there any elegant solution you guys ever come across for this type email server configuration with multi-store environments? Any settings/config on Mail Enable can do the trick?
Question 2
Another suggestion which I came across is "Forwarding". Set up a 2 website hosting accounts in pleask for maindomain.com and domainalias.com and then and set the Forwarding type as "Frame forwarding" so that the destination address will not change in the address bar. This will solve email issue but I am not sure if SSL for website will work or not. Any idea on this weather if SSL will work or not?
Update
I think question was misunderstood. There is no issues on nop commerce sending order emails with corresponding domian or domainalias. I mentioned nop commerce only to get the full picture of our VPS infrastructure and the reason behind why its configured like that.
My issue is using mail server for normal email communication. Its nothing to do with nop commerce. Say, you are sending an email to sales@domainalias.com asking if a certain product is in stock, but when store owner clicks reply, by default "from" email for that reply turns to sales@domain.com instead of sales@domainalias.com. We wanted to have each domain to be shown as not related to each other for customers. Hope this helps.
Thanks.