Hello. Tell me how to set up mail aliases so that mail from one mailbox is forwarded to another mailbox. What configs need to be edited and what to enter. Thank you
On Wed, 2024/10/09 at 14:19:22 +0300, Сергей Сергей via dovecot wrote:
Hello. Tell me how to set up mail aliases so that mail from one mailbox is forwarded to another mailbox. What configs need to be edited and what to enter. Thank you
That depends, I think, on how you have configured things.
If you deliver mail to maildir in users $HOME, you may be able to use procmail to redirect the mail. If you have, like I do, mdbox and virtual users, you should probably look at enabling Sieve in Dovecot and then put in place a sieve script for the user whose mail you want to redirect. I think the Dovecot docs have an example for how to do it.
Long and short of it, you will need to explain your configuration a little more in detail before you will be able to receive a more detailed response. Maybe others have better insights, but the above is the two approaches I would consider before doing something more exotic.
-- Kind regards,
/S
On Wed, Oct 9, 2024 at 3:35 PM Sirius via dovecot <dovecot@dovecot.org> wrote:
On Wed, 2024/10/09 at 14:19:22 +0300, Сергей Сергей via dovecot wrote:
Hello. Tell me how to set up mail aliases so that mail from one mailbox is forwarded to another mailbox. What configs need to be edited and what to enter. Thank you
That depends, I think, on how you have configured things.
If you deliver mail to maildir in users $HOME, you may be able to use procmail to redirect the mail. If you have, like I do, mdbox and virtual users, you should probably look at enabling Sieve in Dovecot and then put in place a sieve script for the user whose mail you want to redirect. I think the Dovecot docs have an example for how to do it.
Long and short of it, you will need to explain your configuration a little more in detail before you will be able to receive a more detailed response. Maybe others have better insights, but the above is the two approaches I would consider before doing something more exotic.
TBH, I don't think the OP has ever heard of procmail.
I think something like this will help: https://www.binarytides.com/postfix-mail-forwarding-debian/
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
I forgot to write that users are stored on the samba dc. Users' mailboxes are stored in /var/mail/server 09.10.2024, 15:31, "Sirius" <sirius@trudheim.com>: On Wed, 2024/10/09 at 14:19:22 +0300, Сергей Сергей via dovecot wrote: Hello. Tell me how to set up mail aliases so that mail from one mailbox is forwarded to another mailbox. What configs need to be edited and what to enter. Thank you
That depends, I think, on how you have configured things.
If you deliver mail to maildir in users $HOME, you may be able to use
procmail to redirect the mail. If you have, like I do, mdbox and
virtual
users, you should probably look at enabling Sieve in Dovecot and then
put
in place a sieve script for the user whose mail you want to redirect.
I
think the Dovecot docs have an example for how to do it.
Long and short of it, you will need to explain your configuration a
little
more in detail before you will be able to receive a more detailed
response. Maybe others have better insights, but the above is the two
approaches I would consider before doing something more exotic.
--
Kind regards,
/S
participants (3)
-
Odhiambo Washington
-
Sirius
-
Сергей Сергей