The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

install domain keys & spf record

Discussion in 'General Discussion' started by crazyaboutlinux, Mar 25, 2009.

  1. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    hi

    is there any option in cPanel server that when create a new account from WHM a new account should be create with domain keys & SPF record ??
     
  2. JPC-Martin

    JPC-Martin Active Member
    PartnerNOC

    Joined:
    May 31, 2008
    Messages:
    37
    Likes Received:
    1
    Trophy Points:
    8
    As per my knowledge I don't think so there is such a option availble in Cpanel or WHM.
     
  3. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
  4. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    hi

    i know this thing & i tried but it doesn't work

    i have tried to editing below are the codes in /scripts/postwwwacct by 1by1

    but the codes are doesn’t work

    we are using cPanel 11.24.4-S33345
    WHM 11.24.2 - X 3.9
    CENTOS 5.2 i686 on standard

    my %OPTS = @ARGV;
    my $user = $OPTS{’user’};
    /usr/local/cpanel/bin/domain_keys_installer $user

    #!/usr/bin/perl
    my %OPTS = @ARGV;
    my $user = $OPTS{’user’};
    system(”/usr/local/cpanel/bin/domain_keys_installer $user”);

    #!/usr/bin/perl

    print “\nStarting install of Domainkeys\n”;
    my %OPTS = @ARGV;
    my $user = $OPTS{’user’};
    system(”/usr/local/cpanel/bin/domain_keys_installer”, $user);
    print “\nDone with install of Domainkeys\n”;exit;

    then try to create a new account but it seems that does not create domain keys Automatically

    please tell what to do now
     
  5. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    Finally, it is working for me
    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)
    DONT FORGET THIS STEP

    chmod 711 /scripts/postwwwacct (after use this permission Domain keys & SPF record enabled it self)
     
Loading...

Share This Page