1

Topic: SIEVE filter causes "redirect action has no means to send mail"

I have a set of SIEVE filters and a few include the 'redirect :copy' command. When I run this manually using the command below [1], it generates the error;

warning: msgid=<4JCRGq4dM8s4FRq1@mail.[mydomain.com]>: redirect action has no means to send mail..
error: sieve script execution failed for this message; message left in source mailbox.

It seems to work OK if I do not run it manually.

How should I be running the sieve-filter command ...or how do I configure SIEVE to enable it to send email? I have searched all over the interent and found nothing!


[1] sieve-filter -e -W -C -u <my email addr> /var/vmail/vmail1/<domain>/s/t/e/<user>/sieve/Rules.sieve 'INBOX'

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.3.2 OPENLDAP edition

- Deployed with iRedMail Easy or the downloadable installer?
iRedMail Easy

- Linux/BSD distribution name and version:
Debian 10.11

- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
LDAP

- Web server (Apache or Nginx):
Nginx

- Manage mail accounts with iRedAdmin-Pro?
No

- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SIEVE filter causes "redirect action has no means to send mail"

Forgot to include the filter I am using;

if anyof (header :contains "subject" "Your xxx Invoice", header :contains "from" "info@<some company>.com")
{
        fileinto "INBOX/Pending;
        redirect :copy "<another user>@[my domain].net";
        stop;
}

3

Re: SIEVE filter causes "redirect action has no means to send mail"

I suppose you should specify the "<another user>@[my domain].net" in one of sieve-filter command arguments?

4

Re: SIEVE filter causes "redirect action has no means to send mail"

ZhangHuangbin wrote:

I suppose you should specify the "<another user>@[my domain].net" in one of sieve-filter command arguments?

Not sure I understand your statement. I am providing the email address in one of the sieve-filter command arguments. The 'redirect :copy' argument has it.

What I was hoping to understand is why sieve appears to be misconfigured and it does not know how to send email. I got this impression from looking at the sieve source code. And maybe how it relates to who is actually running the sieve-filter command.

Thanks for the support!

5

Re: SIEVE filter causes "redirect action has no means to send mail"

meisner wrote:

Not sure I understand your statement. I am providing the email address in one of the sieve-filter command arguments. The 'redirect :copy' argument has it.

What I was hoping to understand is why sieve appears to be misconfigured and it does not know how to send email. I got this impression from looking at the sieve source code. And maybe how it relates to who is actually running the sieve-filter command.

Thanks for the support!

Any further thoughts on this? Specifically, how is mail sent "behind the scene" when running sieve-filter?

6

Re: SIEVE filter causes "redirect action has no means to send mail"

meisner wrote:

Not sure I understand your statement. I am providing the email address in one of the sieve-filter command arguments. The 'redirect :copy' argument has it.

But did you specify it in sieve-filter command line?