'from' header at delivered email from inside / outside organization

Hello Mailman experts,
I created a mailing list (i.e. abc@ml.abc.co.jp <mailto:abc@ml.abc.co.jp> ) with mailman in our organization.
Does anyone know how to configure mailman to achieve expected behavior?
Expected behavior:
a. When a sender is outside of our organization (abc.co.jp), the received mail should show original sender's email address at 'from' header. b. When a sender is inside of our organization and receiver is outside of our organization, the received mail should show ML address (abc@ml.abc.co.jp <mailto:abc@ml.abc.co.jp> ) at 'from' header.
I want to know sender's email address if it's from outside our organization but do not want disclose employees' email address in our organization when they send emails to outside our organization.
Thanks,
Toshi Kaneko

On 04/19/2018 04:17 AM, kaneko@yamachu-tokachi.co.jp wrote:
Hello Mailman experts,
I'm not an expert, but I've got questions.
I created a mailing list (i.e. abc@ml.abc.co.jp) with mailman in our organization.
I don't think it matters, but I want to make sure I'm not assuming anything incorrectly.
It looks like your Mailman list is configured in a sub-domain of your copmpanies main domain. I'm assuming that means that email for the mailing list is routed to the server hosting Mailman independent of your main email server. Correct?
Does anyone know how to configure mailman to achieve expected behavior?
Expected behavior:
a. When a sender is outside of our organization (abc.co.jp), the received mail should show original sender's email address at 'from' header.
Okay. No from header modification.
b. When a sender is inside of our organization and receiver is outside of our organization, the received mail should show ML address (abc@ml.abc.co.jp) at 'from' header.
What from address should receivers inside the organization see from senders also inside the organization? Do they need to see the real internal from header? Or is it okay that they see the mailing list address?
If it's okay that internal recipients see the mailing list instead of the actaul internal senders, then the problem can likely be simplified to be "internal senders should have their from address rewritten to the mailing list address."
I want to know sender's email address if it's from outside our organization but do not want disclose employees' email address in our organization when they send emails to outside our organization.
This almost sounds like an MTA masquerading issue. I don't know if mailman can help with this or not. Especially if it's supposed to conditionally happen based on the sender and the recipient.
-- Grant. . . . unix || die

On 04/19/2018 03:17 AM, kaneko@yamachu-tokachi.co.jp wrote:
Does anyone know how to configure mailman to achieve expected behavior?
Expected behavior:
a. When a sender is outside of our organization (abc.co.jp), the received mail should show original sender's email address at 'from' header. b. When a sender is inside of our organization and receiver is outside of our organization, the received mail should show ML address (abc@ml.abc.co.jp <mailto:abc@ml.abc.co.jp> ) at 'from' header.
This can't be done in Mailman without source code modification.
You would have to modify Mailman's SMTPDirect.py module to always set
deliveryfunc = verpdeliver
and then modify verpdeliver itself to look at the sender and recipient and if the sender is local and the recipient remote, replace the From:
The mods would not be difficult nor extensive, but this can't be done with configuration alone.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Mark Sapiro writes:
On 04/19/2018 03:17 AM, kaneko@yamachu-tokachi.co.jp wrote:
Expected behavior:
a. When a sender is outside of our organization (abc.co.jp), the received mail should show original sender's email address at 'from' header. b. When a sender is inside of our organization and receiver is outside of our organization, the received mail should show ML address (abc@ml.abc.co.jp <mailto:abc@ml.abc.co.jp> ) at 'from' header.
This can't be done in Mailman without source code modification. The mods would not be difficult nor extensive, but this can't be done with configuration alone.
Besides what Mark says, it looks to me like you're describing a customer relations application. "Mailman Banzai!" and all that, but Mailman is not designed as a CRM, and hard to tune to be one.
If a CRM is what you want, I'm sure there are dedicated applications with more of the features you need. I'm sorry I don't have any concrete suggestions, I don't use or need CRMs.
Steve

Hi everyone,
Many thanks for your answers! I understand your suggestions. We will change sender filed in our mail client.
Thanks again, Toshi Kaneko
-----Original Message----- From: Stephen J. Turnbull [mailto:turnbull.stephen.fw@u.tsukuba.ac.jp] Sent: Friday, April 20, 2018 12:33 PM To: Mark Sapiro <mark@msapiro.net> Cc: mailman-users@python.org Subject: Re: [Mailman-Users] 'from' header at delivered email from inside / outside organization
Mark Sapiro writes:
On 04/19/2018 03:17 AM, kaneko@yamachu-tokachi.co.jp wrote:
Expected behavior:
a. When a sender is outside of our organization (abc.co.jp), the received mail should show original sender's email address at 'from' header. b. When a sender is inside of our organization and receiver is outside of our organization, the received mail should show ML address > > (abc@ml.abc.co.jp <mailto:abc@ml.abc.co.jp> ) at 'from' header.
This can't be done in Mailman without source code modification. The mods would not be difficult nor extensive, but this can't be done > with configuration alone.
Besides what Mark says, it looks to me like you're describing a customer relations application. "Mailman Banzai!" and all that, but Mailman is not designed as a CRM, and hard to tune to be one.
If a CRM is what you want, I'm sure there are dedicated applications with more of the features you need. I'm sorry I don't have any concrete suggestions, I don't use or need CRMs.
Steve
participants (4)
-
Grant Taylor
-
kaneko@yamachu-tokachi.co.jp
-
Mark Sapiro
-
Stephen J. Turnbull