全部博文(1144)
分类: LINUX
2006-11-20 10:50:53
ezmlm邮件列表简单实例
邮件列表:
邮件列表目录:/home/vpopmail/domains/bsd.com/maillist,没有指定目录的文件都是在该目录下创建的
邮件列表的owner和moderater都是
一.创建邮件列表:
/usr/local/qmail/bin/ezmlm/ezmlm-make /home/vpopmail/domains/bsd.com/maillist /home/vpopmail/domains/bsd.com/.qmail-maillist maillist bsd.com
二.订阅:
/usr/local/qmail/bin/ezmlm/ezmlm-sub /home/vpopmail/domains/bsd.com/maillist ---------添加订阅者
三.退订:
/usr/local/qmail/bin/ezmlm/ezmlm-unsub /home/vpopmail/domains/bsd.com/maillist ----------删除订阅者
四.列出订阅者:
/usr/local/qmail/bin/ezmlm/ezmlm-list /home/vpopmail/domains/bsd.com/maillist
五.检查配置:
/usr/local/qmail/bin/ezmlm/ezmlm-check /home/vpopmail/domains/bsd.com/maillist -------------这个非常有用,仔细看,就知道哪里配置的正确,或者错误
六.字符集:
#vi charset
:B
七.信件头添加和移除(headeradd/headerremove):
信件头添加:
Precedence: bulk
X-No-Archive: yes
Sender: <>
Reply-To: <>
list-help: <>
list-unsubscribe: <>
list-post: <>
To: <>
信件头移除:
return-path
return-receipt-to
content-length
precedence
x-confirm-reading-to
x-pmrqc
list-help
list-unsubscribe
list-post
To
八.订阅审核和远程管理(remote admin):
#touch remote
九.信件审核(message moderation):
#touch modpost
#touch moderator
#ln -s /usr/home/vpopmail/domains/bsd.com/maillist/moderator /home/vpopmail/domains/bsd.com/.qmail-maillist-accept-default
#ln -s /usr/home/vpopmail/domains/bsd.com/maillist/moderator /home/vpopmail/domains/bsd.com/.qmail-maillist-reject-default
#vi moderator
|/usr/local/qmail/bin/ezmlm/ezmlm-moderate '/home/vpopmail/domains/bsd.com/maillist'
|/usr/local/qmail/bin/ezmlm/ezmlm-clean '/home/vpopmail/domains/bsd.com/maillist' || exit 0
#vi editor
|/usr/local/qmail/bin/ezmlm/ezmlm-reject '/home/vpopmail/domains/bsd.com/maillist'
|/usr/local/qmail/bin/ezmlm/ezmlm-warn '/home/vpopmail/domains/bsd.com/maillist'
|/usr/local/qmail/bin/ezmlm/ezmlm-store '/home/vpopmail/domains/bsd.com/maillist' || exit 0
|/usr/local/qmail/bin/ezmlm/ezmlm-clean '/home/vpopmail/domains/bsd.com/maillist' || exit 0
#/usr/local/qmail/bin/ezmlm/ezmlm-sub /home/vpopmail/domains/bsd.com/maillist/mod ----添加仲裁人,可以添加多个
十.owner文件:
|/usr/local/qmail/bin/ezmlm/ezmlm-warn '/home/vpopmail/domains/bsd.com/maillist' || exit 0
十一.config文件:
F:-aBCDEFGHIJKLMNOpQRSTUVWXYZ
D:/home/vpopmail/domains/bsd.com/maillist
T:/home/vpopmail/domains/bsd.com/.qmail-maillist
L:maillist
H:bsd.com
C:
0:
3:
4:
5:mailmaster@bsd.com
6:
7:
8:
9:
十二.使用邮件列表:
使用任意账号给发信, 会收到一封确认信
如果允许这封信发送,直接回复,如果拒绝,点信件里的拒绝连接
信件里有拒绝和允许的连接:
允许发送:
拒绝发送:
laosechong 回复于:2003-07-01 09:31:53
写上我的一个建立LIST的脚本:
bash-2.03# more MAKE-LIST
#!/bin/sh
EZMLMPATH=/usr/local/bin/ezmlm
MAILLISTPATH=/var/qmail/mailstore
mkdir $MAILLISTPATH/$1
chown vmail:vmail $MAILLISTPATH/$1
su - vmail -c "$EZMLMPATH/ezmlm-make $MAILLISTPATH/$1/$1 $MAILLISTPATH/$1/.qmail $1 laolong.com"
#chown -R vmail:vmail $MAILLISTPATH/$1
#chown -R vmail:vmail $MAILLISTPATH/.qmail*
执行:MAKE-LIST yourlist