On 2024-03-19 at 02:10:53 UTC-0400 (Tue, 19 Mar 2024 07:10:53 +0100)
Fourhundred Thecat via Postfix-users <400the...@ik.me>
is rumored to have said:

Hello,

I am running postfix server for my personal use.

On the server, I have one unix user, and multiple aliases defined in
/etc/aliases, so that I can use different email addresses for different
purposes.

All these aliases are delivered to the users home / maildir.

Now I would like to have yet another alias/email address, but instead of
having the emails delivered to my main user, I would like to just
collect the emails in some maildir.

You are describing (one variety of) normal email delivery (to a second user) which is trivial.

I just need to collect these emails for archival purposes, separately
from my main account.

I could create a new unix user, and have them delivered to his home /
maildir, but that seems quite convoluted.

How so??? That seems to me like the obvious simplest solution. If you need to access that mail directly on the host, you can make that work with well-planned user and group permissions and/or ACLs. If you do this and want to see that maildir as part of a particular IMAP account, that would be something you could implement via the IMAP server.

Any other mechanism requires more new configuration than a real new user.

Is there some straightforward way to collect emails from given
alias/emaiul address directly to some maildir folder ?

If you are phobic about adding another user you could use a virtual mailbox but that's more convoluted than just adding another real user of the same delivery class that you are already using.

Another option is delivery-time filtering. You could use something like procmail (an antique tool that was recently re-animated) or a sieve filter in the delivery path to deliver mail to different folders within an IMAP account (e.g. in the same user's maildir tree) based on arbitrary conditions. This is what I do for mailing lists: my .procmailrc has match lines for each list I subscribe to, delivering each one to its own maildir in my account.


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to