On Mon, 2017-10-09 at 17:24 -0700, Imam Toufique wrote: > > So, I followed the example and created my command below: > > su fetchmail -s /bin/sh -c "/usr/bin/spamc | > /usr/local/bin/spamkiller > -c=/usr/bin/fetchmail -a -v -f /opt/RT/4.4.2/etc/fetchmailrc" > > when I run the above, nothing seems to happen. I am sure I am > missing > something here, not sure what it is. > I've finally realised why your command (shown above) didn't work. The short answer is "because there's no argument substitution in a literal" and you'd used a literal string as the -c optional value where I'd used a script, defined via the getmail configuration file and because you claimed you were using getmail but you actually used fetchmail.
Martin