- 论坛徽章:
- 0
|
小弟想將寄出的郵件拷貝一份去mailbackup户口, 從網上找到很多文章.
以下一段是從網上找到的, 但每次執行都出現"unknown configuration error", 不明所以, 希望大大出手相助, 感激!
divert(0)dnl
VERSIONID(`copyuser.m4')dnl
ifdef(`_MAILER_smtp_',,
`errprint(`*** MAILER(smtp) must appear before copymail mailer')')dnl
LOCAL_CONFIG
CPNOCOPY
LOCAL_NET_CONFIG
LOCAL_RULE_0
R$+.NOCOPY. $#local @ $: $1
R$+<@$j.NOCOPY.>; $#local @ $: $1
R$+<@$+.NOCOPY.>; $#esmtp $@$2 $ 1<@$2.>;
R$+<@$+.>; $#copymail $@nohostneeded $ 1<@$2.NOCOPY>;
R$+<@$+>; $#copymail $@nohostneeded $ 1<@$2.NOCOPY>;
R$+ $#copymail $@nohostneeded $ 1<@$j.NOCOPY>;
MAILER_DEFINITIONS
# Copy a message by sending it back to sendmail with an additional address:
# Here, the mail is sent to user mailbackup.
Mcopymail, P=/usr/sbin/sendmail, F=fmSDFMu,S=11/31,R=ifdef(`_ALL_MASQUERADE_',
`21/31', `21'),A=sendmail mailbackup $u |
|