Monthly Archives: March 2013

Mount Linux folders from one location to another

All on one server…. First why do it : because user2 has access only to one of user1’s folders. Neat 😉 How to do it : # mount -o bind /home/user1/folder1 /home/user2/folder2/ Note : /home/user2/folder2/ must exist as target location … Continue reading

Posted in Linux | Tagged | Comments Off on Mount Linux folders from one location to another

Relay that is not….

So it looks like relay, but it is not. Seen from outside, it looks like it comes from a local mail address, but IP is somewhere in China, and it sends to (obviously) spam addresses : Mar 16 18:34:02 mail-2012 … Continue reading

Posted in Linux | Tagged | Comments Off on Relay that is not….

Carob cookies

Carob cookies have a specific taste, and are bes with tea or coffee : 200gr of corab 2 soup spoons of honey 1 backing powder 3 whole eggs 200 gr margarine 2dl yogurt (or milk) a bit of olive oil … Continue reading

Posted in Kitchen | Tagged , | Comments Off on Carob cookies

Is your mail server a (open) relay?

Here is how you can test it : Test 1 From another server log onto your mail server, using its outside IP address (or name) : # telnet outside-IP 25 Trying outside-IP… Connected to mail-2012.my.domain (outside-IP). Escape character is ‘^]’. … Continue reading

Posted in Linux | Tagged , | Comments Off on Is your mail server a (open) relay?

Root logging through network – a bad idea

How to get rid of the option to log onto server as root, through network (using Putty, that is SSH)? Well that option should not be active at all, but if it is, here is how you disable it : … Continue reading

Posted in Linux | Tagged , | Comments Off on Root logging through network – a bad idea

Dovecot log error

If you have such a error in /var/log/dovecot-lda : lda(korisnik1): Error: fchown(/home/user1/mail/.imap/INBOX/dovecot.index.cache.lock, -1, 12(mail)) failed: Operation not permitted (egid=2073(user1), group based on /var/spool/mail/user1) Or something like this in mailq : r289QLbk027831 3111 Fri Mar 8 10:26 (Deferred: local mailer (/usr/libexec/dovecot/deliver) … Continue reading

Posted in Linux | Tagged , , | Comments Off on Dovecot log error

RHEL yum problems

If you get such problem as this when using YUM on RHEL system : # yum install xxxxx Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, : subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager … Continue reading

Posted in Linux | Tagged | Comments Off on RHEL yum problems

SpamAssassin key words

Key words definitions and their weight factors are stored in file : /etc/MailScanner/spam.assassin.prefs.conf The point is that such definitions MUST be given in a certan way, or they will simply not be applied. Here is how those definitions must look … Continue reading

Posted in Linux | Tagged | Comments Off on SpamAssassin key words

MySQL commands

Some (often used) commands for MySQL DB…. Logging into DB : # mysql -u root -p How to show colons in table named “users” : mysql> show columns from users; How to show only some fields from table “users” : … Continue reading

Posted in Linux | Tagged , | Comments Off on MySQL commands