Skip to content

HOWTO: Install and Configure Postfix + DKIM in FreeBSD jail for LARGE SENDING

March 4, 2012

..continue from debian install -> HOWTO: Install and Configure Postfix + DKIMProxy FOR LARGE SENDING on Debian

1. mount_nullfs /usr/ports into the jail

2. install postfix -> make config;make install clean clean-depends

3. install dkimproxy -> make install clean clean-depends

no ipv6 alabala

4. Configure Postfix and


smtp2# grep -v ^#

mail_name =
smtpd_banner = $myhostname ESMTP $mail_name (FreeBSD)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = mailer, localhost.localdomain, , localhost
relayhost =
mynetworks = RELAY_IP1 RELAY_IP2 [::ffff:]/104 [::1]/128
mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
recipient_delimiter = +
inet_protocols = ipv4
inet_interfaces = YOUR_IP

smtp2# grep -v ^# /usr/local/etc/dkimproxy_out.conf|grep .

listen YOUR_IP:10027
relay YOUR_IP:10028
signature dkim
keyfile /usr/local/etc/dkim/keys/
selector 2012
min_servers 10

smtp2# grep -v ^# /etc/rc.conf | grep .


The setup is ready is we assuming that keys are pre-generated and putted into the dir, also the spf and dkim records are already in the domain.. for more info look at the smtp1 configure howto on debian machine at -> HOWTO: Install and Configure Postfix + DKIMProxy FOR LARGE SENDING on Debian


From → Emailling, FreeBSD

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: