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" "info@mysite.com", header :contains "subject" "invoice") { deleteheader "from"; addheader "from" "info@mysite.com"; redirect "final@mysite.com"; }
I was receiving: redirect action: failed to redirect message to final@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
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-leave@dovecot.org