Archive for the ‘Miscellaneous’ Category

Postfix messages limits

Wednesday, July 23rd, 2008

These are only basic limits, that are valid for entire host-domain. These can be set fairly high, if you really need that. Later on, you can impose other limits with some milter filters.

Current values can be seen with:

postconf  | grep 'mailbox_size_limit\|message_size_limit\|virtual_mailbox_limit'

Default values are:

postconf -d | grep 'mailbox_size_limit\|message_size_limit\|virtual_mailbox_limit'

Edit values with:

postconf -e 'message_size_limit = 104857600'

This changes /etc/postfix/main.cf confguration file. Mine values are:

# 100 Mb
message_size_limit = 104857600

# 1 Gb
mailbox_size_limit = 1073741824
virtual_mailbox_limit = 1073741824
Milters I’ve found while looking for mail throttling

Best milters that I found, excluding the ones that provide graylisting functionality, were:

  • j-chkmail: Multipurpose mail filtering software.
  • Milter-regex: Reject mail matching regular expressions. Simple and can be usefull.
  • Mailfromd: General-purpose mail filtering daemon. It looked too complicated for me.
  • milter-limit: Limit number of mails, per sender. Looks like it has not enough documentation.
  • milter-length: Limiting mails by message size.

But, milters are native for Sendmail, not Postfix (but they work in latest Postfix). Analog solution for Postfix is to use some Policy Daemon:

  • postfix_policy: It has a web interface as a plus. This looks logical to me, because it allows a administrator to configure in an easy way.
  • postfwd: The configuration looked the simplest to me. S I decided to go with this one.
  • ACL Policy Daemon: Apolicyd (Python) does have message size limiting, but does not have message count (rate-limiting or throttling) control. And, according to this post, it is very heavy on the server load. So, it’s out.

These are actively maintained, and Policyd-weight is not active anymore. Finally, I decided to go for Postfwd.

In response to “Facial hair as a measure of coding progress”

Friday, June 27th, 2008

I just stumbled on a post that I just had to contribute mine photos. Here they are…

After lots of codingWithout the cigaretteNormal at that timeTwo years later, with less coding and more fun

intoDNS: At last I found very good alternative for now-not-free dnsstuff.com’s DNSReport

Saturday, June 21st, 2008

Great tool – everything that I wanted. So check out the http://www.intodns.com/

One month after, the server is out of reach. Just in case – I found another comparable one: http://dnssy.com/

Fedora 8: Desktop Setup

Monday, June 9th, 2008

YUM Repositories

Fedora has 2 repositories named ‘fedora’ and ‘updates’. To use them and not get errors about unsigned packages you must import their GPG keys.

Install additional repositories with:

rpm --import /etc/pki/rpm-gpg/*
sisa

Livna

rpm -hiv http://rpm.livna.org/livna-release-8.rpm
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

Information about the Tigro repository. It is compatible with Livna, but not with Freshrpms repository. Non-free version contains couple of usefull utilities
as VirtualBox (Sun’s open source VMware pandan), Skype (not to go directly and add a repository), etc.

http://tigro.info/blog/index.php?id=483

rpm -hiv ftp://ftp.msiu.ru/pub/fedora/tigro/tigro-release-8-1.i386.rpm
rpm -hiv ftp://ftp.msiu.ru/pub/fedora/tigro/nonfree-release-8-1.i386.rpm

Tigro repository

rpm -hiv ftp://ftp.msiu.ru/pub/fedora/tigro/tigro-release-8-1.i386.rpm

Install nice and sharper fonts in Gnome

1. Sharp fonts / core fonts

http://www.howtoforge.com/sharp_fonts_gnome

http://txt.binnyva.com/2007/04/installing-ms-core-fonts-on-linuxfedora/ (fali repository, http://www.fedoraforum.org/forum/showthread.php?p=1016903)

yum install freetype-freeworld (if you have livna or tigro repository)

http://corefonts.sourceforge.net/ (This does not have Tahome, so I use the following instead)

http://www.sharpfonts.com/

yum install cabextract

mkdir -p /tmp/fontscd /tmp/fonts

wget --recursive --level=1 --no-parent --no-directories --accept "*32.exe" http://www.sharpfonts.com/fonts/

mkdir -p /usr/share/fonts/truetype/

cabextract -d /usr/share/fonts/truetype *32.exe

wget http://www.sharpfonts.com/fontconfig.tbz

tar xvjpf fontconfig.tbz -C /etc/fonts/

Now, restart X with <Ctrl><Alt><Backspace>

Final tweaks

As user (not root): echo "gtk-menu-popup-delay=0" >> ~/.gtkrc-2.0

Fedora 8: Multiple Network Fedora Installations

Monday, June 9th, 2008

I wanted to have an automatic installation of multiple workstations, and automatic updating of them, from local source, via yum. First goal was achieved via Kickstart utility that is included in Fedora. If not installed, you could install it with yum install system-config-kickstart. The second goal is accomplished with utility called reposync that is part of an yum-utils (yum install yum-utils).

Automatic installation options with Kickstart utility

When installed, Kickstart is found in Applications -> System Tools -> Kickstart. With this utility, you create the options file for unattended installation. Basically, I followed the instructions from this link, but I decided to use a standard CD as a source (not NFS), and just to use a Kickstart as the fastest way to select the applications.

Local repository

You should install all the repositories that you will need.

Create a directory (mine is /home/shared/yum.local.repo). Then, execute yum install yum-utils to surely have a reposync utility.

Then copy the DVD content to the local repository.

mkdir /mnt/cdrom

mount /dev/cdrom /mnt/cdrom

cd /mnt/cdrom/Packages

cp -r . /home/shared/yum.local.repo/fedora/Packages/

cd /
eject cdrom

To synchronize every repository, execute reposync -n --download_path=/home/shared/yum.local.repo. For specific repositories, execute:

reposync -n –download_path=/home/shared/yum.local.repo
–repoid=livna –repoid=remi
–repoid=utterramblings
–repoid=tigro
–repoid=freshrpms
–repoid=updates –repoid=fedora

Then, share that with the world…

chkconfig –list nfs

service nfs status

chkconfig –level 235 nfs on

service nfs start

nano /etc/exports

/home/shared/yum.local.repo 192.168.0.0/255.255.255.0(ro)exportfs -r

Sources of information are:

http://www.howtoforge.com/setting-up-a-local-yum-repository-fedora8,

http://www.howtoforge.com/creating_a_local_yum_repository_centos

http://www.howtoforge.com/nfs-server-and-client-debian-etch

Accounting packages freely available

Saturday, November 24th, 2007

If you are looking for LAMP (PHP /MySQL or PostgreSQL) Accounting and ERP solutions, I hope that these links will be very helpfull to you (as they are for me). (more…)

Novi Admin interfejs za Joomlu

Friday, November 16th, 2007

Stvarno fenomenalno. Mislim, interno je fenomenalno napisan. Mnogo je brži, a ima odličan sistem prevođenja, koji ih i ja možda primenio na nekim drugim projektima. Nama taj sistem ne radi, pošto smo mi već naš sistem preveli ručno, ali imaj to u vidu.

activeCollab

Friday, November 9th, 2007

Ubačena su neka značajna poboljšanja. Međutim, za njih se izgleda mora prebaciti u root domena. Čisto da znaš (greška InvalidControllerActionError)

SugarCRM Optimizacija brzine

Saturday, November 3rd, 2007

Jedan od bitnih elemenata ubrzanja Sugar-a je Expire…

Međutim,  meni pravi mnogo problema (previše kešira, pa nemam pojma kada je nešto dodato ili nije). Trebalo bi da ide ovako:

<Directory /var/www/web30/web/>
Options +Includes +FollowSymlinks -Indexes
AllowOverride All
Order allow,deny
Allow from all

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript application/x-javascript text/css

ExpiresActive On
ExpiresByType text/html “access plus 1 day”
ExpiresByType text/css “access plus 1 day”
ExpiresByType text/javascript “access plus 7 days”
ExpiresByType application/x-javascript “access plus 7 days”
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/x-icon “access plus 1 month”

AddType text/x-component .htc
ExpiresByType text/x-component “access plus 1 day”

<Files ~ “^\.ht”>
Deny from all
</Files>
</Directory>

php_admin_value open_basedir /var/www/web30/web:/var/lib/php/session:/var/www/web30/phptmp
php_admin_value upload_tmp_dir /var/www/web30/phptmp
php_admin_value max_execution_time 60
php_admin_value output_buffering 409600

php_admin_value memory_limit 64M
php_value upload_max_filesize 8M
php_value post_max_size 8M

ali sma morao da skinem:

ExpiresByType text/html “access plus 1 day”

SugarCRM – Ma mučenje bre

Saturday, November 3rd, 2007

Fuck you

problems when installing SugarCRM.
posix_getcwd, change every getcwd to that…

glob replacement – a i ima ga samo na jednom mestu, u file_utils… napravio sam jeftinu zamenu…

blank.gif everywhere u temama…

Razne zajebancije sa optimizacijom

Inače, za Import, mora OGROMNO memorije… Stavio sam za to 256Mb