Anubis作为GPG代理

我正在尝试将GNU Anubis设置为一种代理来对来自服务的电子邮件进行签名/encryption。 该服务目前configuration为使用我们的SMTP服务器发送电子邮件。 这个想法是将服务指向Anubis,然后将Anubis指向SMTP服务器。 然后,Anubis会在将邮件发送到SMTP服务器之前对邮件进行签名/encryption。

我设置Anubis并作为初始testing,设置它来修改主题行。 这工作得很好。 当我将其更改为签名电子邮件时,我开始在Anubisdebugging输出中收到错误消息。

这里是阿努比斯configuration:

# # The "CONTROL" section. # User configuration file. # ---BEGIN CONTROL--- bind localhost:2525 remote-mta SMTP_SERVER_INFO ssl-oneway yes ---END--- # # The Rule System (The RULE section) # User configuration file only. Examples: # ---BEGIN RULE--- gpg-passphrase "test1234" # Process the (E)SMTP commands. if command["mail from"] ".*<?root@localhost>?" STOP fi # Process a message header lines. if header[From] ".*noreply.*" # modify [Subject] "[Anubis Proxy] &" # This action works gpg-sign default # This action has an error fi ---END--- 

以下是与GPG相关的debugging输出部分:

 Protocol: OpenPGP Executable: /usr/bin/gpg2 Version: 2.0.22 Required Version: 1.4.0 Protocol: CMS Executable: /usr/bin/gpgsm Version: 2.0.22 Required Version: 1.9.6 Protocol: GPGCONF Executable: /usr/bin/gpgconf Version: 2.0.22 Required Version: 2.0.4 Protocol: Assuan Executable: /tmp/gpg-7KgHae/S.gpg-agent Version: 1.0 Required Version: 1.0 [2319] GPGME: General error. 

我确定gpg设置正确, gpg --sign --armor从命令行让我签名(input密码后)。

我做了什么错误,使这不能正常工作?

更新
我应该提到,我从源代码(版本4.2)编译了Anubis,并且./configure结果显示了启用了GPGME支持。