1

Topic: Vacation null sender issues.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MYSQL edition.
- Linux/BSD distribution name and version: Ubuntu 18.04.1 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

I've just installed iRedmail and its working brilliantly, however I do have one slight issue.
The vacation message sieve is sending emails with <> as its from header, regardless of what is entered in :from on the sieve.
According to dovecot this is intended behaviour to prevent loopbacks etc which is fine, but our mail sending service requires the from header to be valid and not null and is refusing to send the vacation messages.

Is there a way I can get postfix to rewrite the from header on these mails to noreply@ or similar?

Thanks!

----

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

2

Re: Vacation null sender issues.

Sounds like a bug of Dovecot sieve or sieve rule.

- How did you generate the sieve filters?
- Please show us full sieve filters for troubleshooting.
- Also try to turn on debug mode in Dovecot and trigger the vacation again, maybe sieve log will have some useful info for troubleshooting. FYI: http://www.iredmail.org/docs/debug.dovecot.html

3

Re: Vacation null sender issues.

Sorry, I wasn't clear in my post.
Its the SMTP envelope (SMTP MAIL FROM) not the message From: that is causing issues.

I have found this config setting, which looks like its supposed to do what I want, but I can't seem to get it to work:

sieve_vacation_send_from_recipient = yes

- from https://wiki2.dovecot.org/Pigeonhole/Si … s/Vacation

I put it in 90-plugin.conf:
plugin {
  sieve_vacation_send_from_recipient = yes
}

Here is the sieve code, generated by roundcube:

# rule:[Vacation]
if allof (currentdate :zone "+0100" :value "ge" "iso8601" "2018-10-27T15:00:00+01:00", currentdate :zone "+0000" :value "le" "iso8601" "2018-10-31T09:00:00Z")
{
    vacation :addresses ["abc@abc.com","abcd@abc.com"] :subject "test" :from "abc@abc.com" text:
This is a test vacation message

New lines?

Sam.
.
;
}

And the line in mail.log:
myhost postfix/qmgr[16143]: BA602BFF83: from=<>, size=1375, nrcpt=1 (queue active)

myhost amavis[16970]: (16970-06) Passed CLEAN {RelayedInbound}, [127.0.0.1] <> -> <examplemail@examplemail.com>, Message-ID: <dovecot-sieve-1540918832-186858-0@myhost.fqdn.com>, mail_id: ddj08AGBUR82, Hits: -0.001, size: 808, queued_as: BA602BFF83, 393 ms, Tests: [NO_RELAYS=-0.001]

myhost postfix/amavis/smtp[22550]: 3609DC0026: to=<examplemail@examplemail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.63, delays=0.21/0/0/0.42, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as BA602BFF83)

myhost postfix/qmgr[16143]: 3609DC0026: removed

myhost postfix/smtp[22956]: Trusted TLS connection established to smtp.socketlabs.com[x.x.x.x]:25: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)

BA602BFF83: to=<examplemail@examplemail.com>, relay=smtp.socketlabs.com[x.x.x.x]:25, delay=1.2, delays=0.03/0.02/1.1/0.09, dsn=5.1.0, status=bounced (host smtp.socketlabs.com[x.x.x.x] said: 554 5.1.0 The sender's address was not allowed. (in reply to MAIL FROM command))

4

Re: Vacation null sender issues.

I've fixed it!

I put the setting in dovecot.conf's plugin {} section and it works as expected!

Thanks,
Sam.

5

Re: Vacation null sender issues.

Thanks for sharing. I will add this option in next iRedMail release.