Exim How To Test system filter 測試

Exim system filter

測試指令:

#exim -f abc@oio.idv.tw -bfl cde -bfd ezbuy.idv.tw -bF system_filter < testmail.message

測試結果:
Sender = abc@oio.idv.tw
Recipient = cde@oio.idv.tw
Testing Exim filter file /usr/exim4/system_filter

Logfile /var/log/exim4/exim_filterlog
Filtering did not set up a significant delivery.
Normal delivery will occur.


指令說明:
-f



This option sets the address of the envelope sender of a locally-generated message (also known as the return path). The option can normally be used only by a trusted user, but untrusted_set_sender can be set to allow untrusted users to use it.


-bF

This option is the same as -bf except that it assumes that the filter being tested is a system filter. The additional commands that are available only in system filters are recognized.


-bfd

This sets the domain of the recipient address when a filter file is being tested by means of the -bf option. The default is the value of $qualify_domain.


-bfl

This sets the local part of the recipient address when a filter file is being tested by means of the -bf option. The default is the username of the process that calls Exim. A local part should be specified with any prefix or suffix stripped, because that is how it appears to the filter when a message is actually being delivered.

資料來源:
http://www.exim.org/exim-html-current/doc/html/spec_html/ch05.html

Posted in 標籤: |

1 意見:

  1. 匿名 Says:

    Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Monitor de LCD, I hope you enjoy. The address is http://monitor-de-lcd.blogspot.com. A hug.