Welcome to Centmin Mod Community
Register Now

Email Postfix email for multiple domains

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Rdurty2, Oct 29, 2016.

  1. Rdurty2

    Rdurty2 Member

    38
    9
    8
    Oct 31, 2015
    Ratings:
    +12
    Local Time:
    2:46 PM
    1.11.4
    10.0.27
    My current setup is one VPS server with centminmod latest beta installed. It has 2 vhost domains.


    Domain X is running Xenforo and uses Zoho for email. This email setup is currently working.

    Domain Y is running Wordpress and also uses Zoho for email. I set up everything for Zoho and this domain in the Linode DNS Manager, but am unsure of how to configure postfix to have multiple domains for email.

    Any one have a setup like this? What did you do?
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,239
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    4:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. Rdurty2

    Rdurty2 Member

    38
    9
    8
    Oct 31, 2015
    Ratings:
    +12
    Local Time:
    2:46 PM
    1.11.4
    10.0.27
    Maybe I'm understanding things incorrectly.

    Xenforo uses postfix for email out via Zoho for notification emails.

    Wordpress (different domain) needs to use email out when someone fills out the contact us form.

    Is this not possible?
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,239
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    4:46 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Postfix is configured for sending out emails for all domains out of box. So you're all taken care of for any site hosted on your server for Postfix outgoing emails sent from the main host name so emails sent from @mainhost.domain.com. Which is why Getting Started Guide step 1 for proper main hostname DNS configuration is important for properly email delivery via Postfix and also mentioned at Email - Steps to ensure your site/server email doesn't end up in spam inboxes | Centmin Mod Community

    But I have no intention of doing any local email pop3/imap support on Centmin Mod for receiving emails as I don't want to bother with troubleshooting mail delivery issues as there's so many factors outside of my control as to why mail isn't delivered on the internet. I don't plan on providing any free support for such email related matters either. So best to use 3rd party email providers for @yourdomain.com emails for best uptime, reliability, security and anti-spam and email user management. See a list of recommendations at Email - Free @yourdomain.com Email Accounts & Alternatives

    Tecmint actually has a 5 part article on setting up your @domain.com emails on CentOS 7 but part of their steps assume Apache web server instead of Nginx i.e. for phpmyadmin (centmin mod has it's own phpmyadmin.sh addon installer) and use of firewalld instead of Centmin Mod's CSF Firewall (which already setup proper whitelisted ports). But most of the email site setup is applicable. For properly postfix @domain handling you need to utilise MySQL, anti-virus/malware scanner and implement anti-spam management = all these can increase server resource usage dramatically. Virus scanning can blow out to an extra 4-8GB of memory and alot more cpu usage and local email disk storage will increase.
     
    Last edited: Oct 29, 2016