Main | 如何用Postfix取代Qmail呢? »

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
本文网址:http://www.hzqbbc.com/blog/arch/2002/06/postfixcee.html
 

June 29, 2002

Postfix实现转发/自动回复

Redhat Postfix HOWTO

在系统用户(Unix account)的$HOME下建立.forward文件,内容:

user@your-forward-mail-address

同时chmod 0640 .forward
小心的是属性为:user.usergroup

注意在/etc/postfix/main.cf中myhostname 加多一行,例如:

myhostname = smtp.hzqbbc.com 
myhostname = smtp.otherdomain.org 

然后在mydestination后加要forward的域就基本可以了。

在postfix的maillist里提到实现如何转发时给自己留备份,或转发并删除的讨论:
Google group discuss

Message 13 in thread
寄件者:"Renato A. Q. Salles" (linuxbr@onda.com.br)
主旨:RE: forwards
新闻群组:mailing.postfix.users
View this article only
日期:2002-06-27 21:16:20 PST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

$ pico .forward
Put on the first line, without hitting enter, the email address you wish to have
your mail forwarded to:

me@counterexample.com
If you wish to forward just to another user whose account is @example.com,
you would just enter:
ernie

If you wish to leave a copy for yourself, but also forward a message, be sure
to put a backslash in front of your username so as to avoid infinite forwarding
loops. Use a comma between addresses:

\me, me@counterexample.com
To delete mail so that no one gets it:

/dev/null
To delete mail and send an autoreply (see the vacation page for other
requirements of sending autoreplies)

/dev/null, "│vacation andrew"

Source: Google

Posted by hzqbbc at June 29, 2002 05:00 PM

Comments

Post a comment




Remember Me?

(you may use HTML tags for style)