歡迎您光臨本站 註冊首頁

qmail轉發問題

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

qmail轉發問題

舉例:unix.domain.com為qmail伺服器ip地址是公網的,所有MX記錄在這台伺服器上.
windows.domain.com為merak mailserver使用的是內網IP地址.如何使qmail收到的郵件自動轉發到windows這台伺服器上.因為用戶通過內網伺服器來接收郵件的.
我現在是這麼配置的
echo "tigergroup.com.cn:210.13.112.29" /var/qmail/control/smtproutes
現在qmail並沒有轉發而是直接本地接收了,怎麼回事情啊。
《解決方案》

回復 1樓 bootsteven 的帖子

這是我的qmail所有配置信息
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 509.
subdirectory split: 23.
user ids: 500, 501, 502, 0, 503, 504, 505, 506.
group ids: 501, 502.
badhelo: (Default.) Any HELO host name is allowed.
badmailfrom: (Default.) Any MAIL FROM is allowed.
badmailfromnorelay: (Default.) Any MAIL FROM is allowed.
badmailto: (Default.) No RCPT TO are specifically denied.
badmailtonorelay: (Default.) No RCPT TO are specifically denied.
bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.
bouncehost: (Default.) Bounce host name is mail.tigergroup.com.cn.
concurrencylocal: (Default.) Local concurrency is 10.
concurrencyremote: (Default.) Remote concurrency is 20.
databytes: (Default.) SMTP DATA limit is 0 bytes.
defaultdomain: Default domain name is tigergroup.com.cn.
defaulthost: (Default.) Default host name is mail.tigergroup.com.cn.
doublebouncehost: (Default.) 2B recipient host: mail.tigergroup.com.cn.
doublebounceto: (Default.) 2B recipient user: postmaster.
envnoathost: (Default.) Presumed domain name is mail.tigergroup.com.cn.
helohost: SMTP client HELO host name is mail.tigergroup.com.cn.
idhost: (Default.) Message-ID host name is mail.tigergroup.com.cn.
localiphost: (Default.) Local IP address becomes mail.tigergroup.com.cn.
locals:
Messages for mail.tigergroup.com.cn are delivered locally.
me: My name is mail.tigergroup.com.cn.
percenthack: (Default.) The percent hack is not allowed.
plusdomain: Plus domain name is com.cn.
qmqpservers: (Default.) No QMQP servers.
queuelifetime: (Default.) Message lifetime in the queue is 604800
seconds.
rcpthosts:
SMTP clients may send messages to recipients at mail.tigergroup.com.cn.
SMTP clients may send messages to recipients at tigergroup.com.cn.
morercpthosts: (Default.) No effect.
morercpthosts.cdb: (Default.) No effect.
smtpgreeting: (Default.) SMTP greeting: 220 mail.tigergroup.com.cn.
smtproutes:
SMTP route: tigergroup.com.cn:mail.tigertech.com.cn
spfbehavior: The SPF behavior is 3.
spfexp: (Default.) The SPF default explanation is: 550 See
http://spf.pobox.com/why.html?sender=%{S}&ip=%{I}&receiver=%{xR}.
spfguess: (Default.) The guess SPF rules are: .
spfrules: (Default.) The local SPF rules are: .
spamt/spamt.cdb: (Default.) No effect.
timeoutconnect: SMTP client connection timeout is 120 seconds.
timeoutremote: SMTP client data timeout is 1200 seconds.
timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.
virtualdomains:
Virtual domain: tigergroup.com.cn:tigergroup.com.cn
dh512.pem: I have no idea what this file does.
rcpthosts.lock: I have no idea what this file does.
defaultdelivery: I have no idea what this file does.
servercert.pem: I have no idea what this file does.
dh1024.pem: I have no idea what this file does.
rsa512.pem: I have no idea what this file does.
virtualdomains.lock: I have no idea what this file does.
concurrencyincoming: I have no idea what this file does.
locals.lock: I have no idea what this file does.
clientcert.pem: I have no idea what this file does.
《解決方案》

回復 1樓 bootsteven 的帖子

@40000000457cd5cf0d541df4 info msg 3063995: bytes 10915 from
<steven.guo@tigertech.com.cn> qp 4022 uid 89
@40000000457cd5cf0ff61134 starting delivery 1: msg 3063995 to local
tigergroup.com.cn-test2@tigergroup.com.cn
@40000000457cd5cf0ff61904 status: local 1/10 remote 0/20
@40000000457cd5cf11cfaf4c delivery 1: success: did_0+0+1/
@40000000457cd5cf11cfb71c status: local 0/10 remote 0/20
@40000000457cd5cf12394a74 end msg 3063995


40000000457cd5cf0993d9d4 CHKUSER accepted rcpt: from
<steven.guo@tigertech.com.cn::> remote
<mail.tigertech.com.cn:unknown:210.13.112.30> rcpt
<test2@tigergroup.com.cn> : found existing recipient
@40000000457cd5cf0d7d1e0c tcpserver: end 4020 status 0
@40000000457cd5cf0d7d645c tcpserver: status: 0/20
《解決方案》

回復 3樓 bootsteven 的帖子

host:relay
tigergroup.com.cn:mail.tigergroup1.com.cn
將任何定義到tigergroup.com.cn的消息重新定向到特定的郵件伺服器mail.tigergroup1.com.cn上。可是現在這個策略並沒有被啟用啊。
我已經服試用了qmailctl  restart了
《解決方案》

就是配置smtproute這個文件啊.

[火星人 ] qmail轉發問題已經有235次圍觀

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