歡迎您光臨本站 註冊首頁

postfix別名轉發的問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix別名轉發的問題

在centos 5.1 上搭建了 postfix。
建立了2個帳號:dai,lym,可以分別向這兩個賬戶發信
但是當我在/etc/aliases 下面進行如下設置時 :
lym:    dai   # 也就是進行別名 轉發


但是再次當我向lym賬戶發信時,郵件並不能到達dai賬戶上
查看 /var/log/maillog 發現這樣的日誌:
Oct 31 11:21:03 localhost postfix/smtp: DADB24ED960: to=<dai@localdomain.localdomain>, orig_to=<lym@localhost>, relay=none, delay=0.02, delays=0/0.01/0.01/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localdomain.localdomain type=A: Host not found)
Oct 31 11:21:03 localhost postfix/cleanup: E0ABC4ED965: message-id=<20081031032103.E0ABC4ED965@localhost.localdomain>

十分奇怪,為什麼postfix在從 lym 向dai 轉發時 ,mail server的地址變成了「localdomain.localdomain」?

以下是我的/etc/hosts 配置文件:
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

在/etc/postfix/main.cf 中 的 如下設置:
myhostname = localhost.localdomain
mydomain = localdomain
myorigin = $mydomain


初學mail server ,請大牛指教
《解決方案》

頂一頂
《解決方案》

lym:    dai@localhost

看看這樣行不?
《解決方案》

記得postmap下
《解決方案》

原帖由 ruochen 於 2008-10-31 15:48 發表 http://bbs.chinaunix.net/images/common/back.gif
lym:    dai@localhost

看看這樣行不?


這樣是可以的,謝謝哦
:mrgreen:
另外,不需要postmap

[火星人 ] postfix別名轉發的問題已經有596次圍觀

http://coctec.com/docs/service/show-post-26568.html