Admin Life Errors, Fixes, and Encounters


setup domainkeys with postfix and freebsd on a jail

How to setup domainkeys for yahoo on freebsd 7.3 (I'm sure it works with older versions of freebsd) on postfix 2.7. This may seem long but it works! It's not that long of a process...

Fist, Install postfix and configure. This is a very basic setup, I'll have a more advanced postfix install in the near future.

cd /usr/ports/mail/postfix
make install clean
cd /etc
ln -s /usr/local/etc/postfix postfix
cd /etc/postfix

// change the following
myhostname =
mydomain =
myorigin = $mydomain
inet_interfaces =
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks =,

install dkfilters

cd /usr/ports/mail/dkfilter
make install clean

//Setting up the outbound filter

Generate a private/public key pair using OpenSSL:

cd /usr/local/etc/
openssl genrsa -out private.key 1024
openssl rsa -in private.key -pubout -out public.key

start up dkfilters, don't forget to change IP to your own IP

/usr/local/bin/dkfilter.out --keyfile=/usr/local/etc/private.key --selector=selector1 --method=nofws &

add to, 2nd line if a jail server

submission inet n - n - - smtpd
-o smtpd_etrn_restrictions=reject
#-o smtpd_sasl_auth_enable=yes
-o content_filter=dksign:[]:10027
-o receive_override_options=no_address_mappings
-o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
dksign unix - - n - 10 smtp
-o smtp_send_xforward_command=yes
-o smtp_discard_ehlo_keywords=8bitmime inet n - n - 10 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=
-o smtpd_authorized_xforward_hosts=

I got this error in the /var/log/maillog
postfix/local[11933]: fatal: open database /etc/aliases.db: No such file or directory
// to fix it...

cd /etc

# change resolv.conf if you haven't done so yet...
# update hosts with correct IPs of machine

// restart postfix

/usr/local/sbin/postfix stop
/usr/local/sbin/postfix start

May 31 22:00:22 mail1 postfix/postfix-script[12148]: stopping the Postfix mail system
May 31 22:00:22 mail1 postfix/master[12023]: terminating on signal 15
May 31 22:00:25 mail1 postfix/postfix-script[12224]: starting the Postfix mail system
May 31 22:00:25 mail1 postfix/master[12225]: daemon started -- version 2.7.0, configuration /usr/local/etc/postfix

didn't work with yahoo, i got this error
domainkeys=permerror (no key);
FIX: in my dns i added (in godaddy)

host: selector1._domainkey.mail1

error after installing postfix and trying to start it up...

Jun 1 14:32:14 mail1 postfix/postfix-script[60663]: starting the Postfix mail system
// Jun 1 14:32:14 mail1 postfix/master[60664]: fatal: bind port 25: Address already in use

vi /etc/rc.conf
add sendmail_enable="NO"

restart jail or machine

error with SPF
check to see if it can find a value for your spf

nslookup -type=TXT

For a sub domain

nslookup -type=TXT

Stay tuned for a more up-to-date version in the next week or two.


SEO Traffic tip #8

Try this page titles experiment.

Here's a good way increase your traffic.

Go to Google and type any phrase into the search box. Look at the titles of the websites in the top 10 rankings.

Which ones catch your eye and tempt you to click on the link? Some are dreadfully stodgy, boring. Some are merely a long list of keywords. Some are good. Some are junk.

Good titles are written for search engines AND humans.

Now look at the titles on your site. Start with your most important pages. Rewrite them to make them more eye-catching.

Now go to Google and do a search of your site like this...

Study the page titles. If you own a large site created over many years, you may be horribly embarrassed at just how BAD some of your page titles are.

Do you want to find some examples of good titles? Simply go to Google and do some more searches. Don't stick to your industry.

Type in all sorts of different phrases and study the titles that appear in the top 10.

You'll soon be brimming with ideas on ways you can improve your page titles.

Checking how enticing the information is in your meta description tag can help, too. Some search engines display this information in their search results.

If you have a well established site, you may have written many of your page titles and meta descriptions years ago when you knew less about marketing than you do now. If so, it's time for another look at them.

Copyright 2006 Allan Gardyne Pty Ltd ATF Allan Gardyne Trust