ERROR: unbound variable: openssl-filter

View: New views
3 Messages — Rating Filter:   Alert me  

ERROR: unbound variable: openssl-filter

by Torsten Weinstein :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I set up Anubis with the following configuration

#
# The "CONTROL" section.
# User configuration file.
#
---BEGIN AUTH---
smtp-greeting-message antispameurope GmbH - ANUBIS Server
sasl-allowed-mech LOGIN
sasl-password-db gdbm:/etc/anubis.db
---END---

---BEGIN CONTROL---
bind 0.0.0.0:24
# remote-mta 192.168.100.41:25
local-mta /usr/sbin/sendmail -bs

logfile /var/log/anubis.log
loglevel all

tracefile yes
tracefile /var/log/anubis.trace
termlevel debug

mode auth

read-entire-body yes

ssl yes
ssl-cert /usr/share/ssl/certs/anubis.pem
ssl-key /usr/share/ssl/certs/anubis.pem


to sign messages with a s/mime key. I can login at the server via sasl , but
the sign with s/mime gets an error.

Here the output from "anubis -f -D"

CLIENT >>> .(3)
> [25366] /etc/anubisrc:69: Section RULE
> [25366] /etc/anubisrc:73: Matched condition HEADER[From] "XXX@..."
> [25366] /etc/anubisrc:75: Executing guile-process
ERROR: In procedure scm_lookup:
ERROR: unbound variable: openssl-filter
> [25366] /etc/anubisrc:120: Matched condition HEADER[Subject] "(.*)"
> [25366] /etc/anubisrc:121: ADD HEADER [X-Comment] This message is not
URGENT (:wq).
SERVER <<< Message-ID: <4807B1EF.2090905@...>(43)
SERVER <<< Date: Thu, 17 Apr 2008 22:24:15 +0200(39)
SERVER <<< From: Torsten <XXX@...>(45)
SERVER <<< User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)(53)
SERVER <<< MIME-Version: 1.0(19)
SERVER <<< To: XXX@...(33)
SERVER <<< Subject: :wq(14)
SERVER <<< Content-Type: text/plain; charset=ISO-8859-1; format=flowed(61)
SERVER <<< Content-Transfer-Encoding: 7bit(33)
SERVER <<< X-Comment: This message is not URGENT (:wq).(46)
SERVER <<< (2)
SERVER <<< (2)
SERVER <<< .(3)
SERVER >>> 250 2.0.0 Ok: queued as 77C39167687(37)
CLIENT <<< 250 2.0.0 Ok: queued as 77C39167687(37)
CLIENT >>> QUIT(6)
SERVER <<< QUIT(6)
SERVER >>> 221 2.0.0 Bye(15)
CLIENT <<< 221 2.0.0 Bye(15)
> [25366] Connection closed successfully.

What can I do to solve the error with openssl-filter? Is this a chmod
problem or an userproblem?

Greetings,

Torsten




_______________________________________________
Bug-anubis mailing list
Bug-anubis@...
http://lists.gnu.org/mailman/listinfo/bug-anubis

smime.p7s (8K) Download Attachment

Parent Message unknown AW: ERROR: unbound variable: openssl-filter

by Torsten Weinstein :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I solve the connection problem with one of your tips. It use now the mode
auth and it works. And the signing of messages are solve too. But only with
an empty passphrase, the option gpg-passphrase "password" don't work. This
in another problem...

Now to the s/mime problem. I use Anubis 4.1 and Guile 1.8.1

Sorry, not send the complete config. Here it is:

---BEGIN AUTH---
smtp-greeting-message ANUBIS Server
sasl-allowed-mech LOGIN
sasl-password-db gdbm:/etc/anubis.db
---END---

---BEGIN CONTROL---
bind 0.0.0.0:24
# remote-mta 192.168.100.41:25
local-mta /usr/sbin/sendmail -bs

logfile /var/log/anubis.log
loglevel all

tracefile yes
tracefile /var/log/anubis.trace
termlevel debug

mode auth

read-entire-body yes

ssl yes
ssl-cert /usr/share/ssl/certs/anubis.pem
ssl-key /usr/share/ssl/certs/anubis.pem
---END---

#---BEGIN TRANSLATION---
# translate xxx@... into root
#---END---

---BEGIN GUILE---
guile-load-program entire-msg.scm
---END---

#
# The Rule System (The RULE section)
# User configuration file only. Examples:
#

---BEGIN RULE---

# gpg-passphrase "company"

if [From] "xxx@..."
  guile-process openssl-filter /usr/bin/openssl smime -sign -signer
/keys/weinstein.p12
        # gpg-encrypt 14957DB8
        gpg-sign company
fi


if header[Subject] "(.*)" and not header[Subject] :scase "URGENT"
  add header[X-Comment] "This message is not URGENT (\1)."
fi

---END---

I copy the example from the docu and change the path to the openssl (use
SuSE 10.3) and the path to my certificate which I want to use

-----Ursprüngliche Nachricht-----
Von: Wojciech Polak [mailto:polak@...]
Gesendet: Donnerstag, 17. April 2008 23:32
An: Torsten Weinstein
Betreff: Re: [bug-anubis] ERROR: unbound variable: openssl-filter

On 2008-04-17 at 22:36 +0200, Torsten Weinstein wrote:

Hi,

So beside s/mime issue, did you solve recent problems you had
with connection timeouts? If so, then how?

> I set up Anubis with the following configuratio
> to sign messages with a s/mime key. I can login at the server via sasl ,
but
> the sign with s/mime gets an error.

I didn't see "BEGIN GUILE" in your config.

BEGIN GUILE
guile-load-program entire-msg.scm
END

BEGIN RULE
guile-process openssl-filter /usr/local/ssl/bin/openssl \
              smime -sign -signer FILE
END

Check out:
http://www.gnu.org/software/anubis/manual/html_node/S_002fMIME.html#SEC63

If this won't help, then: what's Guile version?, is Anubis 4.1 or 4.0?,
and did you try "make check" to run all Anubis tests (including
some anubis guile tests)?

Regards,
Wojciech




_______________________________________________
Bug-anubis mailing list
Bug-anubis@...
http://lists.gnu.org/mailman/listinfo/bug-anubis

smime.p7s (8K) Download Attachment

AW: ERROR: unbound variable: openssl-filter

by Sergey Poznyakoff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Torsten,

Sorry I was not able to reply earlier.

> Okay, I tested and find some problems in my files. I've now a s/mime
> certificate that works. But now I get an error "ERROR: Unbound
> variable: read-line"

This function was buil-in in Guile prior to 1.8, but 1.8 has moved it
to a separate module. Please apply the following patch to entire-msg.scm:

Index: guile/entire-msg.scm
===================================================================
RCS file: /cvsroot/anubis/anubis/guile/entire-msg.scm,v
retrieving revision 1.6
diff -p -u -r1.6 entire-msg.scm
--- guile/entire-msg.scm 6 Aug 2007 15:29:22 -0000 1.6
+++ guile/entire-msg.scm 24 Apr 2008 09:54:49 -0000
@@ -17,7 +17,8 @@
 ;;; You should have received a copy of the GNU General Public License along
 ;;; with GNU Anubis.  If not, see <http://www.gnu.org/licenses/>.
 
-(use-modules (ice-9 popen))
+(use-modules (ice-9 popen)
+             (ice-9 rdelim))
 
 ;; Starts program PROG with arguments ARGS
 ;; Returns a list:


Let me know if it works for you.
 
Regards,
Sergey
 


_______________________________________________
Bug-anubis mailing list
Bug-anubis@...
http://lists.gnu.org/mailman/listinfo/bug-anubis