When you set submission_host, sieve will also use that SMTP server for doing reject/forward/vacation, etc:

https://doc.dovecot.org/configuration_manual/sieve/sieve_and_smtp_submission/

If you don't set submission_host, sieve will instead rely your local sendmail binary. Your local sendmail (or sendmail-compatible interface) is probably broken/misconfigured.

- Eirik

On 2024-06-19 16:14, savaw82275--- via dovecot wrote:
Hi! Having a sieve rule:

require ["fileinto", "editheader", "variables", "envelope"];
​# rule:[med]
if allof (address :contains "to" "i...@mysite.com",
           header :contains "subject" "invoice") {
     deleteheader "from";
     addheader "from" "i...@mysite.com";
     redirect "fi...@mysite.com";
}

I was receiving: redirect action: failed to redirect message to 
<fi...@mysite.com>: Sendmail program returned error (temporary failure).

Enabled debug log level in dovecot, then got some few further lines on this; 
program exec:/usr/sbin/sendmail (55356): Terminated with non-zero exit code 75

AND this:

Error: sieve: redirect action: failed to redirect message to <fi...@mysite.com: 
Sendmail program returned error (temporary failure).

After 2 hours of Google'ing, I finally found a workaround by adding:

submission_host = 95.212.12.10 (IP address of my mail server) in dovecot.conf 
solved the issue.

Can someone explain what was the issue and do you guys think this is a correct 
solution?

Regards.
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
  • sieve issue savaw82275--- via dovecot
    • Re: sieve issue Eirik Rye via dovecot

Reply via email to