Discussion:
Vacation sieve script
Helder Guerreiro
2018-06-25 19:51:14 UTC
Permalink
Hi,

I have the following sieve script:

require ["vacation"];
# rule:[Ferias]
if true
{
vacation :addresses ["mail address domain 1","mail address
domain 2"] :subject "Out of the office" :from "mail address domain 1" text:
Some text
.
;
}

This was generated by roundcube. I'm using postfix 2.9.6 with cyrus 2.4.
I know, these are ancient versions. I'm going to substitute this server
soon (I hope).

"domain 2" is configured as "myorigin" in postfix.

The problem is:

If I send an email to "mail address domain 2" the vacation notification
is correctly sent, namely using the mail address in ":from".

If I send an email to "mail address domain 1" then the from address used
is <> and my smtp provider answers with:

said: 454 4.7.1 <>: Sender address rejected: Please use a From address
(in reply to RCPT TO command)

I have read:

https://www.cyrusimap.org/imap/reference/faqs/o-vacation-mailfrom.html

But the ":from" address should fix this, no?

Why does this work with one of the addresses and not the other?

Thanks,
Helder
Helder Guerreiro
2018-06-25 20:58:22 UTC
Permalink
Found the solution to the problem, just changed the SMTP provider (the
relay, just for the <> address).

This was working with one of the mail addresses because I was sending
using a return address from "domain 2", it didn't need to use an
external relay to send the mail.

My external relay rejecting SMTP conversations with "MAIL FROM:<>"...
Post by Helder Guerreiro
Hi,
require ["vacation"];
# rule:[Ferias]
if true
{
        vacation :addresses ["mail address domain 1","mail address
Some text
.
;
}
This was generated by roundcube. I'm using postfix 2.9.6 with cyrus 2.4.
I know, these are ancient versions. I'm going to substitute this server
soon (I hope).
"domain 2" is configured as "myorigin" in postfix.
If I send an email to "mail address domain 2" the vacation notification
is correctly sent, namely using the mail address in ":from".
If I send an email to "mail address domain 1" then the from address used
said: 454 4.7.1 <>: Sender address rejected: Please use a From address
(in reply to RCPT TO command)
https://www.cyrusimap.org/imap/reference/faqs/o-vacation-mailfrom.html
But the ":from" address should fix this, no?
Why does this work with one of the addresses and not the other?
Thanks,
Helder
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists

Loading...