Hi JJ, This is a question for the mimedefang list but yes, you need a semicolon on the first line. That was just my quick cut and paste.
A quick Google finds this as perhaps a good starting point: http://lists.roaringpenguin.com/pipermail/mimedefang/2007-April/032485.html However, you might be biting off more than you can chew and need to hire a programmer. Regards, KAM On January 4, 2015 1:28:39 AM EST, "J.J. Day" <day1...@hotmail.com> wrote: > >> >> On Jan 3, 2015, at 8:22 AM, Kevin A. McGrail <kmcgr...@pccc.com> >wrote: >> >> JJ, there is no logic by default in MD that turns email addresses >into usernames. You'll need to write that logic and then load the sql >config options with something like this: >> >> $sa_object->load_scoreonly_sql($username) >> $sa_object->signal_user_changed({ username => $username}, user_dir => >undef); >> >> Regards, >> KAM > >KAM, > >Thanks for the information. > >I do not know Perl well enough to write code but extracting the >username for the message within the spam assassin code block appears >easy enough. Debug output statements confirms the username is set >properly and the inserted code restricted to test cases. I have a >problem though with the sample code you suggest. > >An error is generated for the first line unless an ";" is added at the >end of the line. But the slave dies prematurely when the ";" is added >and the message is temp failed. Since I don't understand the code, I >have not idea how to tell what is wrong. > >Can you elaborate on the code and, in particular, where to find the >functions load_scoreonly_sql() and signal_user_changed() ? > >TIA, > >JJ