Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    45

    Default cPanel Universal Password Trap Problem

    I've spent hours on this issue but to no avail. It's a simple script using the Universal Password Trap to send me an email when a password is changed in cPanel. It outputs just fine if run from the shell, but it is not being called when a password is changed. I have the script in the right place according to the documentation (/usr/local/cpanel/Cpanel/ChangePasswd/SendtoBilling.pm), but it is not executed when a password is changed. Can anyone help me with this? I must be missing something. Thanks!

    #!/usr/bin/perl

    use strict;
    package Cpanel::ChangePasswd::SendtoBilling;

    my %OPTS = @_;
    my $username = $OPTS{'user'};
    my $password = $OPTS{'newpass'};
    my $mailAddy = '****@****.com';

    open (MAIL, "|/usr/sbin/sendmail -t") or die "\nReason: $!";
    print MAIL ("From: $mailAddy\n");
    print MAIL ("Subject: Password Change\n");
    print MAIL ("To: $mailAddy\n\n");
    print MAIL ("Username: $username\nNew Password: $password\n\n");
    close (MAIL);
    Last edited by mtbwacko; 11-10-2009 at 07:20 PM.

Similar Threads & Tags
Similar threads

  1. Using the Universal Password Trap
    By fusephase in forum cPanel Developers
    Replies: 10
    Last Post: 08-24-2011, 12:14 PM
  2. cpanel-universal-dnsonly
    By adapter in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-18-2005, 12:22 PM
  3. Universal index
    By w00t in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 05-21-2005, 11:23 AM
  4. hackers visits every 2 days. How to trap him?
    By Roy@ENHOST in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-07-2004, 04:54 AM
  5. CPanel Universal DNSonly
    By JapAniManga.ch in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-16-2004, 03:07 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube