Re: Question about smtplib, and mail servers in general.



Peter Hansen <peter@xxxxxxxxxxx> writes:
> Daniel Dittmar wrote:
>> Chris Dewin wrote:
>>> Hi. I've been thinking about using smtplib to run a mailing list
>>> from my website.
>>>
>>> s = smtplib.SMTP("server")
>>> s.sendmail(fromaddress, toaddresess, msg)
>>>
>>> I know that in this instance, the toaddresses variable can be a variable
>>> of type list.
>>>
>>> Suppose the list contains well over 100 emails. Would that create some
>>> sort of drain on the mail server? Would I be better off doing it in some
>>> other way?
>> Not really an answer to your question, but it's probably considered
>> bad style to publish the email addresses of the recipients via the
>> address list. Use a neutral To-address (best: the mailing list
>> address) and add the recipients via bcc: headers.
>
> Not only not an answer, but also not a valid point in this case. The
> list of recipients used in the sendmail() call (which become RCPT TO:
> commands in SMTP) do *not* show up in the received emails.

Not quite. The email address each letter is actually delivered to
generally shows up in one or more Received: headers in the received
email. Some MTAs will add a header (qmail adds Delivered-To:, for
instance) with that same address in it when they deliver the mail
locally. Most MUAs don't display those, but they are there. There may
be an MTA that will pass a single message along to multiple recipients
after adding all of them to one or more headers. I don't know that
such exist - but I wouldn't trust that they don't.

Since you shouldn't trust email to be secure in any case, this isn't a
big deal. Note that using Bcc: doesn't help with this issue - the
addresses a message is delivered to *have* to be in the envelope. Bcc
puts them there and not in the headers.

<mike
--
Mike Meyer <mwm@xxxxxxxxx> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
.



Relevant Pages

  • Re: Question about smtplib, and mail servers in general.
    ... >> s.sendmail(fromaddress, toaddresess, msg) ... > the recipients via bcc: ... The addresses in the email's TO: Headers are shown to the ... practice for mailing lists. ...
    (comp.lang.python)
  • Re: Mass emails
    ... transmitting sites in some headers that we recieved. ... >> sent repeatedly from our server but through some of the recipients in the ... > The aforementioned POP3 connector contains a bug which causes it to ... > In view of the above, senders of any particular mailing or mailshot, ...
    (microsoft.public.exchange2000.admin)
  • Re: Preventing the use of CC: in outlook express.
    ... You will have an icon on your Desktop now with, depending on how you set it up, that when clicked on will open a new message window with the To and BCC fields already filled in. ... recipients don't want their email address made available to others. ... Potentially, something could be done at your SMTP mail server, assuming ... addresses or even strip or truncate the headers. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: how to get recipient of email
    ... envelop-to tag to the headers of the email. ... Some email files dont have a TO ... Can anyone tell me how to get all recipients in a eml ... The envelope seen by each MTA will only contain the ...
    (comp.lang.perl.misc)
  • Re: Is it just me that is being picked on?
    ... > to keep recipients anonymous from each other. ... At present I download the headers from the server and look for certain ... The posts from the various mailing lists all have an identifiable address ... that do not have my address in the first position of the To. ...
    (comp.os.linux.misc)