[![Build Status][ci-img]][ci-url]
[![Coverage Status][cov-img]][cov-url]
# Qpsmtpd - qmail perl simple mail transfer protocol daemon
[Web site](http://smtpd.github.io/qpsmtpd/), [FAQ](https://github.com/smtpd/qpsmtpd/wiki/faq), [Email List](mailto:qpsmtpd-subscribe@perl.org)
Qpsmtpd is an extensible SMTP engine written in Perl. See `plugins/quit_fortune` for a cute example.
# License
Qpsmtpd is licensed under the MIT License; see the LICENSE file for
more information.
# What's new?
See the Changes file! :-)
# Installation
## Required Perl Modules
* Net::DNS
* MIME::Base64
* Mail::Header (part of the MailTools distribution)
If your Perl is older than 5.8.0, you will also need
* Data::Dumper
* File::Temp
* Time::HiRes
The easiest way to install modules from CPAN is with the CPAN shell.
Run it with
perl -MCPAN -e shell
## qpsmtpd installation
Make a new user and a directory where you'll install qpsmtpd. I
usually use "smtpd" for the user and /home/smtpd/qpsmtpd/ for the
directory.
Put the files there. If you install from git you can just do
run the following command in the /home/smtpd/ directory.
git clone git://github.com/smtpd/qpsmtpd.git
Beware that the master branch might be unstable and unsuitable for anything
but development, so you might want to get a specific release, for
example (after running git clone):
git checkout -b local_branch v0.93
chmod o+t ~smtpd/qpsmtpd/ (or whatever directory you installed qpsmtpd
in) to make supervise start the log process.
Edit the file config/IP and put the ip address you want to use for
qpsmtpd on the first line (or use 0 to bind to all interfaces).
If you use the supervise tools, then you are practically done!
Just symlink /home/smtpd/qpsmtpd into your /services (or /var/services
or /var/svscan or whatever) directory. Remember to shutdown
qmail-smtpd if you are replacing it with qpsmtpd.
If you don't use supervise, then you need to run the ./run script in
some other way.
The smtpd user needs write access to ~smtpd/qpsmtpd/tmp/ but should
not need to write anywhere else. This directory can be configured
with the `spool_dir` configuration and permissions can be set with
`spool_perms`.
As of version 0.25 the distributed ./run script runs tcpserver with
the -R flag to disable identd lookups. Remove the -R flag if that's
not what you want.
# Configuration
Configuration files can go into either /var/qmail/control or into the
config subdirectory of the qpsmtpd installation. Configuration should
be compatible with qmail-smtpd making qpsmtpd a drop-in replacement.
If qmail is installed in a nonstandard location you should set the
$QMAIL environment variable to that location in your "./run" file.
If there is anything missing, then please send a patch (or just
information about what's missing) to the mailinglist or a PR to github.
# Better Performance
For better performance we recommend using "qpsmtpd-forkserver" or
running qpsmtpd under Apache 2.x. If you need extremely high
concurrency use [Haraka](http://haraka.github.io/).
# Plugins
The qpsmtpd core only implements the SMTP protocol. No useful
function can be done by qpsmtpd without loading plugins.
Plugins are loaded on startup where each of them register their
interest in various "hooks" provided by the qpsmtpd core engine.
At least one plugin MUST allow or deny the RCPT command to enable
receiving mail. The `rcpt_ok` is one basic plugin that does
this. Other plugins provide extra functionality related to this; for
example the `resolvable_fromhost` plugin described above.
# Configuration files
All the files used by qmail-smtpd should be supported; so see the man
page for qmail-smtpd. Extra files used by qpsmtpd include:
## plugins
List of plugins, one per line, to be loaded in the order they
appear in the file. Plugins are in the plugins directory (or in
a subdirectory of there).
## rhsbl_zones
Right hand side blocking lists, one per line. For example:
dsn.rfc-ignorant.org does not accept bounces - http://www.rfc-ignorant.org/
See http://www.rfc-ignorant.org/ for more examples.
## `dnsbl_zones`
Normal ip based DNS blocking lists ("RBLs"). For example:
relays.ordb.org
spamsources.fabel.dk
## `spool_dir`
If this file contains a directory, it will be the spool directory
smtpd uses during the data transactions. If this file doesn't exist, it
will default to use $ENV{HOME}/tmp/. This directory should be set with
a mode of 700 and owned by the smtpd user.
## `spool_perms`
The default spool permissions are 0700. If you need some other value,
chmod the directory and set it's octal value in `config/spool_perms`.
## `tls_before_auth`
If this file contains anything except a 0 on the first noncomment line, then
AUTH will not be offered unless TLS/SSL are in place, either with STARTTLS,
or SMTP-SSL on port 465.
## everything (?) that qmail-smtpd supports.
In my test qpsmtpd installation I have a "config/me" file containing
the hostname I use for testing qpsmtpd (so it doesn't introduce itself
with the normal name of the server).
# Problems
In case of problems, always check the logfile first.
By default, qpsmtpd logs to log/main/current. Qpsmtpd can log a lot of
debug information. You can get more or less by adjusting the number in
config/loglevel. Between 1 and 3 should give you a little. Setting it
to 10 or higher will get lots of information in the logs.
If the logfile doesn't give away the problem, then post to the
mailinglist (subscription instructions above). If possible, put
the logfile on a webserver and include a reference to it in the mail.
[cov-img]: https://coveralls.io/repos/smtpd/qpsmtpd/badge.svg
[cov-url]: https://coveralls.io/r/smtpd/qpsmtpd
[ci-img]: https://travis-ci.org/smtpd/qpsmtpd.svg?branch=master
[ci-url]: https://travis-ci.org/smtpd/qpsmtpd
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
qpsmtpd, 在Perl中,qpsmtpd是一个灵活的smtpd守护进程.zip (242个子文件)
adaptive 5KB
add_geoip_headers 2B
add_geoip_headers 2B
apache 3KB
auth_checkpassword 6KB
auth_checkpassword 1KB
auth_cvm_unix_local 4KB
auth_flat_file 2KB
auth_flat_file 703B
auth_imap 4KB
auth_imap 527B
auth_ldap_bind 7KB
auth_vpopmail 3KB
auth_vpopmail 930B
auth_vpopmail_sql 5KB
auth_vpopmail_sql 1KB
auth_vpopmaild 4KB
auth_vpopmaild 709B
authdeny 473B
authdeny 376B
authnull 366B
aveclient 6KB
badhelo 100B
badhelo 100B
badmailfrom 4KB
badmailfrom 3KB
badmailfrom 198B
badmailfromto 2KB
badmailfromto 1KB
badrcptto 3KB
badrcptto 3KB
badrcptto 332B
badrcptto 332B
bitdefender 3KB
bogus_bounce 2KB
users.cdb 2KB
Changes 38KB
clamav 7KB
clamdscan 10KB
clamdscan 3KB
qpsmtpd.conf 508B
connection_id 3KB
connection_time 2KB
content_log 2KB
content_log 2KB
content_log_enabled 6B
count_unrecognized_commands 1KB
count_unrecognized_commands 836B
CREDITS 2KB
devnull 108B
dkim 17KB
dmarc 7KB
dmarc 1KB
dns_whitelist_soft 5KB
dnsbl 9KB
dnsbl 2KB
dnsbl_allow 43B
dnsbl_allow 43B
dnsbl_zones 38B
dnsbl_zones 17B
domainkeys 4KB
dont_require_anglebrackets 935B
dspam 20KB
dspam 3KB
earlytalker 7KB
earlytalker 4KB
exim-bsmtp 5KB
fcrdns 9KB
fcrdns 2KB
file 8KB
flat_auth_pw 108B
flat_auth_pw 52B
run.forkserver 483B
geoip 15KB
geoip 7KB
.gitignore 351B
greylist_exclude_files 38B
greylisting 18KB
greylisting 13KB
hbedv 5KB
headers 9KB
headers 4KB
helo 15KB
helo 5KB
help 4KB
hosts_allow 4KB
http_config 1KB
qpsmtpd.spec.in 12KB
invalid_resolvable_fromhost 108B
invalid_resolvable_fromhost 108B
IP 127B
karma 18KB
karma_tlds 234B
karma_tool 5KB
kavscanner 6KB
klez_filter 908B
LICENSE 1KB
loadcheck 4KB
log2sql 20KB
log2sql 136B
共 242 条
- 1
- 2
- 3
资源评论
weixin_38743737
- 粉丝: 376
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- base(1).apk.1
- K618977005_2012-12-6_beforeP_000.txt.PRM
- 秋招信息获取与处理基础教程
- 程序员面试笔试面经技巧基础教程
- Python实例-21个自动办公源码-数据处理技术+Excel+自动化脚本+资源管理
- 全球前8GDP数据图(python动态柱状图)
- 汽车检测7-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- 检测高压线电线-YOLO(v5至v9)、COCO、Darknet、VOC数据集合集.rar
- 检测行路中的人脸-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、VOC数据集合集.rar
- Image_17083039753012.jpg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功