DevHeads.net

Postings by Nikos Gatsis - Qbit

Centos 7 rsync problem

Hello list.

I have a problem with rsync on a FUJITSU PRIMERGY TX150 S7 mailserver
with Linux version 3.10.0-862.11.6.el7.x86_64.

Replace failed disk in raid

Hello list
A disk, part of a raid failed and I have to replace it.
My problem is the swap partition which is in raid0. The rest partitions
are in raid1 and I successfully removed them.
The partition in swap cant removed because is probably active.
How can I stop swap and remove partition?
After replacing the faulty disk and rebuilt how I start swap again?

Thank you in advance
Nikos

Dual boot on win 8 notebook

Hello list.
I need suggestions or tutorial of installing centos on an notebook with
win 8.1 already installed.
Than you in advance.

mount.cifs install problem

Hello list
After samba4 installation cant install cifs-utils.
Is there an other way of mount an externall network drive without using
mount.cifs?
I try mount -t cifs //192.168.10.230/OpenShare/srvbackup /mnt/backup/
But I get "is not a valid block device" error

I have centos-release-6-4.el6.centos.10.x86_64

This ext drive is also linked to a fedora server without problem.

Thank you in advance.
Nikos

php 5.1 to 5.3

Hello list
I'm managing a web server with centos-release-5-9.el5.centos.1.
I have php-5.1.6-40.el5_9 right now and I'd like to update it to php53.
I wander if its easy or complicated. If somebody have any instructions
I'd be very glad!

Thank you in advance.
Nikos

fail2ban problem

Hello list
I'm trying to setup fail2ban specially sasl action but I'm facing problems.
I have centos-release-5-9.el5.centos.1
and
fail2ban-0.8.7.1-1.el5.rf
installed
with selinux disabled

The errors I get are:
INFO Creating new jail 'sasl-iptables'
fail2ban.comm : WARNING Invalid command: ['add', 'sasl-iptables',
'polling']

I tried gemin against polling but I get the same error.
The strange thing is that if I enable ssh action, starts with no problem.
So it appears to be problem with sasl action, witch is:

[sasl-iptables]

enabled = true
filter = sasl
backend = polling
action = ip

Limit max number of e-mails sent per hour

Hello list
I use sendmail-8.14.4-8.el6.x86_64 and I wonder how to restrict the
number of emails sendmail sent over an hour.
Is the define(`confMAX_QUEUE_RUN_SIZE', `200') command what I'm looking for?
Thank you in advance.
Nikos

php-pear problem on yum update

Hello list
I have centos-release-5-7.el5.centos and today I noticed that there are
some updates with yum.

I try to update but something hapend with php-pear:

file /usr/share/pear/.channels/__uri.reg from install of
php-pear-1.4.9-8.el5.noarch conflicts with file from
pa ckage
php-pear-ole-0.5-2.el5.rf.noarch
file /usr/share/pear/.channels/pear.php.net.reg from install of
php-pear-1.4.9-8.el5.noarch conflicts with
file from package
php-pear-ole-0.5-2.el5.rf.noarch
file /usr/share/pear/.channels

squirrelmail for 6.2

Hello list.
I have install centos-release-6-2.el6.centos.7.x86_64 and I cant find
squirrelmail.
Does any know why?

fail2ban help

Hello list.
I have a question for fail2ban for bad logins on sasl.
I use sasl, sendmail and cyrus-imapd.
In jail.conf I use the following syntax:

[sasl-iptables]

enabled = true
filter = sasl
backend = polling
action = iptables[name=sasl, port=smtp, protocol=tcp]
sendmail-whois[name=sasl, dest=my@email]
logpath = /var/log/maillog
maxretry = 6

and the following filter:

failregex = (?i): warning: [-._\w]+\[<HOST>\]: SASL
(?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(:
[A-Za-z0-9+/]*={0,2})?$

in iptables:

fail2ban-sasl tcp -- anywhere anywhere