Discover Centmin Mod today
Register Now

Install OpenDKIM and autoconfigure each new vhost

Discussion in 'Feature Requests & Suggestions' started by ethanpil, Nov 8, 2015.

Tags:
  1. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    5:41 PM
    I create a new VPS with a fresh install of Centos and CentMinMod.

    All of my system notifications are all going to my spam folder. Cron notices, WordPress notifications, etc.
    Would love to have a turnkey setup to create DKIM along with new vHost creation...

    OpenDKIM system seems very easily scriptable...
    Installing OpenDKIM RPM with Postfix or Sendmail (RHEL / CentOS / Fedora)


    What do you think?
     
  2. eva2000

    eva2000 Administrator Staff Member

    50,478
    11,663
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,088
    Local Time:
    5:41 PM
    Nginx 1.25.x
    MariaDB 10.x
    Unfortunately for anything beyond basic Postfix MTA setup for outgoing email, I prefer not to touch as troubleshooting and supporting email related delivery etc issues is something I do not want to do for free. There are variety of reasons why email isn't delivered and alot can be beyond just the server itself. It's why I suggest 3rd party email providers @yourdomain.com email hosting - CentminMod.com LEMP Nginx web stack for CentOS see discussion at Email - Free @yourdomain.com Email Accounts & Alternatives and Email - Zoho Mail Free @yourdomain.com Email Provider Setup Information

    @Tracy Perry does his own OpenDKIM setup manually on Centmin Mod LEMP stack though.

    I also recommend 3rd party DNS than locally hosted Email - Zoho Mail Free @yourdomain.com Email Provider Setup Information | Centmin Mod Community so that does make automation for such a bit harder

    For system notifications, you can also setup rules for email from and to and ensure they do not go to spam folder too. And/or setup DNS SPF records for the main hostname for the server using one of these wizards

     
    Last edited: Nov 8, 2015
  3. eva2000

    eva2000 Administrator Staff Member

    50,478
    11,663
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,088
    Local Time:
    5:41 PM
    Nginx 1.25.x
    MariaDB 10.x
  4. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    5:41 PM
  5. eva2000

    eva2000 Administrator Staff Member

    50,478
    11,663
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,088
    Local Time:
    5:41 PM
    Nginx 1.25.x
    MariaDB 10.x
    Actually wasn't much of a change of mind. Centmin Mod LEMP still does not setup and configure inbound @domain.com email i.e. pop3/imap etc. The OpenDKIM setup is just for postfix MTA outbound server sent emails from main hostname i.e. root@host.domain.com DKIM and SPF TXT record setups.
     
  6. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    5:41 PM
    Great. Thats all I ever wanted! Thanks for making CMM better and better!!
     
  7. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    5:41 PM
    Since I cant ask in the other thread.... Is there an easy way to sync all these dns settings between CMM and cloudflare?
     
  8. eva2000

    eva2000 Administrator Staff Member

    50,478
    11,663
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,088
    Local Time:
    5:41 PM
    Nginx 1.25.x
    MariaDB 10.x
    you mean Centmin Mod NSD zone files for locally hosted dns for when you use NSD as outlined at Domains - Domain name DNS setup on local NSD server | Centmin Mod Community ?

    NSD has the zone files at /etc/nsd/master/domain.com.zone where domain.com is domain name, so can copy those for reference or import if the destination DNS provider supports importing dns zones. Though Cloudflare usually can auto detect some DNS settings and auto import then when you add a new site to Cloudflare DNS - Cloudflare DNS Only Configuration | Centmin Mod Community

    within Cloudflare DNS Advanced options

    upload_2016-4-13_1-17-26.png