HOWTO: Install and Configure Postfix + DKIM in FreeBSD jail for LARGE SENDING
..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 main.cf and master.cf:
smtp2#newaliases
smtp2# grep -v ^# main.cf
mail_name = smtp2.DOMAIN.com
smtpd_banner = $myhostname ESMTP $mail_name (FreeBSD)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = smtp2.DOMAIN.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = mailer, localhost.localdomain, , localhost
relayhost =
mynetworks = RELAY_IP1 RELAY_IP2 127.0.0.0/8 [::ffff:127.0.0.0]/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
domain DOMAIN.com
signature dkim
keyfile /usr/local/etc/dkim/keys/DOMAIN.com/private.key
selector 2012
min_servers 10
smtp2# grep -v ^# /etc/rc.conf | grep .
hostname=”smtp2″
clear_tmp_enable=”YES”
postfix_enable=YES
dkimproxy_out_enable=YES
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
Trackbacks & Pingbacks