[opensuse] Shared mailbox with dovecot and postfix
Hi, I'nm trying to create a shared mailbox using Postfix and Dovecot. The part of the mailbox itself is pretty simple, just define the namespace in dovecot and that's all. Postfix is another history. What I'm trying to do is something I've seen a lot of times in corporate mail: emails are sent "on behalf of". The idea is that users send their emails from the shared mailbox address ("foo@mydomain.com") but with the "sender" joe@mydomain.com. At the end, clients see that the mail was sent by "joe@mydomain.com on behalf of foo@mydomain.com"). Now, users send emails from the shared mailbox but there's no way to [easily] know which of the users that have access to the mailbox did actually sent the email. So, does anyone know how can I achieve this? Thanks in advance! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Oscar Curero wrote:
Hi,
I'nm trying to create a shared mailbox using Postfix and Dovecot. The part of the mailbox itself is pretty simple, just define the namespace in dovecot and that's all. Postfix is another history.
What I'm trying to do is something I've seen a lot of times in corporate mail: emails are sent "on behalf of". The idea is that users send their emails from the shared mailbox address ("foo@mydomain.com") but with the "sender" joe@mydomain.com. At the end, clients see that the mail was sent by "joe@mydomain.com on behalf of foo@mydomain.com"). Now, users send emails from the shared mailbox but there's no way to [easily] know which of the users that have access to the mailbox did actually sent the email.
So, does anyone know how can I achieve this?
Well, to start with, how mails are sent has little to do with how the mailboxes are managed. Second, I suspect the "... on behalf of ..." idea is mail-client specific. I don't think I've ever seen it in Thunderbird for instance. Any user can send an email from a made up address - in Thunderbird, you just add another identity. I think you need to look in a mail that produces what you want ("... on behalf of ..."), and then figure out which headers it is that affect it. -- Per Jessen, Zürich (1.1°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen said the following on 03/28/2013 03:05 AM:
Oscar Curero wrote:
I'nm trying to create a shared mailbox using Postfix and Dovecot. The part of the mailbox itself is pretty simple, just define the namespace in dovecot and that's all. Postfix is another history.
What I'm trying to do is something I've seen a lot of times in corporate mail: emails are sent "on behalf of". The idea is that users send their emails from the shared mailbox address ("foo@mydomain.com") but with the "sender" joe@mydomain.com. At the end, clients see that the mail was sent by "joe@mydomain.com on behalf of foo@mydomain.com"). Now, users send emails from the shared mailbox but there's no way to [easily] know which of the users that have access to the mailbox did actually sent the email.
So, does anyone know how can I achieve this?
Well, to start with, how mails are sent has little to do with how the mailboxes are managed.
+1 I've ended up, via experimentation, doing many interesting things with postfix, and I read my mail using Thunderbird. The Thunderbird reader access not only my local IMAP server via Dovecot but a number of remote IMAP servers. I have about 20 "identities" for various roles at the domains I own and/or manage and mailboxes that I have acquired over the years. Old UNIX Hands will recognise this lifestyle and not think it odd. The Dovcecot server deals with a mail store in which there are over half a dozen identities that have passed though Postfix into the one store. All that is standard for Postfix and the one-line documentation. All this is done at the receiving end. I have one witty correspondent who alters the address on the From line to match the matter under discussion, so he has a wealth of 'identities' for just one mail address. But Postfix doens't care! Its the mail address that counts! That being said, you can plug just about any go-damned thin into the control tables of Postfix. That you can doesn't mean you SHOULD! That the OP asked the question tends to indicate that he's not at the level where this practice is advised; heck I've been doing Postfix hacking for a long time but I'd be reluctant to try arbitrary control table hacking when I can see simpler ways to achieve this!
Second, I suspect the "... on behalf of ..." idea is mail-client specific. I don't think I've ever seen it in Thunderbird for instance.
Can the OP please send the relevant header. This mail is in reply to mail from Per where the header was From: Per Jessen <per@computer.org> If it had been From: Per Jessen on behalf of Someone Else <per@computer.org> that would appear on the line but make no difference as far as Postfix was concerned. HOWEVER you might run through some post processing. I use PROCMAIL for that. It lets you do arbitrary pattern scanning on ANY of the headers or body and execute actions accordingly. Alternatively, there could be a non-standard header X-On-Behalf-Of: Someone Else Once again, you can use post-processing with something like procmail.
Any user can send an email from a made up address - in Thunderbird, you just add another identity. I think you need to look in a mail that produces what you want ("... on behalf of ..."), and then figure out which headers it is that affect it.
+1 -- Perhaps I am a dinosaur, but if I saw the word "hacker" used positively on a resume, I would have trouble continuing. Hacking means using "quick and dirty" means to achieve an objective without concern for "collateral damage" and is totally opposite to my philosophy of "first, do no harm". -- Pagett Peterson, Wednesday, January 18, 2006 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 28/03/13 08:42, Anton Aylward escribió:
That you can doesn't mean you SHOULD! That the OP asked the question tends to indicate that he's not at the level where this practice is advised;
The setup the OP wants looks like a recipe for disaster, in particular unless there is yet another layer of software involved, there will be no way to audit who deleted/replied or made any change to the shared mailbox. My advice, one mailbox per user, automated mails originate from a single address.messages CC'ed to the relevant people in charge, who reply from their own mailboxes. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Anton Aylward
-
Cristian Rodríguez
-
Oscar Curero
-
Per Jessen