亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3135 | 回復: 3
打印 上一主題 下一主題

[Mail] [原創(chuàng)]如何使用sendmail+procmail備份所有發(fā)出和收入的郵件? [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2003-08-22 01:05 |只看該作者 |倒序瀏覽
*****************************************************
Disclaimer:

The author of this post takes absolutely NO responsbility for any risks and voliations involving in anyway using this post.   Be warned that eavesdropping emails is a serious crime.

Please keep above disclaimer intact when posting it in other forums.  Thank you!

*****************************************************

Making an automatic copy of all inbound emails

*Create /etc/procmailrc PMDIR=/etc/procmail

   LOGFILE=/var/log/pmlog
   VERBOSE=yes # Set to yes when debugging; default is no
   INCLUDERC=$PMDIR/rc.localcopy

*Create directory (files) and change permission (presume sendmail is running as root)

   chmod 400 /etc/procmailrc
   mkdir /etc/procmail
   chmod 700 /etc/procmail
   chmod 600 /etc/procmail/*
   touch /var/log/pmlog
   chmod 600 /var/log/pmlog

*Create /etc/procmail/rc.localcopy as follow:

   :0c
   ! postmaster@mydomain.com # each messages will be forwarded to postmaster


Making an automatic copy of all outbound emails (tested in Redhat 8.0)

*Create /usr/share/sendmail-cf/cf/sendmail.mc (add the following line).

LOCAL_CONFIG
CP PROCMAIL
LOCAL_RULE_0
R$*<TAB>;$: <>; $1
R<>; $+ < @ $+ . PROCMAIL . >;<TAB>;$: $>;canonify $1 @ $2
R<>; $+ < @ $+ . >;<TAB>;$: <>; $1 < @ $2 >;
R<>; $+ < @ $+ >; $#procmail $@ /etc/procmail/procsh<TAB>;$: $1 < @ $2 . PROCMAIL . >;
R<>; $*<TAB>;$: $1
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

*Replacing all <TAB>; with real TAB and ./Build sendmail.cf.
*cp /usr/share/sendmail-cf/cf/sendmail.cf /etc/mail/sendmail.cf
*/etc/init.d/sendmail restart

* Create /etc/procmail/procsh as in sendmail.cf as:     

   PMDIR=/etc/procmail
   LOGFILE=/var/log/pmlog
   VERBOSE=yes
   :0
   * !^To:.*@yourdomain.com # for any emails sending out (not local domain)
   {
   :0c:
   /var/mail/outbound # make a copy
   }
   :0
   ! -f "$@" # send message back to sendmail for handling

*chmod 400 /etc/procmail/procsh
   
* Make sure procsh is different from /etc/procmailrc because /etc/procmailrc is system level rc file for procmail. It could be used for CC inbound emails. Don't mix them together.


NOTES: By setting sendmail to use procmail as LDA (local delivery agent) in order to make a copy of all outbound emails, this sendmail server lose the ability to receive inbound emails.  So far, I have not figured out how to solve this issue in sendmail.  If you have any idea, please post it to this forum.

A work around is seperating inbound & outbound email servers, such as setting up an outbound email gateway (which is not uncommon), and using the standard sendmail configuration for inbound emails.  Another option is using 2 sendmail binaries in this server, one for outbound and another for inbound, but it needs to be tested.

論壇徽章:
0
2 [報告]
發(fā)表于 2003-08-23 08:44 |只看該作者

[原創(chuàng)]如何使用sendmail+procmail備份所有發(fā)出和收入的郵件?

謝謝!我來試一下。。

論壇徽章:
0
3 [報告]
發(fā)表于 2003-09-02 12:01 |只看該作者

[原創(chuàng)]如何使用sendmail+procmail備份所有發(fā)出和收入的郵件?

能不能詳細解釋一下。謝謝!

論壇徽章:
1
2015年辭舊歲徽章
日期:2015-03-03 16:54:15
4 [報告]
發(fā)表于 2003-09-02 18:23 |只看該作者

[原創(chuàng)]如何使用sendmail+procmail備份所有發(fā)出和收入的郵件?

有沒有關(guān)于qmail 的發(fā)進和發(fā)出郵件的備份方案?
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP