Hi,

I'm looking for a suggestion on the best setup for sending an a u t o r e s p o n s e with a c h a n g e o f a d d r e s s notice, with a Postfix/Dovecot mail server, while still forwarding the message.

Option 1: virtualmail...@olddomain.tld -> alias -> unixacco...@newdomain.tld (this account has auto response enabled)

Alternatively, this could use two virtual mailboxes, however I can’t seem to configure Sieve to work without Dovecot handling the message.

Option 2: virtualmail...@olddomain.tld —> alias -> virtualmail...@newdomain.tld (this account has auto response enabled)

The existing configuration uses Postfix virtual_mailbox_domains to receive mail from both domains (old and new accounts). Two new, replacement, recipients are UNIX accounts. Mail is redirected using virtual_mailbox_maps to rewrite recipient addresses to the new address. Since this happens before delivery, it is not possible to set an auto response (e.g. a vacation message) strictly for the old addresses because .forward + vacation work at time of final delivery, and possibly not at all for virtual mailboxes.

I did get fairly far with the Pigeonhole project and Sieve, but eventually discovered that it will not work for aliases, and, if I removed the mail forwarding and just used a virtual mailbox (see error), sieve does not process because postfix delivers the message without Dovecot.

Error:
Jan 9 00:46:42 inet dovecot: lda(user)<11193><VvDSMCqpFl65KwAA+arxkQ>: sieve: msgid=<CAKge6ZKYBux=7nrwuvupycpuxs_t5gxznuflvsqsu8a3c5a...@mail.gmail.com>: discarding vacation response for implicitly delivered message; no known (envelope) recipient address found in message headers (recipient=user@localhost, and additional `:addresses' are specified)

It would seem this has to be done with before-queue content filtering, however the principles of operation do not include auto responses (and with mail looping risks, this is understandable).

In general terms, I would imaging having a fairly straightforward method of accomplishing this would be very useful for all the organizations that go through names changes, merges, etc.

Thanks for any suggestions!

Robert

Reply via email to