Singapore Flyer

Monday, March 11, 2013

Yum not working in Oracle Linux

We have a new Oracle Linux 5.8 box. Yum is not working in that box.

[root@oraclelinux129 ~]# yum install compat-db
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
No package compat-db available.
Nothing to do

Fix :

cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-el5.repo
 
I need to edit the repo file to set enabled=1 for the correct 
channel [ol5_u7_base] and then I can install the oracle-validated RPM 
using yum
 
yum install oracle-validated -y
 
 

Sunday, March 3, 2013

badmailfrom

I need to block an email address in Qmailtoaster.(Incomming)

Take a backup of file /var/qmail/control/badmailfrom
If we add

shivinvijai@gmail.com
yahoo.com

Save
(No need to reload cdb)

Qmailserver will block any mail from shivinvijai@gmail.com and it will block any users from domain yahoo.com (user1@yahoo.com,user2@yahoo.com) etc...