6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/9/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6364] Training SpamAssassin, Horde, IMAP, Plesk user configuration
*
Your Email Address
*
Spam protection
Enter the letters below:
._. __ .__ . ..__ | / `[ __|_/ [__) _|_\__.[_./| \[__)
Comment
> The problem with Spam.php is that spam programs typically need to > know the user name and domain in order to run properly (this is > especially true when running virtual hosts or co-location). > > > > Horde-IMP supports %u for the whole email address. I have added %l > for user name and %d for domain. > > > > horde/imp/lib/Spam.php: > > > > /* If a (not)spam reporting program has been provided, use > > * it. */ > > if (!empty($GLOBALS['conf'][$action]['program'])) { > > $raw_msg = $imp_contents->fullMessageText(); > > /* Use a pipe to write the message contents. This should > > * be secure. */ > > $email_address = explode("@", Auth::getAuth()); > > > > $prog = str_replace('%u', escapeshellarg(Auth::getAuth()), > $GLOBALS['conf'][$action]['program']); > > $prog = str_replace('%l', escapeshellarg($email_address[0]), $prog); > > $prog = str_replace('%d', escapeshellarg($email_address[1]), $prog); > > $proc = proc_open($prog, > > > > So that my command lines are: > > > > SPAM="/usr/bin/sa-learn -u %u --dbpath > /var/qmail/mailnames/%d/%l/.spamassassin -L --spam" > > HAM="/usr/bin/sa-learn -u %u --dbpath > /var/qmail/mailnames/%d/%l/.spamassassin -L --ham" > > > > In imp/config/conf.php the only related options are: > > > > $conf['spam']['reporting'] = false; > > $conf['notspam']['reporting'] = false; > > > > It took ages hunting through the source code to find that filtering > programs were supported and have config options. Please can you add > these to imp/config/conf.php > > > > $conf['spam']['program'] = ''; > > $conf['notspam']['program'] = ''; > > > > > > The rest of the article talks about the fact that the web service > runs under a different user to the email subsystem and there are > permission conflicts that need to be resolved so that the web user > can submit work to the spam engine. I think these issues are beyond > the scope of Horde.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers