Postfix max message and mailbox size settings.

To check the current settings for postifx:

postconf mailbox_size_limit
The default mailbox size is 51200000.

postconf message_size_limit
The default message size is 10240000.

To change it:

vi /etc/postfix/main.cf

mailbox_size_limit = newmailboxsize
message_size_limit = newmessagesize

Restart postfix

Redhat RHEL5 – build kernel from src.rpm

Download the kernel-2.6.xx-x.*.src.rpm from http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/.

rpm -ivh kernel-2.6.xx-x.*.src.rpm

cd /usr/src/redhat/SPECS

rpmbuild -bb –target=i686 kernel-2.6.spec

cd /usr/src/redhat/RPMS

rpm -ivh kernel-2.6.xx-x.*.rpm

MacOS keyboard shortcuts.

Here are some common keyboard commands used in other operating systems.

Page Up = Fn+UpArrow
Page Down = Fn+DownArrow
Home = Fn+LeftArrow
End = Fn+RightArrow
Del = fn+delete

Linux – procmail to delete mail from a user.

# ls -la .procmailrc
-rw-r–r– 1 username users 129 Mar 13 15:08 .procmailrc

# cat .procmailrc
SHELL=/bin/sh
MAILDIR=$HOME/Mail
DOMAIN=mydomain.com
LOGFILE=$HOME/.procmailrc.log

:0
* ^From email@address.com
/dev/null

Microsoft SQL – Rebuild Indexes

You can use the following command to simply rebuild all the indexes on a table.

DBCC DBREINDEX(tablename, “”,0)

MacOS – Obtain hardware information from command line

The command “system_profiler” will return all the hardware information.

Other useful commands include sw_vers, hostinfo, and uname -a.

WordPress 2.7 automatic updates.

To utilize the automatic update facility in WordPress 2.7 and greater, the files need to be owned by the same user as the user the web server runs as. For example, a linux installation would need to have the files owned by the apache user and group. I did this by using the following command:

chown -R apache.apache /usr/local/wordpress

From here, the update worked fine. The google analytics plugin worked fine as well.

Tversity in Vista Ultimate Joined to Domain/Directory

To get Tversity to install/run on a Vista Ultimate installation that is joined to a domain, I had to disable “User Access Control.” I did it via the msconfig utility executed from a “Command Prompt.” Go to Tools/Disable UAC.

Note: If Vista is not joined to a domain, you can disable “User Access Control” via Control Panel/User Accounts/User Accounts.” From there, you can click “Turn User Account control on or off.”

You have to reboot after changing the setting.

Forcing VMware session to boot in the BIOS.

Add the following to the .vmx configuration file for the guest.

bios.forceSetupOnce = “TRUE”

To check and SRV Domain Controller record in Windows 2k.

From a command prompt:
nslookup
set q=srv
_ldap._tcp.dc._msdcs.Active_Directory_domain_name

Return top

INFORMATION