服務器搭建手冊之FREEBSDUNIX郵件服務器建設(五)

2、安裝postfix

#cd /usr/ports/mail/postfix

#make install clean

正確選擇:

 

回答下面的兩問題:

You need user “postfix” added to group “mail”.[是否將postfix用戶加到mail用戶組]

 

Would you like me to add it [y]? y

 

Would you like to activate Postfix in /etc/mail/mailer.conf [n]? n

 

3、在/etc/rc.conf中加入postfix啟動所需的啟動選項

 

在/etc/rc.conf中加入:

sendmail_enable=”YES”

 

sendmail_flags=”-bd”

 

sendmail_pidfile=”/var/spool/postfix/pid/master.pid”

 

sendmail_procname=”/usr/local/libexec/postfix/master”

 

sendmail_outbound_enable=”NO”

 

sendmail_submit_enable=”NO”

 

sendmail_msp_queue_enable=”NO”

 

4、設置postfix啟動所需

# cd /usr/local/etc/rc.d

# ln -s /usr/local/sbin/postfix postfix.sh

(註:這一步可以做,也可以不做,postfix都可以啟動)

# ln -s /usr/local/sbin/sendmail /usr/sbin/sendmail

(註:如果/usr/sbin/sendmail存在就刪再做上鏈接,如果升級內核和升級系統後要重新做這一步)

# echo 『postfix: root』 >> /etc/aliases
# /usr/local/bin/newaliases
# chown postfix:postfix /etc/opiekeys

E、安裝expect

用於Web客戶端建立郵件用戶。

# cd /usr/ports/lang/expect

# make install clean

以下文章點擊率最高

Loading…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營