aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2003-08-26 20:00:52 +0000
committerWojciech Polak <polak@gnu.org>2003-08-26 20:00:52 +0000
commit16a3bd636043b445299d319fc51c095115c207a7 (patch)
tree9125084743270768978ec0bb9481c686199f9d16 /examples
parent2136349ec11ef701ce4adbe93fa29f31dcf4f539 (diff)
downloadanubis-16a3bd636043b445299d319fc51c095115c207a7.tar.gz
anubis-16a3bd636043b445299d319fc51c095115c207a7.tar.bz2
Updated
Diffstat (limited to 'examples')
-rw-r--r--examples/1anubisrc41
-rw-r--r--examples/2anubisrc1
2 files changed, 20 insertions, 22 deletions
diff --git a/examples/1anubisrc b/examples/1anubisrc
index 31f5728..307e15f 100644
--- a/examples/1anubisrc
+++ b/examples/1anubisrc
@@ -11,10 +11,11 @@
#
---BEGIN CONTROL---
-# logfile FILE-NAME
-# loglevel NONE-FAILS-ALL
# remote-mta HOST[:PORT]
# local-mta FILE-NAME [ARGS]
+# logfile FILE-NAME
+# loglevel NONE-FAILS-ALL
+# tracefile YES-NO-FILE-NAME
# esmtp-auth USERNAME:PASSWORD
# socks-proxy HOST[:PORT]
# socks-v4 YES-OR-NO
@@ -27,13 +28,13 @@
---END---
#
-# The Rule System (The "RULE" section)
+# The Rule System (The RULE section)
# User configuration file only. Examples:
#
---BEGIN RULE---
-gpg-passphrase MYSECRETPASSPHRASE
+gpg-passphrase "MYSECRETPASSPHRASE"
# Process the (E)SMTP commands.
@@ -44,17 +45,17 @@ fi
# Process a message header lines.
# The Triggers:
-trigger "^gpg-encrypt"
- gpg-encrypt GPG-KEY(S)
+trigger "gpg-sign"
+ gpg-sign default
done
-trigger "^gpg-sign"
- gpg-sign yes
+trigger "gpg-encrypt:(.*)"
+ add header[X-GPG] "Encrypted for \1"
+ gpg-encrypt \1
done
-trigger "^gpg-dynamic:(.*)"
- add header[X-GPG-Comment] "Encrypted for \1"
- gpg-encrypt \1
+trigger "gpg-se:(.*)"
+ gpg-se \1:default
done
#
@@ -62,29 +63,25 @@ done
#
if header[To] ".*<?friend1@somewhere.net>?"
- modify header[Reply-To] "mybox@myisp.net"
- add header[X-Comment] "GNU's Not Unix!"
+ modify header[Reply-To] "mybox@myisp.net"
+ add header[X-Comment] "GNU's Not Unix!"
fi
if header[X-Mailer] :perlre "(.*)"
- add header[X-Comment] "\1 rocks!"
- modify header[X-Mailer] "The lousy mailer \1"
+ add header[X-Comment] "\1 rocks!"
+ modify header[X-Mailer] "The lousy mailer \1"
fi
if header[Subject] "(.*)" and not header[Subject] :scase "URGENT"
- add header[X-Comment] "This message is not URGENT (\1)."
+ add header[X-Comment] "This message is not URGENT (\1)."
fi
if header[Subject] "gpg-encrypt"
- gpg-encrypt GPG-KEY(S)
-fi
-
-if header[Subject] "gpg-sign"
- gpg-sign PASSPHRASE
+ gpg-encrypt GPG-KEY(S)
fi
if header[Subject] "signature-file"
- signature-file-append yes
+ signature-file-append yes
fi
---END---
diff --git a/examples/2anubisrc b/examples/2anubisrc
index 107fca1..1762b2e 100644
--- a/examples/2anubisrc
+++ b/examples/2anubisrc
@@ -15,6 +15,7 @@
# remote-mta HOST[:PORT]
# local-mta FILE-NAME [ARGS]
# termlevel NORMAL-VERBOSE-DEBUG-SILENT
+# tracefile YES-OR-NO
# esmtp-auth USERNAME:PASSWORD
# socks-proxy HOST[:PORT]
# socks-v4 YES-OR-NO

Return to:

Send suggestions and report system problems to the System administrator.