无法在这个位置找到: head2.htm
当前位置: 建站首页 > 新闻动态 > 行业新闻 >

搭建反病毒感染反废弃物电子邮件系统软件(八

时间:2021-03-01 05:51来源:未知 作者:jianzhan 点击:
把客户加上到电子邮件目录里检测一些,建一个文字文档,例如members.txt,一行一个电子邮件详细地址,随后实行以下指令便可以了: # /usr/local/mailman/bin/add_members -n members.txt mailman3、
把客户加上到电子邮件目录里检测一些,建一个文字文档,例如members.txt,一行一个电子邮件详细地址,随后实行以下指令便可以了:

# /usr/local/mailman/bin/add_members -n members.txt mailman

3、postfix有关配备

还必须改动postfix的配备文档才可以使mailman工作中一切正常,改动main.cf,再加:

owner_request_special = no
recipient_delimiter = +
unknown_local_recipient_reject_code = 550

改动alias_maps和virtual_maps为:

alias_maps = hash:/usr/local/mailman/data/aliases,
mysql:/etc/postfix/mysql-aliases.cf
virtual_maps = hash:/usr/local/mailman/data/virtual-mailman,
mysql:/etc/postfix/mysql-virtual.cf

单是那样還是不好的,我检测还必须把main.cf里myorigin改成:

myorigin =

随后在transport表中加上一个纪录:

insert into transport set domain='',destination='local:';

重新启动postfix和mailman,如今能够试一下给mailman这一电子邮件目录发送邮件是不是都一切正常了?

4、python解决汉语的难题

假如电子邮件全是汉语gb2312编号的就会有难题,查询/usr/local/mailman/logs/error会发觉以下的不正确:

Jul 16 17:40:09 2003 (392) Uncaught runner exception: unknown encoding
Jul 16 17:40:10 2003 (392) Traceback (most recent call last):
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 105, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 155, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/ingRunner.py", line 130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/local/mailman/Mailman/ingRunner.py", line 153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Handlers/CookHeaders.py", line 75, in process
prefix_subject(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Handlers/CookHeaders.py", line 262, in prefix_subject
h.append(s, c)
File "/usr/local/mailman/pythonlib/email/Header.py", line 285, in append
s = s.encode(outcodec, errors)
LookupError: unknown encoding

Jul 16 17:40:10 2003 (392) SHUNTING: .89d44c4477c6393b0b8b991

?Cat= Board=python Number=
427317 page=0 view=collapsed sb=5 o= fpart=

我也用了创作者出示的file/gb2312.rar,实际上它也是以projects/python-codecs/来的。把gb2312文件目录的gb2312.py文档复制到/usr/lib/python2.1/encodings/文件目录下,文件目录也复制到该文件目录下,随后改动/usr/lib/python2.1/encodings/aliases.py文档,在最终的}前面上:

# codec
'gb2312': 'gb2312',

(责任编辑:admin)
织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
无法在这个位置找到: ajaxfeedback.htm
栏目列表
推荐内容


扫描二维码分享到微信