於是乎,去鳥哥的網站拜讀sendmail+postfix的資料...
還有拜讀http://phorum.study-area.org/viewtopic.php?t=9367
以下是我的安裝及設定過程...
- 代碼: 選擇全部
apt-get install postfix
apt-get install sasl2-bin
我的/etc/postfix/main.cf
- 代碼: 選擇全部
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
relayhost =
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
[color=blue]myhostname = suskind.twbbs.org
mydomain = twbbs.org
myorigin = $myhostname
mydestination = $myhostname, localhost
inet_interfaces = all
mynetworks_style = subnet
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mynetworks = 127.0.0.0/8[/color]
smtpd_sasl_auth_enable = yes
smtpd_delay_reject=yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated permit_auth_destination reject
smtpd_client_restrictions = permit_sasl_authenticated
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
設定sasl時,找不到/usr/local/lib/sasl/smtpd.conf
所以,我去/usr/lib/sasl2開了一個smtpd.conf的新檔案...
我的smtpd.conf為
- 代碼: 選擇全部
pwcheck_method:shadow
# chmod 640 /etc/shadow
# usermod -G root postfix
#/etc/init.d/postfix restart
telnet localhost 25
- 代碼: 選擇全部
ehlo localhost
250-suskind.twbbs.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250 8BITMIME
port 25都開了,我想寄信看看,
- 代碼: 選擇全部
mail xxx@yahoo.com.tw
然後去xxx@yahoo.com.tw看,沒收到,mail.log沒有資料...
寫到這裡好無力啊!
這個站,study-area,vbird我都看過了,
請各位學長釋疑...