Postfix Install Notes

To install Postfix on FreeBSD Version 7
# cd /usr/ports/mail/postfix-current
# make install clean
Tick Options
PCRE perl Compatible Regular Expressions
SASL2 Cyrus SASLv2 (Simple Auth. and Sec. Laayer
DOVECOT Dovecot SASL authentication method
TLS Enable SSL and TLS support
startup script installed at
/usr/local/etc/rc.d/postfix
Add the following to /etc/rc.conf
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
postfix_enable="YES"
Create a link from /etc to postfix
# cd /etc
# ln -s /usr/local/etc/postfix
vi main.cf
Paste under mynetworks:
vi master.cf
Paste under smtp:
Reload the config:
locate smtpd.conf
????vi /usr/local/lib/sasl2/smtpd.conf
vi /usr/local/lib/sasl2/Sendmail.conf
Delete the contents of the file and paste into it:
check if saslauthd is started
saslauthd -V
to install saslauthd
see http://freebsd.munk.me.uk/archives/212-Installing-Exim,-SASLAuthd,-ClamAV-and-SpamAssassin-on-FreeBSD-6.2.html
cd /usr/ports/security/cyrus-sasl2-saslauthd
make install clean
vi /etc/rc.conf
add
to start sasluthd
Test the saslauthd
I cannot get saslauthd to run with start command
i receive
but this command works
saslauthd -m /var/run/saslauthd -r -c -a getpwent
it does not seem to be picking up the flags from rc.conf
fix was to reboot the server
modify master.cf for use with ASSP Anti-Spam SMTP proxy Server
# vi /etc/postfix/master.cf
change
smtp inet n - n - - smtpd
to
localhost:smtp inet n - n - - smtpd
Postfix web site
http://www.postfix.org/
The postfix documentation can be found here
http://www.postfix.org/documentation.html
Install Postfix on FreeBSD
http://www.scriptinstallation.in/freebsd_postfix_install.html
Postfix SMTP Authentication - On The Secure Port Only
use this site to get help in testing the authentication
http://www.howtoforge.com/postfix-smtp-authentication-on-the-secure-port-only
Postfix and Dovecot on Ubuntu Dapper Drake
http://adomas.org/2006/08/postfix-dovecot/
To see the current postfix settings type
Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail
http://www.debianadmin.com/debian-mail-server-setup-with-postfix-dovecot-sasl-squirrel-mail.html
PostFix Howto
http://wiki.archlinux.org/index.php/PostFix_Howto#Step_3.1_myhostname
Postfix FAQ
http://www.seaglass.com/postfix/faq.html#erlpbk
the error in the /var/log/maillog file.
when I run postconf -n
it shows
The change to main.cf does not seem to be recognised immediately
# cd /usr/ports/mail/postfix-current
# make install clean
Tick Options
PCRE perl Compatible Regular Expressions
SASL2 Cyrus SASLv2 (Simple Auth. and Sec. Laayer
DOVECOT Dovecot SASL authentication method
TLS Enable SSL and TLS support
startup script installed at
/usr/local/etc/rc.d/postfix
Add the following to /etc/rc.conf
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
postfix_enable="YES"
Create a link from /etc to postfix
# cd /etc
# ln -s /usr/local/etc/postfix
vi main.cf
Paste under mynetworks:
- Code: Select all
####### smtp auth
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = cyrus
local_recipient_maps =
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/www.xxxxxx.com.au.nopassword.key
smtpd_tls_cert_file = /etc/ssl/certs/www.xxxxxx.com.au.cert
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
########
vi master.cf
Paste under smtp:
- Code: Select all
smtps inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_reject_unlisted_sender=yes
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
-o broken_sasl_auth_clients=yes
Reload the config:
- Code: Select all
postfix reload
locate smtpd.conf
????vi /usr/local/lib/sasl2/smtpd.conf
vi /usr/local/lib/sasl2/Sendmail.conf
Delete the contents of the file and paste into it:
- Code: Select all
pwcheck_method: saslauthd
mech_list: plain login
check if saslauthd is started
saslauthd -V
to install saslauthd
see http://freebsd.munk.me.uk/archives/212-Installing-Exim,-SASLAuthd,-ClamAV-and-SpamAssassin-on-FreeBSD-6.2.html
cd /usr/ports/security/cyrus-sasl2-saslauthd
make install clean
vi /etc/rc.conf
add
- Code: Select all
saslauthd_enable="YES"
saslauthd_flags="-a getpwent"
to start sasluthd
- Code: Select all
/usr/local/etc/rc.d/saslauthd start
Test the saslauthd
- Code: Select all
/usr/local/etc/rc.d# testsaslauthd -u user -p pass
0: OK "Success."
I cannot get saslauthd to run with start command
i receive
saslauthd no authentication mechanism specified
but this command works
saslauthd -m /var/run/saslauthd -r -c -a getpwent
it does not seem to be picking up the flags from rc.conf
fix was to reboot the server
modify master.cf for use with ASSP Anti-Spam SMTP proxy Server
# vi /etc/postfix/master.cf
change
smtp inet n - n - - smtpd
to
localhost:smtp inet n - n - - smtpd
Postfix web site
http://www.postfix.org/
The postfix documentation can be found here
http://www.postfix.org/documentation.html
Install Postfix on FreeBSD
http://www.scriptinstallation.in/freebsd_postfix_install.html
Postfix SMTP Authentication - On The Secure Port Only
use this site to get help in testing the authentication
http://www.howtoforge.com/postfix-smtp-authentication-on-the-secure-port-only
Postfix and Dovecot on Ubuntu Dapper Drake
http://adomas.org/2006/08/postfix-dovecot/
To see the current postfix settings type
- Code: Select all
postconf -n
Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail
http://www.debianadmin.com/debian-mail-server-setup-with-postfix-dovecot-sasl-squirrel-mail.html
PostFix Howto
http://wiki.archlinux.org/index.php/PostFix_Howto#Step_3.1_myhostname
Postfix FAQ
http://www.seaglass.com/postfix/faq.html#erlpbk
the error in the /var/log/maillog file.
fatal: main.cf configuration error: mailbox_size_limit is smaller than message_size_limit
when I run postconf -n
it shows
mailbox_size_limit = 1048576000
message_size_limit = 104857600
The change to main.cf does not seem to be recognised immediately