[Mailman-Users] [Repost] Internal vs. external mail addresses

Brad Knowles brad.knowles at skynet.be
Fri Feb 27 21:22:32 CET 2004


At 2:11 PM -0500 2004/02/27, Paul Smith wrote:

>  Well... what field does Mailman use to get the sender's address when it
>  verifies they are a member of the list?

	That is something you can change in mm_cfg.py.  See Defaults.py 
to find out what it is typically.

>  Basically I was thinking I'd just do the equivalent of:
>
>      sed 's/^\(Sender: [^@]*\)@[^ ]*\.bar\.com/\1 at foobar.com/'
>
>  Obviously there might be a little tweaking necessary.

	Quoting from my own mailman/Mailman/Defaults.py (for 2.1.4):

# When allowing only members to post to a mailing list, how is the sender of
# the message determined?  If this variable is set to Yes, then first the
# message's envelope sender is used, with a fallback to the sender if there is
# no envelope sender.  Set this variable to No to always use the sender.
#
# The envelope sender is set by the SMTP delivery and is thus less easily
# spoofed than the sender, which is typically just taken from the From: header
# and thus easily spoofed by the end-user.  However, sometimes the envelope
# sender isn't set correctly and this will manifest itself by postings being
# held for approval even if they appear to come from a list member.  If you
# are having this problem, set this variable to No, but understand that some
# spoofed messages may get through.
USE_ENVELOPE_SENDER = Yes

# Membership tests for posting purposes are usually performed by looking at a
# set of headers, passing the test if any of their values match a member of
# the list.  Headers are checked in the order given in this variable.  The
# value None means use the From_ (envelope sender) header.  Field names are
# case insensitive.
SENDER_HEADERS = ('from', None, 'reply-to', 'sender')

-- 
Brad Knowles, <brad.knowles at skynet.be>

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
     -Benjamin Franklin, Historical Review of Pennsylvania.

GCS/IT d+(-) s:+(++)>: a C++(+++)$ UMBSHI++++$ P+>++ L+ !E-(---) W+++(--) N+
!w--- O- M++ V PS++(+++) PE- Y+(++) PGP>+++ t+(+++) 5++(+++) X++(+++) R+(+++)
tv+(+++) b+(++++) DI+(++++) D+(++) G+(++++) e++>++++ h--- r---(+++)* z(+++)




More information about the Mailman-Users mailing list