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. Regards, Tilman _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

