首页 > postfix > postfix 反垃圾邮件<一>

postfix 反垃圾邮件<一>

2010年3月25日 eric 发表评论 阅读评论

研究postfix 有段时间了,相信大家搭建好邮件服务器后都怕被别人利用,或者每天收到大量的垃圾邮件烦恼。
大家该怎么拦截这些垃圾邮件呢?我也是菜鸟,只是初步研究和学习了一下。

下面我说一个最简单的例子

smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
reject_invalid_hostname
reject_unknown_sender_domain

这个例子对默认配置扩充了两个额外限制条件: reject_unauth_destination以及reject_invalid_hostname。
当客户端建立连接时,若它来自 mynetworks或mynetworks_restrictons过滤规则也就跟着结束,不再检查其他条件;
如果客户端来自外界网络, permit_mynetworks不会返回ok,也不会返回reject,而是返回dunno,于是postfix接着检查reject_unauth_destination。
如果邮件的收件人不在postfix所辖的网域(由mydestination定义), reject_unauth_destination返回 reject;否则返回dunno。
假设这次的结果是dunno,postfix会接着检查reject_invalid_hostname,如果客户端 使用HELO命令提供的主机名称是无效的,这项检查的结果是reject;如果有效,则为dunno。
最后,postfix检查 reject_unknown_sender_domain,如果客户端在mail from提供的邮件地址的网域部分是无效的(用DNS查不出来),则检查结果是reject。如果邮件能顺利通过上述四项限制条件而不发生任何 reject,postfix就会收下邮件,并交给适当的MDA处理。

转载请注明:文章转载自:Eric's linux and nginx! (http://www.nginxs.com)
本文地址:http://www.nginxs.com/linux/87.html

分类: postfix 标签: ,
  1. 2018年5月24日08:13 | #1

    We offer instructional and restore services for owners.

  2. 2018年6月12日22:33 | #2

    Location Levitra 20mg Cialis Wirkung Nebenwirkung cheapest cialis How To Buy Viagra On Line Cheap

  3. 2018年7月16日18:13 | #3

    Same day repair providers on most makes and models.

  4. 2018年7月17日01:03 | #4

    no deposit bonus without verification
    no deposit bonus jackpot wheel
    casino zadar
    queen vegas no deposit bonus
    real casino games real money online

  5. 2018年7月23日06:17 | #5

    mobile slots probability
    william hill no deposit bonus
    gambling games online real money
    online roulette loophole
    online slots signup bonus

  6. 2018年7月26日11:09 | #6

    kasino
    best online casino
    play casino games online
    casino games
    casino games real money

  7. 2018年9月18日04:29 | #7

    Why users still make use of to read news papers when in this technological world everything is
    available on net?

  8. 2018年9月25日12:29 | #8

    It’s really very complex in this full of activity
    life to listen news on Television, so I simply use web
    for that purpose, and obtain the hottest information.

  9. 2018年9月27日03:22 | #9

    Today, I went to the beach front with my children. I found a sea shell
    and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed
    the shell to her ear and screamed. There
    was a hermit crab inside and it pinched her ear. She never wants to
    go back! LoL I know this is totally off topic but I had
    to tell someone!

  10. 2018年10月4日04:13 | #10

    6. New York Academy for Appearing and Movie.

  11. 2018年10月5日14:51 | #11

    I am in fact pleased to glance at this web site
    posts which consists of lots of valuable facts, thanks
    for providing these kinds of information.

  12. 2018年10月6日04:42 | #12

    Hello there, just became aware of your blog through Google, and
    found that it is really informative. I’m going to watch out for brussels.
    I’ll appreciate if you continue this in future. Many people
    will be benefited from your writing. Cheers!

  13. 2018年10月7日10:32 | #13

    Hello mates, its enormous article about educationand completely
    explained, keep it up all the time.

  14. 2018年10月8日16:50 | #14

    Thanks for finally writing about >Eric’s linux and nginx!
    > postfix 反垃圾邮件 <Loved it!

  15. 2018年10月8日21:20 | #15

    Hi! I know this is kinda off topic however , I’d figured I’d ask.
    Would you be interested in trading links or maybe guest
    authoring a blog post or vice-versa? My website discusses a lot of the same topics as yours and I think we could
    greatly benefit from each other. If you happen to be interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Fantastic blog by the way!

  16. 2018年10月8日23:55 | #16

    Definitely believe that which you said. Your favorite reason seemed to be on the web the simplest thing to
    be aware of. I say to you, I certainly get annoyed while people consider worries that they just do
    not know about. You managed to hit the nail
    upon the top as well as defined out the whole thing without having
    side-effects , people could take a signal.
    Will probably be back to get more. Thanks

  17. 2018年10月10日19:50 | #17

    Hi there to every one, the contents existing at this site are
    truly amazing for people knowledge, well, keep up the good work fellows.

  18. 2018年10月16日23:09 | #18

    Yes! Finally someone writes about tinder dating site.

  19. 2018年10月18日21:51 | #19

    I studied in just a few colleges for performing.

  20. 2018年10月21日17:31 | #20

    This is a really good tip particularly to those new to the blogosphere.
    Simple but very accurate information… Appreciate your sharing this one.

    A must read article!

  21. 2018年11月9日10:01 | #21

    I think the admin of this web page is really working hard in support of
    his web page, since here every stuff is quality based data.

  22. 2018年11月9日19:31 | #22

    Magnificent beat ! I wish to apprentice even as you amend your site,
    how could i subscribe for a weblog web site? The account aided me a appropriate deal.
    I have been a little bit familiar of this your broadcast provided vibrant clear idea

  23. 2018年11月11日21:51 | #23

    I loved as much as you’ll receive carried out right
    here. The sketch is attractive, your authored material stylish.

    nonetheless, you command get got an nervousness over that you wish be delivering the following.
    unwell unquestionably come more formerly again since exactly the same nearly very often inside case
    you shield this hike.

  24. 2018年11月12日04:53 | #24

    This post presents clear idea in support of the new viewers of blogging, that in fact how to do running a blog.

评论分页
订阅评论
5+7= (必填)