Sendmail reply-to email always the same when in a virtualhosts environment
I am running an ubuntu 16.04 server (no cpanel) and have sendmail installed to use to send emails for cron and my many websites that I host. Problem is that I have one main domain name on this vps (digital ocean) when I set it up at first and then many virtual hosts under which I host other websites. When these virtual sites' contact forms send emails the reply-to email is always the email which sendmail is using for my main site and not the virtual site's email from which it is sent. Is there any way to tell sendmail to use a reply-to in accordance with the virtual domain the contact-form email has come from and not just always use the default email address? Each virtual host has its own free email & email address setup under its domain name hosting provider and hence coinciding mx record pointers at digital ocean pointing to that hosting provider.
Looking at sendmail documentation there seems to be some "features" that may help but I'm not sure which one - e.g. nocanonify, nullclient, or virtusertable or access_db.
If anyone could point me in the right direction it would be greatly appreciated.
|