Thursday, August 11th, 2011
I’ve completed a qmail installation few days ago on a fresh installed Debian Squeeze 64 bit server. All is configured and works fine, except qmailadmin and vqadmin.
As the mail server was missing any kind of web mail administration panel, I needed to make at least one of the two above to make with qmail.
I decided to concentrate on qmailadmin and took the time to make it work. I used the following command lines and got the compile failure during make compilation:
debian:/usr/local/src/qmailadmin-1.2.15# ./configure --enable-cgibindir=/usr/lib/cgi-bin --enable-htmldir=/var/www/qmailadmin/ --enable-modify-quota
The source make failed with the following error:
In file included from template.c:45:
qmailadmin.h:37:1: warning: "MAX_FILE_NAME" redefined
In file included from template.c:28:
/home/vpopmail/include/vpopmail.h:146:1: warning: this is the location of the previous definition
template.c: In function "send_template_now":
template.c:505: error: "VERSION" undeclared (first use in this function)
template.c:505: error: (Each undeclared identifier is reported only once
template.c:505: error: for each function it appears in.)
make: *** [template.o] Error 1
make: Leaving directory `/usr/local/src/qmailadmin-1.2.15'
make: *** [all] Error 2
To workaround these compile issues, I’ve had to modify the C source file belonging to qmailadmin ( template.c ), e.g.:
debian:/usr/local/src/qmailadmin-1.2.15# vim template.c
In the file I had to add besides the line:
#define VERSION ""
Aterwards qmailadmin’s compile and install via make && make install-strip succeeded and now works perfectly fine 😉
Tags: Administration, administration panel, amp, bit, c source, code, compilation, configure, configured, failure, few days, file, function, identifier, installation, lib, Linux, location, mail administration, mail server, make, name, oncetemplate, panel, qmail installation, qmailadmin, quot, Quota, source file, squeeze, template, template c, time, undeclared identifier, util, version, vim, vqadmin
Posted in Linux, Qmail, System Administration, Web and CMS | 13 Comments »
Friday, August 5th, 2011
One of the servers running Cpanel has been suspended today and the Data Center decided to completely bring down our server and gave us access to it only through rescue mode running linux livecd.
Thus I had no way to access the Cpanel web interface to suspend the “hacker” who by the way was running a number of instances of this old Romanian script kiddies brute force ssh scanner called sshscan .
Thanksfully Cpanel is equipped with a number of handy scripts for emergency situations in /scripts directory. These shell management scripts are awesome for situations like this one, where no web access is not avaiable.
To suspend the abuser / (abusive user ) I had to issue the command:
root@rescue [/]# /scripts/suspendacct abuse_user
Changing Shell to /bin/false...chsh: Unknown user context is not authorized to change the shell of abuse_user
Locking Password...Locking password for user abuse_user.
Suspending mysql users
warn [suspendmysqlusers] abuse_user has no databases.
Notification => email@example.com via EMAIL [level => 3]
Account previously suspended (password was locked).
/bin/df: `/proc/sys/fs/binfmt_misc': No such file or directory
Using Universal Quota Support (quota=0)
Suspended document root /home/abuse_user/public_html
Suspended document root /home/abuse_user/public_html/updateverificationonline.com
Using Universal Quota Support (quota=0)
Updating ftp passwords for abuse_user
Ftp password files updated.
Ftp vhost passwords synced
abuse_user's account has been suspended
That’s all now the user is suspended, so hopefully the DC will bring the server online in few minutes.
Tags: brute force, center, data, document root, emergency, emergency situations, few minutes, file, Ftp, ftp passwords, hacker, handy scripts, home abuse, instances, level, level 3, livecd, management scripts, mysql users, notification, number, password, password files, quot, Quota, quota support, rescue, rescue mode, root, santrex, scanner, script, script kiddies, Shell, shell command, ssh, Success, Universal, web access, web interface
Posted in System Administration, Various, Web and CMS | 1 Comment »