Sending mail to server admin

arazit

Verified User
Joined
Aug 20, 2008
Messages
184
Hi
I want to send a email to me when my reselleres create a new user in my server.
how to do this?
 
It should do it automatically, to the address set up for your admin account.

Jeff
 
It send just users witch created from reseller level in admin account
 
Okay, I think I understand; it sends an email to the reseller and to the new user. It does NOT send to you. I just tried it. Sorry for the incorrect information.

Perhaps this should be a feature request; I've moved the thread to the Feature Request subforum.

Jeff
 
Hello,

If you want admin to be emailed for any user created on the system, created:
/usr/local/directadmin/scripts/custom/user_create_post.sh

In it, put:
Code:
#!/bin/sh
echo "user $username with $domain was created by $creator" | mail -s "$creator created $username on `hostname`" [b][email protected][/b]
exit 0;
chmod the script to 755.

John
 
Back
Top