1.Under Mail on the Manage Components menu, choose Sendmail Server/Using Open Source Configuration Rules.

2.From the Sendmail Server Administration menu, choose Configure Sendmail Server.

3.On the Configure Sendmail Server menu, make sure that Server is selected and click on Configure.

4.From the Configure Sendmail Server menu, choose Configure MILTER.

5.In the Existing Filters list, choose the filter to be modified.

6.Click Modify.

7.Modify the values as desired.

8.Click on Submit to change the filter.

Deleting a Mail Filter

To delete a mail filter, follow these steps:

1.Under Mail on the Manage Components menu, choose Sendmail Server/Using Open Source Configuration Rules.

2.From the Sendmail Server Administration menu, choose Configure Sendmail Server.

3.On the Configure Sendmail Server menu, make sure that Server is selected and click on Configure.

4.From the Configure Sendmail Server menu, choose Configure MILTER.

5.In the Existing Filters list, choose the filter to be deleted.

6.Click Delete.

7.On the confirmation page, click Continue.

Filters Included with Internet Express

Bogofilter and Clam AV anti-virus filters are supplied with this release. Clam AV anti-virus can be enabled using the Administration Utility (see Section : Enabling Anti-Virus). For information about Bogofilter, see Section : Bogofilter Spam Filter.

Creating a New Mail Filter

Appendix A includes the code for a sample mail filter code called sample.c. To compile it, use the following command:

#cc –I/usr/internet/include -o sample sample.c libmilter.a libsm.a -pthread

Any new filter must be thread-safe. Depending on how many threads will run, the per-process limits in the new filter may have to be changed.

Adding the Sample Filter Using the Administration Utility

Access the Add New Filter menu, as described in Section : Adding a Mail Filter. Enter the appropriate information for the filter, for example:

Filter Name: sample Socket: local:/var/run/f1.sock

Socket: local:/var/run/f1.sock

When you click on Submit, the new filter interface is added to the current Sendmail configuration file.

Testing the New Filter

The sample filter takes one argument, -p, which indicates the local port on which to create a listening socket (the UNIX domain socket located in /var/run/example1.sock).

./sample -p local:/var/run/example1.sock

110 Mail Delivery Administration

Page 110
Image 110
HP UX Internet Express Software manual Sample -p local/var/run/example1.sock