1

Topic: Rewrite header for sieve forwarders/vacation

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: CentOS 6.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: sieve.log
====

Hi,

My sieve config is working great, but the forward and vacation emails are not sent because our SMTP is allowed to relay mails only from specific From headers.

Is there a way i could rewrite the from headers of sieve generated forward/vacation email and add the from mail to the body of the message?

Please advise

Thanks

----

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

2

Re: Rewrite header for sieve forwarders/vacation

You can use option ':from <address>' in sieve rule. Reference:
https://tools.ietf.org/html/rfc5230#section-4.3

3

Re: Rewrite header for sieve forwarders/vacation

Hi,

Is there a way to do this inside IRedMail, maybe to add a global sieve rule to have all Vacation and forward from header to be static? (maybe in a template like Postfix bounces)

And also have the real from email on the body of the email so when replacing the from email on sieve email forwarding will not be a problem.

P.S Ill get you a coffee if you could help me here smile

4

Re: Rewrite header for sieve forwarders/vacation

m19 wrote:

Is there a way to do this inside IRedMail, maybe to add a global sieve rule to have all Vacation and forward from header to be static? (maybe in a template like Postfix bounces)

I don't know Dovecot has this feature.

In the latest Roundcube webmail (1.1.4), ":from" setting is not available, but it's implemented in the latest development edition, so it should be available in next Roundcube release:
https://github.com/roundcube/roundcubem … ff=unified

5

Re: Rewrite header for sieve forwarders/vacation

Hi,

I will try that and let you know. I found "sieve_redirect_envelope_from" directive from http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration

And i set it like sieve_redirect_envelope_from = "orig_recipient" and restarted dovecot but still the sender goes as <> (null)

Any advise?

Thanks

6

Re: Rewrite header for sieve forwarders/vacation

"sieve_redirect_envelope_from" is for, "redirect" sieve directive, not for vacation.

Again, I don't know Dovecot has this feature (a global setting), but you can set per-user ':from <address>' to fix this issue.