免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6817 | 回复: 18
打印 上一主题 下一主题

[OpenBSD] [脚本,Ver: 0.4] OpenBSD Mail Server Solution [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-28 06:46 |只看该作者 |倒序浏览
直接发布 0.4 版本,move to google code:

Project:
* http://code.google.com/p/openbsdonly/

Source Code:
* http://openbsdonly.googlecode.co ... erver_solution/oms/

wiki:
* http://code.google.com/p/openbsdonly/wiki/
* http://code.google.com/p/openbsdonly/wiki/OMS_en
* http://code.google.com/p/openbsd ... _Server_Solution_en

Screenshots:
* http://code.google.com/p/openbsdonly/wiki/OMS_en

所有基本功能都已完成,并且经过多人、多次测试。

主要的改进和增强:

  1. * 所有核心组件都已可以自动安装和配置。
  2. * 使用 PF + spamd(8) 控制 blacklist, whitelist, greylist。不再考虑 Spam Locker。 spamd(8) is better.
  3. * 设置了默认的 PF rules,开放了一些常用端口。

  4. * Postfix
  5.         - 所有 LDAP 配置,都分割到了独立的配置文件里:/etc/postfix/ldap_*。
  6.         - virtual_alias_maps 已经可以正常工作。
  7.         - 缩小了每次 LDAP tree 查询的范围。在性能上得到一定的提升。

  8. * OpenLDAP:
  9.     - 原先使用 Courier 的 authldap.schema,现在改成使用 qmail.schema。
  10.     - 默认禁止以匿名方式 bind,并且启用 LDAPv2 支持。
  11.     - 日志级别默认设置为 0,不记录任何日志。
  12.     - 设置了“强悍”的 ACL。
  13.         - 每个虚拟域都可以有一个系统管理员,可以控制域内的用户。
  14.         - 用户只能查询到本域内的其它 dn。
  15.         - ...
  16.         
  17. * SquirrelMail:
  18.         - i18n 支持。添加了 all_locales 包。
  19.         - 为了可以正确显示 LDAP 属性里的中文信息,简、繁体中文的 locale 文件默认被转换为 utf-8 字符集。
  20.     - 增加了多个插件:
  21.             - Calendar
  22.             - Global LDAP Address Book
  23.             - change_ldappass
  24.             - Check Quota
  25.             - Select Language

  26. * tools/config_via_dialog.sh:
  27.         - 去掉了几个参数配置页面
  28.        
复制代码


以下是自 0.2 版本至今的 changelog:

  1. 0.3 -> 0.4:
  2.     * It will prompt for installation after you finish 'config_via_dialog.sh'.
  3.     * Setting 'CONFIG_FILE' in 'conf/global' only.
  4.     * It will check 'CONFIG_FILE' now.
  5.     * Remove 'OPENLDAP_DATABASE' in 'tools/config_via_dialog.sh', we use 'bdb' by default
  6.     * Remove spam locker('conf/others/slockd'), we don't need it.
  7.     * Start 0.4 now.

  8. 0.3beta2:
  9.         * Tagged as 0.3 -release.
  10.         * Set spamd(8) -G passtime to 1 minute. Suggested by 'netbsder (at)
  11.           gmail (dot) com'.
  12.         * Enable spamd-setup in root's crontab.
  13.         * Fix postfix setting in main.cf:
  14.                 smtpd_recipient_restrictions
  15.           Remove spam locker. Thanks to 'netbsder (at) gmail (dot) com'.
  16.         * Increase 'VMAIL_USER_UID': 1000 -> 2000.
  17.         * Seperate all LDAP configuration for postfix into several
  18.           configuration files.
  19.         * Postfix LDAP alias works now.
  20.         * Add some whitelist domains in SpamAssassin
  21.           (/etc/mail/spamassassin/local.cf).
  22.         * Change httpd.conf:
  23.                 UseCanonicalName Off        # Default: On
  24.           Thanks to 'netbsder (at) gmail (dot) com'.
  25.         * Add squirrelmail plugins:
  26.                 - compatibility
  27.                 - check_quota
  28.                 - select_language
  29.         * Start 0.3beta2.

  30. 0.3beta1:
  31.     * [spamd(8) & PF]
  32.                 * adjust pf rules to fix spamd.conf.
  33.                 * move black/white list to spamd.conf.
  34.                 * enable spamd(8) by default.
  35.                 * add pf rule for all public services we used.
  36.                 * the default strategy in pf is commented by default.

  37.     * [Maildrop]
  38.                 * maildrop will auto subscribe the subdirectories to iamp server now.
  39.                 * maildrop will include "$HOME/.mailfilter" (User: vmail).
  40.                 * Set the log file to '/var/log/maildrop.log', default permission: 644.
  41.                 * Set the owner to 'vmail:vmail' for maildrop log file.
  42.                 * Remove 'log' arg in /etc/courier/maildroprc.

  43.     * [OpenLDAP]
  44.                 * disable bind as anonymous by default.
  45.                         disallow        bind_anon

  46.                 * add one more value for 'loglevel'.
  47.                 * We fetch authldap.schema from binary package 'courier-authlib-ldap'
  48.                   now.
  49.                 * 'log_level' set to '0' by default.
  50.                 * Use orig authldap.schema.
  51.                 * dn of vmail/vmailadmin were changed to:
  52.                         cn=vmail, ${LDAP_SUFFIX}
  53.                         cn=vmailadmin, ${LDAP_SUFFIX}
  54.                   Not in ${LDAP_BASEDN} any more.

  55.                 * Fixed typo error in ACL.
  56.                 * Fixed error of ${LDAP_YOUR_DOMAIN_ADMIN_PASSWD} while add
  57.                   ${LDAP_YOUR_DOMAIN}
  58.                 * ACL changed, so that 'vmailadmin' can add new domains/users.
  59.                         OLD: access to dn.children="o=domains, dc=openbsdonly, dc=org"
  60.                         NEW: access to dn.subtree="o=domains, dc=openbsdonly, dc=org"
  61.                 * ACL improvement:
  62.                         Every domain has a administrator now:

  63.                         mail=${LDAP_YOUR_DOMAIN_ADMIN_NAME}@${LDAP_YOUR_DOMAIN}, \
  64.             o=${LDAP_YOUR_DOMAIN}, ${LDAP_BASEDN}

  65.                         For domain 'openbsdonly.org', the administrator is:

  66.             mail=admin@openbsdonly.org, o=openbsdonly.org, o=domains, dc=openbsdonly, dc=org

  67.                         An administrator will be added automatic by this script.

  68.                 * ACL changed, so that others can read 'cn,sn' attrs.
  69.                 * Add 'cn' attr for:
  70.             ${LDAP_EXAMPLE_USER}
  71.             ${LDAP_YOUR_DOMAIN_ADMIN_NAME}
  72.    
  73.         * [Postfix]
  74.         * Add 'message_size_limit', the default value is set by
  75.           ${MESSAGE_SIZE_LIMIT} in 'conf/postfix'
  76.    
  77.         * Add 'virtual_overquota_bounce=yes' and 'virtual_maildir_limit_message'.
  78.           Set virtual_maildir_limit_message via '${MAILDIR_LIMIT_MESSAGE}' in
  79.           'conf/postfix'.
  80.    
  81.         * Performence improvement:
  82.             - add 'o="%u"' in _search_base. '%u' -> the domain part in input key
  83.               (mail attr here).
  84.    
  85.               when you send mail to 'www@openbsdonly.org, the search base will be:
  86.                   o=openbsdonly.org, o=domains, dc=openbsdonly, dc=org
  87.               *NOT* 'o=domains,dc=openbsdonly,dc=org' any more.
  88.    
  89.             - Add '_scope' for LDAP search.
  90.                 _scope=one
  91.    
  92.             - add 'description' in LDAP ACL:
  93.                 - attrs
  94.                 - index
  95.    
  96.         * Add 'localhost.$myhostname' in '$mydestination'.
  97.         * Maildrop will create '.Spam' directory in user's Maildir directory
  98.           automatic now.
  99.    
  100.         * [SquirrelMail]
  101.                 * Update locales to 'all_locales-1.4.13-20071220.tar.bz2'.
  102.         * Update to SquirrelMail 1.4.13(2007.12.14).
  103.         * Fix an error in function 'convert_translation_locale':
  104.             OLD:    locale_new="$3"
  105.             NEW:    export locale_new="$3"
  106.    
  107.         * Add two args in 'conf/squirrelmail' for locale setting:
  108.             - ${SQUIRRELMAIL_DEFAULT_LOCALE}     --> zh_CN is default
  109.             - ${SQUIRRELMAIL_DEFAULT_CHARSET}     --> utf-8 is default
  110.    
  111.         * Add global address book by default.
  112.           Usage:
  113.               - Login into SquirrelMail
  114.               - Compose
  115.               - Address book
  116.               
  117.         * Locale for chinese was changed to 'utf-8' by default --> for global ldap
  118.           address book, because phpLDAPadmin use 'utf-8' to store attrs(include 'cn'
  119.           which store name).
  120.    
  121.           Add function: convert_translation_locale.
  122.    
  123.         * Add 'help' documentation convert in 'convert_translation_locale'.
  124.    
  125.         * [SpamAssassin]
  126.         * 'report_safe' -> '0' by default.
  127.         * Seperate variables into 'conf/spamassassin'.
  128.    
  129.         * [ClamAV]
  130.         * It will ask operator whether run 'freshclam' or not after installation
  131.           completed.
  132.    
  133.         * [Amavisd-new]
  134.         * Add default listen IP/PORT:
  135.             $notify_method  = 'smtp:[127.0.0.1]:10025';
  136.             $forward_method = 'smtp:[127.0.0.1]:10025';
  137.         * Add default action:
  138.             $final_virus_destiny      = D_DISCARD;
  139.             $final_banned_destiny     = D_PASS;
  140.             $final_spam_destiny       = D_PASS;
  141.             $final_bad_header_destiny = D_PASS;
  142.    
  143.         * [config_via_dialog.sh]
  144.         * Add two args:
  145.             LDAP_ADMIN_DN
  146.             LDAP_ADMIN_PW
  147.         * Add two args:
  148.             LDAP_YOUR_DOMAIN_ADMIN_NAME
  149.             LDAP_YOUR_DOMAIN_ADMIN_PASSWD

  150.         * [tools/create_mail_ldap_user.sh]
  151.                 * Create '${MAILBOX}/courierimapsubscribed' file by default.
  152.                 * Default password for user is the same string as their username.
  153.                 * Fix 'objectClass' name in user LDIF template.
  154.    
  155.     * [openbsd_mail_server_0.3.sh]
  156.                 * We move to qmail.schema now. Remove authldap.schema entry.
  157.                 * Append $MISC_PATH to $PKG_PATH.
  158.                 * Create '$MAILBOX/courierimapsubscribed' file for example user.
  159.                 * Use multi mirrors in PKG_PATH, separated be colons.
  160.                         PKG_PATH:'ftp://mirror1/':'ftp://mirror2/'

  161.                 * Fix function name error.
  162.         * Remove slockd(spam locker).
  163.         * Backup amavisd configuration file.
  164.         * Remove unused ACL expression(uid=).
  165.         * Add new script: tools/perl_in_chrooted_httpd.sh.
  166.           Used to copy all files needed for perl in the chrooted httpd server.
  167.         * add variable MISC_PATH in (conf/global) for misc files which needed in
  168.           ports build, configuration dependence, etc.
  169.         * in /etc/rc.conf.local, reset the name:
  170.             pop3 -> pop3d
  171.             imap -> imapd
  172.         * More clear perl regular expression.
  173.         * Seperated and cleared. Yes, some minor error fixed.
  174.         * Remove function 'active_module', we don't need it any more.
复制代码

[ 本帖最后由 MichaelBibby 于 2008-2-24 23:14 编辑 ]

thanks_for_user.png (7.06 KB, 下载次数: 37)

thanks_for_user.png

main_features.png (8.31 KB, 下载次数: 37)

main_features.png

PKG_PATH.png (8 KB, 下载次数: 38)

PKG_PATH.png

ldap_suffix.png (6.14 KB, 下载次数: 41)

ldap_suffix.png

ldap_rootdn.png (5.77 KB, 下载次数: 42)

ldap_rootdn.png

ldap_rootpw.png (4.86 KB, 下载次数: 36)

ldap_rootpw.png

ldap_basedn.png (6.54 KB, 下载次数: 38)

ldap_basedn.png

vmail_user.png (7.71 KB, 下载次数: 38)

vmail_user.png

vmail_user_pw.png (5.03 KB, 下载次数: 43)

vmail_user_pw.png

ldap_bind_manage_info.png (7.23 KB, 下载次数: 40)

ldap_bind_manage_info.png

vmail_home.png (7.28 KB, 下载次数: 38)

vmail_home.png

vmail_uid_gid.png (5.29 KB, 下载次数: 34)

vmail_uid_gid.png

first_virtual_domain.png (6.26 KB, 下载次数: 38)

first_virtual_domain.png

virtual_domain_admin.png (7.42 KB, 下载次数: 37)

virtual_domain_admin.png

virtual_domain_admin_pw.png (5.7 KB, 下载次数: 40)

virtual_domain_admin_pw.png

virtual_domain_user.png (5.96 KB, 下载次数: 37)

virtual_domain_user.png

virtual_domain_user_pw.png (5.43 KB, 下载次数: 39)

virtual_domain_user_pw.png

论坛徽章:
0
2 [报告]
发表于 2007-11-28 10:19 |只看该作者
MichaelBibby 我很佩服你的学习精神!!

收藏!!!!

论坛徽章:
0
3 [报告]
发表于 2007-11-28 11:45 |只看该作者
辛苦了

论坛徽章:
0
4 [报告]
发表于 2007-11-28 16:37 |只看该作者
已完成 SquirrelMail 的自动配置的代码。还剩下插件 change_ldappass。

论坛徽章:
0
5 [报告]
发表于 2007-11-28 18:35 |只看该作者
已完成 SquirrelMail 的插件 change_ldappass 的自动配置部分的代码。

还剩下 ClamAV 及其以下的内容。

论坛徽章:
0
6 [报告]
发表于 2007-11-28 23:05 |只看该作者
强列支持,期待你的完工!

论坛徽章:
0
7 [报告]
发表于 2007-11-29 19:19 |只看该作者
辛苦了。。。

论坛徽章:
0
8 [报告]
发表于 2007-12-02 01:05 |只看该作者
使用 dialog 做了一个 wizard,引导用户进行必要的配置。

论坛徽章:
0
9 [报告]
发表于 2007-12-02 01:13 |只看该作者
帅呆了

论坛徽章:
0
10 [报告]
发表于 2007-12-04 17:19 |只看该作者
,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP