dlester wrote:ZhangHuangbin wrote:You should describe what your issue is and what you want to achieve. Although i know what you're talking about, but others cannot help at all.
In your case, please try to use a global sieve rule to send vacation message to every sender.
Client sold company. New owner wants to use OOTO to notify existing customers about new company contacts. So, *any* email that arrives at old domain needs to send OOTO. However...
> OOTO Works when you send the email directly to the catchall email address,
> but not when the message is sent to an unknown address.
Any tips on how to interface with "global sieve"? Is this a iRedmail-Pro thing or is it necessary to do something directly with dovecot-pigeonhole?
tia
dave
Well, I gave up trying to get an OOTO style autoresponse for a catchall email account. I tried a lot of different things mostly centered around trying before and after sieve scripts as defined in /etc/dovecot/dovecot.conf. I never overcame the vacation function's requirement to find a match in the :addresses array for an email address in the mail envelope.
So since I had to get this done today, I cheeped out and hand tooled managesieve.sieve for the catchall account. I added all of the email addresses that used to serviced by the sold domains into the appropriate :addresses array.
If someone sends an email to any of those hardcoded addresses, they do get the autoresponse. However, I suspect if that same person would send an email to a different hardcoded address they would fall into the 1 per day limit in the sieve rule. I don't think that in this particular case it makes a lot of difference.
If I am asked to do this again, I will just say that it can't be done.
dave