[Mimedefang] sanity Check: MD -> SpamAssassing checks ~/.spamassassin/user_prefs

Tilman Schmidt t.schmidt at phoenixsoftware.de
Thu Aug 2 16:12:51 EDT 2012

Am 02.08.2012 19:13, schrieb Kevin A. McGrail:
> On 8/2/2012 12:00 PM, Tilman Schmidt wrote:
>> Perhaps it could be taught, though. I guess you could add some Perl
>> code to the mimedefang-filter script to - check the domain part of
>> destination addresses whether it is delivered locally (eg. by looking
>> it up in local-host-names) - if so, look up the local part in aliases
>> and/or virtusertable to find if it is delivered to a local shell user
>> - if found, look in that user's home directory for a
>> .spamassassin/userprefs file - if it exists, use it. 
> Or just shell out and run sendmail -bv [email address]

That has its own challenges:

- You'll have to arrange for sendmail -bv to be run as root
  even though MIMEdefang itself runs as the unprivileged
  "defang" user.

- You'll have to parse sendmail -bv's output, possibly
  including multiple lines.


More information about the MIMEDefang mailing list