Can confirmation messages use custom Received: headers?

Hi.
I've searched the archives several different ways about this and not found anything, so...
We run Mailman v2.1.4 on SuSE Enterprise v11 SP3 using Sendmail. The box is a virtual machine and pretty much dedicated to the purpose of being a listserver, at least at present.
We recently got a slew of Spamcop complaints about confirmation emails we sent as a result of subscription requests submitted via the web interface. These emails clearly state that the confirmation emails are a result of subscription requests submitted from a specific IP address. Clearly from the user's POV these emails are spam and I totally understand why the users are submitting the complaints in this instance. However, I also don't think that my mail system should be held responsible for sending these emails. (Consider that I am not held responsible for damage caused by my car if the person driving the car stole it from me.)
I was looking at the Spamcop FAQ and noticed a brief comment about the Received headers that some webmail interfaces add that list the IP address of the client that used HTTP to submit the email via a webmail GUI, for example:
Received: from 66.191.176.186 by webmail-d137.sysops.aol.com (149.174.18.27) with HTTP (WebMailUI); Sat, 13 Apr 2013 08:07:55 -0400
The Spamcop FAQ kind of implies that Spamcop will consider the source of the HTTP (in this example, 66.191.176.186) as the sender, rather than the email server that converted the HTTP to SMTP. I've not checked this at all, so I may be reading into the FAQ.
So my question is this: can Mailman be configured in some straightforward way to add a Received: header with the IP address of the host that requested the subscription? I am not a Python programmer, but I am capable of making code changes if necessary.
Comments?
Yan Juras Manager of Systems Engineering Office of Converging Technologies, I Bldg room 100 Queens College / 65-30 Kissena Blvd / Flushing NY 11367 (718)997-5906 / FAX: (718)997-5678
Need Assistance? Call The OCT Help Desk at (718) 997-4444 OCT will never ask for your personal information or password. Never share this information with anyone.

On 03/14/2014 02:42 PM, Yan Juras wrote:
I was looking at the Spamcop FAQ and noticed a brief comment about the Received headers that some webmail interfaces add that list the IP address of the client that used HTTP to submit the email via a webmail GUI, for example:
Received: from 66.191.176.186 by webmail-d137.sysops.aol.com (149.174.18.27) with HTTP (WebMailUI); Sat, 13 Apr 2013 08:07:55 -0400
The Spamcop FAQ kind of implies that Spamcop will consider the source of the HTTP (in this example, 66.191.176.186) as the sender, rather than the email server that converted the HTTP to SMTP. I've not checked this at all, so I may be reading into the FAQ.
So my question is this: can Mailman be configured in some straightforward way to add a Received: header with the IP address of the host that requested the subscription? I am not a Python programmer, but I am capable of making code changes if necessary.
Received: headers and the circumstances in which they are added are defined by RFC 5321 and its predecessors. They are to be added at the beginning of the headers by servers that relay the message. The implication is that the agent that generates the message (Mailman in this case) should not be including a Received: header in the generated message, but you could do it.
The attached patch is an example of how this could be done. Note that the Received: header is inserted at the front of the msg._headers list rather than setting it in the normal way which would add it at the end.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Mark Sapiro wrote:
The attached patch is an example of how this could be done.
Here's an updated patch. The only difference is it uses email.Utils.formatdate() instead of strftime() to create the date/time string.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Yan Juras