Chào mừng bạn đến với Diễn Đàn Máy Chủ - Chia sẽ kiến thức máy chủ.
  • Đăng ký
    • Login:
    Server Dell email 247 Tên miền Hosting giá sốc Tang loa Frei Tang loa Frei Tên miền tiếng việt giá bèo cdn rẻ vô địch May Chu Khong Lo - Gia Xi Trum SSL 2 nam giam 15%
    + Trả lời bài viết
    Hiện kết quả từ 1 tới 1 của 1
    1. #1
      Advisors
      Tham gia ngày
      Aug 2009
      Đến từ
      Nha Trang
      Bài gửi
      1.287

      Mặc định Installing DomainKeys and SPF Records on Cpanel

      DomainKeys (DKIM) and SPF records are becoming a common, and annoying, demand among email providers, mainly Yahoo and Hotmail. In short, both are meth*** of email authentication designed to verify email integrity, by linking a sender to a specific server or hostname. In other words, DomainKeys and SPF records specify what servers can send email on behalf of a domain name.

      You’ll want DomainKeys and SPF records if your users have trouble sending email to certain providers, or they are having issues with spoofed (forged) email. CPanel currently allows two easy ways for you or your users to set up email verification. This is supported at least from cPanel 11.18 onward.

      User-Level:

      You can enable the “Email Authentication” feature in WHM ~> Feature Manager, which will enable the Email Authentication icon in the users’ cPanels where they can create DomainKeys and SPF records for their domain(s).

      Root-level:

      There are scripts in /usr/local/cpanel/bin that can install these on a per-user basis:

      /usr/local/cpanel/bin/domain_keys_installer $user

      /usr/local/cpanel/bin/spf_installer $user
      (and corresponding scripts to remove, like spf_uninstaller and domain_keys_uninstaller)

      If you want to hit up everyone on the server, you can run my for loop one-liner:

      for user in `ls -A /var/cpanel/users` ; do /usr/local/cpanel/bin/domain_keys_installer $user && /usr/local/cpanel/bin/spf_installer $user ; done

      Now what about new users? cPanel already though of that, and has options to create hooks for when after an account is created. To set up the server to automatically create an SPF record and DomainKey for new accounts, edit /scripts/postwwwacct and paste in the following code:

      #!/usr/bin/perl

      my %OPTS = @ARGV;
      $ENV{USER} = “$OPTS{‘user’}”;
      system q(/usr/local/cpanel/bin/domain_keys_installer $USER);
      system q(/usr/local/cpanel/bin/spf_installer $USER);

      To verify an SPF record and/or DomainKey, you can run a DNS check:
      dig default._domainkey.$domain TXT

      dig $domain TXT
      A technical note about DKIM:

      You might know that DKIM is actually a generated key pair, similar to an SSH or SSL Certificate’s RSA key. CPanel stores these files in /var/cpanel/domain_keys, where the public folder contains the key reflected in the DNS zone, and the private folder contains the private key. You may have users that actually authenticate via DKIM in their mail clients, in which case you may need to provide them with the private key in order for them to sent email.
      Lần sửa cuối bởi canvu; 26-04-2011 lúc 10:08 PM Lý do: Ap dung tren Cpanel thoi
      Chấp Nhận Thua 1 Trận Chiến Nhưng Sẽ Thắng Cả Cuộc Chiến .

     

     
    + Trả lời bài viết

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

    Chủ đề tương tự

    1. Trả lời: 5
      Bài cuối: 13-05-2015, 01:57 PM
    2. Installing Mod Security in Plesk for linux !
      By vô danh in forum Plesk CP For Linux
      Trả lời: 0
      Bài cuối: 03-08-2010, 05:46 PM
    3. Cấu trúc thư mục của CPANEL
      By canvu in forum Cpanel
      Trả lời: 0
      Bài cuối: 04-07-2010, 10:24 PM
    4. Trả lời: 0
      Bài cuối: 19-08-2009, 07:36 PM
    5. Trả lời: 0
      Bài cuối: 19-08-2009, 04:27 PM

    Quyền viết bài

    • Bạn không thể gửi chủ đề mới
    • Bạn không thể gửi trả lời
    • Bạn không thể gửi file đính kèm
    • Bạn không thể sửa bài viết của mình