postfix邮件服务器安装反垃圾,反病毒组件(续上)

本文介绍了如何在Debian系统上安装和配置Postfix邮件服务器的反病毒和反垃圾邮件组件。包括安装amavisd-new、spamassassin、clamav及其相关设置,以及配置slockd作为反垃圾邮件策略服务,确保邮件系统安全。
摘要由CSDN通过智能技术生成

一,安装反病毒测试

debian @ apt-get install amavisd-new spamassassin clamav clamav-daemon clamav-freshclam arc bzip2 lzop zoo cpio

->在/etc/postfix/main.cf 加入

content_filter = smtp-amavis:[127.0.0.1]:10024

->在/etc/postfix/master.cf 加入

smtp-amavis unix -   -   n   -     2 smtp

 -o smtp_data_done_timeout=1200

 -o disable_dns_lookups=yes

#前面有空格,空格表示续上行

127.0.0.1:10025 inet n -        n       -       -       smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
       -o strict_rfc821_envelopes=yes

->配置amavisd-new ,编辑/etc/amavis/amavisd.conf,修改下面的内容

$mydomain = 'wader.com';

->跟据你自己的需要修改发现病毒垃圾邮件等的处理方法

->D_DISCARD 丢弃,D_BOUNCE 退信,D_REJECT 拒绝,D_PASS 通过

$final_virus_destiny      = D_DISCARD; # (defaults to D_BOUNCE)
$final_banned_destiny     = D_BOUNCE;  # (defaults to D_BOUNCE)
$final_spam_destiny       = D_REJECT;  # (defaults to D_REJECT)
$final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE suggested

->配置spamassa

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值