[axxs-sysadmin] Spamassassin stuff

maikkeli mkli at riseup.net
Wed Apr 9 01:22:30 PDT 2008


$> sed -i "1i\insertedLine1\ninsertedLine2" work-on-this-file.txt

 ..or if you want to make a backup:

$> sed -i.bak "1i\insertedLine1\ninsertedLine2" work-on-this-file.txt

 ..the "1i\" is the command to insert before line 1; the \n is a
newline character.
 .. -i says edit the file in place, and you can give it a backup suffix.

 michael.

On Tue, Apr 8, 2008 at 11:59 AM, Dave Fregon <dave at netaxxs.com.au> wrote:
> Added too /etc/sysconfig/spamassassin
>
>  SPAMDOPTIONS="/usr/bin/spamd --username=popuser --daemonize --nouser-config --helper-home-dir=/var/qmail --max-children 5 --create-prefs --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --pidfile=/var/run/spamd/spamd_full.pid --socketpath=/tmp/spamd_full.sock"
>
>  prepended to /var/qmail/mailnames/axxs.org/axxs/.qmail (for example)
>
>  | /usr/local/psa/bin/psa-spamc accept
>
>  but then I got :
>
>  Can't locate Mail/SPF/Query.pm in @INC
>
>  in the logs, so grabbed Mail::SPF::Query from cpan and deps and installed
>
>  everything seems go now checking logs for the axxs AT axxs.org account .. but this needs to be prepended to everyones .qmail file not overwriting everything.
>
>  anyone know how to do this with sed or something similar?
>
>  --
>  Dave Fregon
>
>  NetAxxs Workers Collective
>  Ph:  +613 5721 7777
>  Mob: 0434 000 234
>  25A Ely Street
>  Wangaratta 3677
>  Australia
>
>  _______________________________________________
>  axxs-sysadmin mailing list
>  axxs-sysadmin at lists.indymedia.org
>  http://lists.indymedia.org/mailman/listinfo/axxs-sysadmin
>


More information about the axxs-sysadmin mailing list