- 论坛徽章:
- 0
|
我在postfix中使用了传输表 想将发给xxx.cn的邮件通过mail.xxx.com转发.
dns设置 将xxx.cn的mx记录指向安装了postfix的mail.xxx.com
修改了postfix中的main.cf
允许系统接受和转发colgg.cn
mydestnation=....colgg.cn
relaydomains=$mydestnation
使用传输表
transport_maps=hash:路径/transport.conf
transport.conf内容:
colgg.cn smtp:[mail.xxxx.cn的ip]:25
重新载入配置文件
postfix reload
创建transport.conf的db格式文件.
postmap 路径/transport.conf
然后我用163给gly@xxx.cn发信
大家看看我的日志.
from=<xxxxx@163.com>, size=1676, nrcpt=1 (queue active)
May 24 10:52:56 localhost postfix/pipe[20419]: 5A3C535BD38: to=<gly@xxx.com>, orig_to=<gly@xxx.cn>, relay=cyrus, delay=1, delays=0.93/0.01/0/0.1, dsn=2.0.0, status=sent (delivered via cyrus service)
May 24 10:52:56 localhost postfix/qmgr[20300]: 5A3C535BD38: removed
"to=<gly@xxx.com>, orig_to=<gly@xxx.cn>, relay=cyrus,"
这着实让我费解.我明明是发给gly@xxx.cn怎么成了"to=<gly@xxx.com>",而且relay仍是cyrus,难道传输表没起作用吗?小弟百思不得其解,请各位大侠多多指教,小弟在此叩谢. |
|