We've expanded our news coverage and improved our search! Visit news.oreilly.com for the latest or search for all things across O'Reilly!
advertisement

Article:
  Sanitizing Mail on Panther Server
Subject:   Server Admin overwriting main.cf solution
Date:   2004-02-10 00:11:27
From:   loganj1
Proceed at your own risk - advise arranging for new employment first ...

1. Use "Server Admin" to shut down the Mail service.
2. Quit out of "Server Admin" - required.
3. Make a backup copy of the xml file "/etc/MailServicesOther.plist".
4. Use a text editor to modify the file "/etc/MailServicesOther.plist".
5. Add the following two lines, replacing the parenthesis (below) with angle brackets. I added these lines just before the line "(key maps_rbl_domains(/key)", but it probably works in other places in the "postfix" section. Important note: the space after "mailbox_transport" is required to avoid problems.

    (key)mailbox_transport (/key)
    (string)procmail(/string)

6. Save the file and exit the editor.
7. Start "Server Admin", and start the Mail service.
8. Make a configuration change in the Mail server that will cause the "/etc/postfix/main.cf" file to be rewritten - for example, make any change to the filters and click on "Save".

The tail end of the "main.cf" file should now show "mailbox_transport = procmail", and you won't need to make configuration changes when the Mail service is restarted (for whatever reason).

The xml file mentioned above can also be used to manually pre-populate or sort data in the Mail service filters, but doing so requires the same "Server Admin"/Mail service shutdown-edit-restart procedure.

It works for me. Cheers!