apt-get install postfix postfix-tls libsasl2 libsasl-digestmd5-plain libsasl2-modules sasl2-bin
改了/etc/postfix/main.cf 內容如下
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
setgid_group = postdrop
append_dot_mydomain = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
myhostname = enduser.twbbs.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = enduser.twbbs.org, enduser, localhost.localdomain, localhost
relayhost =
inet_interfaces = all
mynetworks_style = host
mynetworks = 127.0.0.0/8, 192.168.1.1/24
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
#smtpd_sasl_local_domain = $myhostname
#這邊不知道到底要不要留空白
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
然後把/etc/postfix/master.cf作了下面修改
但是最下面有一行
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
不知道要不要註解拿掉
smtp inet n - n - - smtpd
然後新增/etc/postfix/sasl/smtpd.conf內容如下
pwcheck_method : saslauthd
mech_list: plain login
但是我看到一篇教學
他說要讓每次開機執行saslauthd -a getpwent
我不太懂這邊的saslauthd是類似pwcheck的作用嗎
現在我telnet localhost 25會鄉以下停住不動
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
不知道問題出在那
而之前只有裝postfix的時候有辦法rcpt寄信出去
我裝的是unstable的debian
請教一下大家了