Well first of all this is for postfix
First run
mailq
to see the queue for the server, after this you take the id and run
postcat -q ID
This will print full e-mail from queue
July 27, 2012
how to view the body of a message that is in the queue
July 18, 2012
PAM adding faulty module: /lib64/security/pam_fprintd.so centos 6 problem
I found the following in a /var/log/secure log on a RHEL6 minimal installation:
Jul 18 22:35:01 ns3 crond[19830]: PAM adding faulty module: /lib64/security/pam_fprintd.so
Jul 18 22:35:01 ns3 crond[19831]: PAM unable to dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so: cannot open shared object file: No such file or directory
To disable using the PAM module, I used the following command:
authconfig --disablefingerprint --update
June 11, 2012
How to change MySql root password
1) Login to mysql server, type the following command at shell prompt:
$ mysql -u root -p
2) Use mysql database (type command at mysql> prompt):
mysql> use mysql;
3) Change password for user root, enter:
mysql> update user set password=PASSWORD("NEWPASSWORD") where User='root';
4) Finally, reload the privileges:
mysql> flush privileges;
mysql> quit
June 8, 2012
A lot of error when try to install ffmpeg
Hello
If you ever have one of this bellow error
ERROR: libopenjpeg not found
ERROR: libtheora not found
ERROR: libvorbis not found
ERROR: libxvid not found
ERROR: X11 not found
then you should try this if you are on centos / rhel
yum install libjpeg-devel libtheora-devel xvidcore-devel libX11-devel openjpeg-devel
ERROR: libmp3lame >= 3.98.3 not found
Well if you have this error when you try to install ffmpeg then you must download lame from sourceforge
wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz?r=http%3A%2F%2Fffmpeg.zeranoe.com%2Fforum%2Fviewtopic.php%3Ff%3D5%26t%3D94&ts=1339140293&use_mirror=ignum
After
tar -zxvf lame-3.98.4.tar.gz
cd lame-3.98.4
./configure
make
make install
Don’t forget about ldconfig