Postfix
# portmaster mail/postfix
┌───────────────────────────── postfix-3.2.2,1 ──────────────────────────────┐
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │+[ ] BDB Berkeley DB support │ │
│ │+[ ] CDB CDB maps lookups │ │
│ │+[ ] DOCS Build and/or install documentation │ │
│ │+[ ] INST_BASE Install into /usr and /etc/postfix │ │
│ │+[ ] LDAP LDAP maps (uses WITH_OPENLDAP_VER) │ │
│ │+[ ] LDAP_SASL LDAP client-to-server SASL auth │ │
│ │+[ ] LMDB LMDB maps │ │
│ │+[x] MYSQL MySQL database support │ │
│ │+[x] NIS Network Information Services/YP support │ │
│ │+[x] PCRE Use Perl Compatible Regular Expressions │ │
│ │+[ ] PGSQL PostgreSQL database support │ │
│ │+[x] SASL Cyrus SASL support (Dovecot SASL is always built in) │ │
│ │+[ ] SQLITE SQLite database support │ │
│ │+[ ] TEST SMTP/LMTP test server and generator │ │
│ │+[x] TLS Secure network connection support via TLS │ │
│ │────────────── Kerberos network authentication protocol type ───────────│ │
│ │+( ) SASLKRB5 If your SASL req. Kerberos5, select this │ │
│ │+( ) SASLKMIT If your SASL req. MIT Kerberos5, select this │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────────────────┤
│ < OK > <Cancel> │
└────────────────────────────────────────────────────────────────────────────┘
Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y
postfix anschalten
===>>> pkg-message for postfix-3.2.2,1
Always:
To use postfix instead of sendmail:
- clear sendmail queue and stop the sendmail daemons
Run the following commands to enable postfix during startup:
- sysrc postfix_enable="YES"
- sysrc sendmail_enable="NONE"
If postfix is *not* already activated in /usr/local/etc/mail/mailer.conf
- mv /usr/local/etc/mail/mailer.conf /usr/local/etc/mail/mailer.conf.old
- install -m 0644 /usr/local/share/postfix/mailer.conf.postfix /usr/local/etc/mail/mailer.conf
Disable sendmail(8) specific tasks,
add the following lines to /etc/periodic.conf(.local):
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
If you are using SASL, you need to make sure that postfix has access to read
the sasldb file. This is accomplished by adding postfix to group mail and
making the /usr/local/etc/sasldb* file(s) readable by group mail (this should
be the default for new installs).
If you are upgrading from prior postfix version, please see the README
files for recommended changes to your configuration and additional
http://www.postfix.org/COMPATIBILITY_README.html
===>>> Done displaying pkg-message files
DH Parameter generieren
# mkdir /etc/ssl/postfix
# openssl gendh -out /etc/ssl/postfix/dh_1024.pem -2 -rand /var/run/egd-pool 1024
# openssl gendh -out /etc/ssl/postfix/dh_512.pem -2 -rand /var/run/egd-pool 512
/usr/local/lib/sasl2/smtpd.conf
/usr/local/etc/postfix/
- main.cf
- master.cf
- mysql_relay_domains_maps.cf <- Passwort setzen
- mysql_virtual_alias_maps_wildcard.cf <- Passwort setzen
- mysql_virtual_alias_maps.cf <- Passwort setzen
- mysql_virtual_domains_maps_wildcard.cf <- Passwort setzen
- mysql_virtual_domains_maps.cf <- Passwort setzen
- mysql_virtual_mailbox_limit_maps.cf <- Passwort setzen
- mysql_virtual_mailbox_maps.cf <- Passwort setzen
- dnsbl-reply-map
- Blacklist_Sender
Spamhaus
# postmap hash:/usr/local/etc/postfix/dnsbl-reply-map
Blacklist
# postmap hash:/usr/local/etc/postfix/Blacklist_Sender
um die Blacklist zu aktivieren,.. in die main.cf aufnehmen
smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/sender_access