看板FreeBSD
標 題[問題] postfix 轉寄信的問題
發信站SF (Wed Mar 30 08:53:03 2005)
轉信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.chu!Leo.mi.chu!SF
小弟的主機上有一個 virtual domain: test.com
而我希望能夠將寄信給
[email protected] 的信都轉寄到該 user 的實體信箱
但是為了避免之後管理麻煩我不希望開設實體 user 的帳號
希望 postfix 能在收到信後就直接轉寄到 user 的實體信箱
我的 main.cf
mydestination = /usr/local/etc/postfix/mydestination
alias_maps = hash:/usr/local/etc/postfix/aliases
smtpd_recipient_restrictions =
permit_sasl_autheNticated,permit_mynetworks,reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_auth_enable= yes
smtpd_sasl_security_options= noanonymous
smtpd_sasl_local_domain = $myhostname
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual_account
mailbox_command = /usr/local/bin/procmail
我的 mydestination 中
有加入 test.com
然後
再編輯 virtual_account 之後
[email protected] [email protected]
[email protected] [email protected]
執行
postmap /usr/local/etc/postfix/virtual_account
postfix reload
但是用 outlook 測試時
都會收到
----- The following addresses had permanent fatal errors -----
<
[email protected]>
(reason: 550 <
[email protected]>: Recipient address rejected: User
unknown in local recipient table)
maillog 中
Mar 30 08:22:08 aerial postfix/smtpd[68155]: NOQUEUE: reject: RCPT from
xxx.edu.tw[140.126.3.9]: 550 <
[email protected]>: Recipient address
rejected: User unknown in local recipient table; from=<
[email protected]>
to=<
[email protected]> proto=ESMTP helo=<chu.edu.tw>
小弟想請問
我這樣的作法對嗎
還是我漏了什麼
感謝賜教
--
※Origin:星 情 小 築 < Star.leobbs.net >
※From: 59.105.117.38