Re: how to get recipient of email



On Feb 3, 12:13 am, jcha...@xxxxxxxxxxx wrote:
Hello I noticed that when amavis quarantines a message adds the X-
envelop-to tag to the headers of the email. This header has all the
recipients of the email. Some email files dont have a TO
or have a BCC. Can anyone tell me how to get all recipients in a eml
file?

No.

The recipients of an e-mail in transit are written on the envelope,
not in the message itself.

When your MUA send a mail the recipients will often get copied from
the headers to the envelope. At this point the BCC (add BC-like)
headers are removed. But addresses can also get on to the envelope in
other ways.

If a mail has multiple recipients it will, in general, be split and
handled many MTAs. The envelope seen by each MTA will only contain the
recipients for which that MTA is handling delivery.

I'm not familiar with Amavis but I assume it's running on an MTA and
is passed the message and the envelope. Presumably it places a copy of
the envelope-to it sees in the X- header. This is bad because it
potentially allows the To: recepient to see the BCC: recepient. If
Amavis is running on the senders MTA this might be the full list. If
it's running on the recepient's MTA it will only see other recpient's
whose inbound mail is also handled by the same MTA.

None of this, of course, has anything to do with Perl.

.



Relevant Pages

  • 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: e-mail tracing
    ... Now why do I recommend reading the RFC's? ... Now you will see in each MTA relay, a ip in brackets as well as ... The headers you provided are a classic example of open-relays and spoofing. ... resolves to 216.200.145.35, and the bigiplb-dsnat entry gives it away, {the ...
    (Security-Basics)
  • Re: Controlling email headers - at the email client or ???
    ... Why not just run your own MTA instead of relying on a MUA to do it? ... native sendmail for Windows. ... this group on my name and sendmail or ssmtp. ... The usage is just piping the desired headers and body to it. ...
    (comp.mail.misc)
  • Re: Question about smtplib, and mail servers in general.
    ... >>> s.sendmail(fromaddress, toaddresess, msg) ... >> address) and add the recipients via bcc: headers. ... Some MTAs will add a header (qmail adds Delivered-To:, ...
    (comp.lang.python)
  • 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)