Method for email testing

后端 未结 14 1713
眼角桃花
眼角桃花 2020-12-24 01:56

I am writing a program that will be emailing reports out many (~100) clients which I want to test before I spam everyone.

I want to do a test run against my producti

14条回答
  •  天涯浪人
    2020-12-24 02:34

    Sendmail has a Test Mode.

    You just invoke sendmail with the -bt parameter. As an example:

    /usr/lib/sendmail -bt -Ciu-testconfiguration.cf

    Please be aware that in this method, Sendmail requires an special configuration on rewrite rules. You need to understand how Sendmail rewrites addresses in order to properly create a .cf file for Test Mode.


    Edit: See this article: http://ussg.iu.edu/usail/mail/debugging/

提交回复
热议问题