Admin Life Errors, Fixes, and Encounters


Send a test mail using Telnet

Telnet into the smtp server (postfix)

# telnet localhost 25

The server should reply with:

Connected to localhost.
Escape character is '^]'.
220 ESMTP Postfix

Great. Postfix is listening and wants us to speak SMTP:


Postfix appreciates the EHLO and tells us which features it provides:

250-SIZE 10240000
250 DSN

Hey, Postfix, we have a mail from

mail from:<>

Looks like Postfix is happy with that because return codes that start with a '2' are good news:

250 2.1.0 Ok

Tell Postfix who the recipient of the mail is:

rcpt to:<>

Postfix accepts that:

250 2.1.5 Ok

Then we are ready to send the actual mail:


Postfix agrees and tells us we can send the actual mail now and end our input with a dot on an empty line:

354 End data with <CR><LF>.<CR><LF>

Okay, type in the mail:

Hi John,

just wanted to drop you a note.

Postfix tells us it has received the mail and queued under a queue ID:

250 2.0.0 Ok: queued as AK782JKD4

Thanks, Postfix, we are done:

Filed under: Errors No Comments

ezjail / jail setup on freebsd 9.3

# cd /usr/ports/sysutils/ezjail
# make install clean

create a base jail

# ezjail-admin install -sp

update the basejail with freebsd-update
# ezjail-admin update -u

update the base jail's ports tree

# ezjail-admin update -P

rc.conf entry ensures our jail will be started at boot and gets the IP it needs.
# ifconfig em0 alias netmask 0xffffff00 broadcast
# echo 'ifconfig_em0_alias0="inet netmask 0xffffff00 broadcast"' >> /etc/rc.conf
# echo 'ezjail_enable="YES"' >> /etc/rc.conf

Create the jail
# ezjail-admin create
# cp /etc/resolv.conf /usr/jails/
# service ezjail start
to see running jail
# jls

to get console access to the jail
# ezjail-admin console
to stop a jail
# ezjail-admin stop

to archive for you to copy a jail
# ezjail-admin archive

The archived file should appear in /usr/jails/ezjail_archives. you can then duplicate it as many times as you want. If you install ports, don't bother copying the jail to another machine, there will be missing libraries...
# ezjail-admin create -a /usr/jails/ezjail_archives/
# ezjail-admin start
Filed under: Errors No Comments

freebsd 9.3 error warning: smtputf8_enable is true, but EAI support is not compiled in

if you are getting this error "warning: smtputf8_enable is true, but EAI support is not compiled in" on freebsd 9.3 (maybe freebsd 10) it's a bug in the port config. EASY way to fix it (well best way to fix it) is to compile postfix with EAI support.

# cd /usr/ports/mail/postfix-current/
# make config

Make sure you select EAI from the list

# make install clean
# make reinstall clean

Filed under: Errors No Comments