Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Uncategorized»How to Add SPF Records for all Accounts on cPanel Server

    How to Add SPF Records for all Accounts on cPanel Server

    By RahulJune 4, 20131 Min Read

    This article will help to how to add SPF records for all accounts on cPanel server

    Advertisement
    1. For Single Account

    cPanel provides scripts to add SPF record in accounts. If you want to add SPF record in single account use following command as root user.

    # /usr/local/cpanel/bin/spf_installer <username>
    

    <username> : cPanel account name to which SPF need to configure.

    2. For All Accounts

    Use following script to add SPF records for all accounts on cPanel server.

    # for USER in /var/cpanel/users/*; do /usr/local/cpanel/bin/spf_installer "${USER##*/}"; done
    

    Reference:

    http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/EmailAuthentication

    cPanel SPF
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Understanding the difference between ‘git pull’ and ‘git fetch’

    Most Effective Industry Specific Plug-ins for WordPress

    How to Install Komodo Edit on Ubuntu 14.10, 14.04 LTS and 12.04 LTS via PPA

    View 3 Comments

    3 Comments

    1. maillot de foot on June 24, 2013 4:29 am

      I loved your post.Thanks Again. Really Great.

      Reply
    2. RoseHosting on June 6, 2013 8:36 am

      first of all, thank you for sharing such useful information. it’s always a pleasure to read great helpful articles.

      however, you have a typo in your ‘one-liner’ that you may want it fixed. It should be ‘$USER’ instead of ‘$USRE’.

      as for the one liner, you can use the following recommended and simpler solution:

      [code]# for USER in /var/cpanel/users/*; do /usr/local/cpanel/bin/SPF_installer “${USER##*/}”; done [/code]

      thanks

      Reply
      • Rahul on June 7, 2013 2:10 am

        Thanks dude, for pointing the typo and simpler solution.

        Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.