| | | | | | | S | M | T | W | T | F | S |
|
|
|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
|
| | | | | Basic Instructions Before Leaving Earth | | And the evening and the morning were the third day. |
|
|
| cd /usr/ports/mail/cclient
make -DWITH_SSL_AND_PLAINTEXT install
cd /usr/ports/mail/imap-uw
make -DWITH_SSL_AND_PLAINTEXT install
make cert
#cd /etc/ ;
vi inetd.conf
imaps stream tcp nowait root /usr/local/libexec/imapd imapd
pop3s stream tcp nowait root /usr/local/libexec/ipop3d ipop3d
cd /usr/ports/security/cyrus-sasl2-saslauthd
make install
vi /etc/rc.conf
saslauthd_enable="YES"
vi /usr/local/lib/sasl2/Sendmail.conf
pwcheck_method: saslauthd
vi /etc/make.conf
# SASL (cyrus-sasl v2) sendmail build flags...
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2
# Adding to enable alternate port (smtps) for sendmail...
SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL
mkdir /etc/mail/certs
cd /etc/mail/certs
openssl dsaparam 1024 -out dsa1024.pem
openssl req -x509 -nodes -newkey dsa:dsa1024.pem -out mycert.pem -keyout mykey.pem
rm dsa1024.pem
chmod -R 600 /etc/mail/certs/*
#vi /etc/mail/access
example.com OK
#vi /etc/mail/local-host-names
example.com
#vi /etc/mail/aliases
root: username@example.com
#vi /etc/mail/virtusertable
root@example.com
# vi /etc/mail/relay-domains
cd /etc/mail
cp freebsd.submit.mc submit.mc
vi submit.mc
FEATURE(`msp', `[mail.example.com]')dnl
define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl
TRUST_AUTH_MECH(`PLAIN LOGIN')dnl
define(`CERT_DIR', `/etc/mail/certs')dnl
define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/mycert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/mycert.pem')dnl
define(`confSERVER_KEY', `CERT_DIR/mykey.pem')dnl
define(`confCLIENT_CERT', `CERT_DIR/mycert.pem')dnl
define(`confCLIENT_KEY', `CERT_DIR/mykey.pem')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=mail.example.com, Name=MTA')dnl
# /etc/mail/ make all
# vi /etc/mail/mail.example.com.mc
remove ipv6
dnldefine(`SMART_HOST', `mail.example.com')
edit /etc/rc.conf
sendmail_enable="YES"
# restart sendmail
service sendmail restart
Create Thread |
Subject / Message | Started by | View | Last Post | Option |
|
|
|