Results 1 to 9 of 9

Thread: Undo Yahoo's Rewrite of From Header Using KMail

  1. #1
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,126

    Default Undo Yahoo's Rewrite of From Header Using KMail

    Yahoo's spoof of the "From" header is an annoyance:

    - clutters the message list displayed by KMail

    - clicking on "From" in the message window does no longer open an editor window with "To" header set to the original sender, but the new mail goes to the spoofed address.

    In mail sent from Yahoo servers the original "From" is now moved to “X-Original-From" x-header. So I want to replace the spoofed "From" by the value of “X-Original-From". How can I do this using KMail? Any other suggestion how handle this problem?

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Undo Yahoo's Rewrite of From Header Using KMail

    On 2014-10-06 10:26, karlmistelberger wrote:
    >
    > Yahoo's spoof of the "From" header is an annoyance:


    I don't have any yahoo mail, so I haven't noticed. What have they done?

    > the value of “X-Original-From". How can I do this using KMail? Any
    > other suggestion how handle this problem?


    Other. With formail.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,235
    Blog Entries
    15

    Default Re: Undo Yahoo's Rewrite of From Header Using KMail

    Quote Originally Posted by karlmistelberger View Post
    Yahoo's spoof of the "From" header is an annoyance:

    - clutters the message list displayed by KMail

    - clicking on "From" in the message window does no longer open an editor window with "To" header set to the original sender, but the new mail goes to the spoofed address.

    In mail sent from Yahoo servers the original "From" is now moved to “X-Original-From" x-header. So I want to replace the spoofed "From" by the value of “X-Original-From". How can I do this using KMail? Any other suggestion how handle this problem?
    Hi
    I don't see that here with mail sent from a yahoo account, maybe it's you ISP spoofing the headers (maybe running some spam filtering)?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  4. #4
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,126

    Smile Re: Undo Yahoo's Rewrite of From Header Using KMail

    Quote Originally Posted by robin_listas View Post
    On 2014-10-06 10:26, karlmistelberger wrote:
    >
    > Yahoo's spoof of the "From" header is an annoyance:


    I don't have any yahoo mail, so I haven't noticed. What have they done?
    They are making people unhappy: http://www.theregister.co.uk/2014/04...ys_email_guru/

    They replace a well formed From: Rainer Niemand <rainer.niemand@t-online.de>

    by From: "'Rainer Niemand' rainer.niemand@t-online.de [Group-Name]" <group-name-noreply@yahoogroups.de>


    > the value of “X-Original-From". How can I do this using KMail? Any
    > other suggestion how handle this problem?


    Other. With formail.
    formail works fine for me as my inbox is mbox. I defined the following filter in KMail:

    Code:
    From contains yahoogroups.de
    Action pipe through program: formail -i From     # rename From to Old-From
    Action pipe through program: formail -R X-Original-From From     # rename X-Original-From to From
    This restores original From and saves Yahoo's spoof to Old-From

    Many thanks and kind regards

    Karl

  5. #5
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,889
    Blog Entries
    3

    Default Re: Undo Yahoo's Rewrite of From Header Using KMail

    Quote Originally Posted by karlmistelberger View Post
    They are making people unhappy: http://www.theregister.co.uk/2014/04...ys_email_guru/

    They replace a well formed From: Rainer Niemand <rainer.niemand@t-online.de>

    by From: "'Rainer Niemand' rainer.niemand@t-online.de [Group-Name]" <group-name-noreply@yahoogroups.de>
    That seems to be Yahoo-Groups mail rather than Yahoo mail.

    Mailing lists have been doing something similar to this since mailing lists were invented. The standards say that they should add a "Reply-To:" header, instead of munging the "From:" header. But a variety of mailing list management software has been munging "From:" headers from before Yahoo existed.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,483
    Blog Entries
    2

    Default Re: Undo Yahoo's Rewrite of From Header Using KMail

    Somewhat along the lines of nrickert's post and based only on what is in your original post,

    Your problem is the manner in which your mail is being routed through Yahoo mail.

    If mail is simply routed through an SMTP Smarthost, the original headers are preserved and nothing is altered.
    But, if the mail is forwarded through a User's mail account (I'm guessing you're authenticating to Yahoo for permission to forward), then the mail is not simply routed but "re-sent." In this case the new sender is the Yahoo mail account which is why your mail header has changed.

    Yahoo's SMTP Smarthost mail not send mail any other way, but if it supports what I described (simple re-routing mail instead of resending) I hope with this information you can find the relevant documentation to do it that way.

    HTH,
    TSU

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Undo Yahoo's Rewrite of From Header Using KMail

    On 2014-10-06 19:36, karlmistelberger wrote:

    >> Other. With formail.

    >
    > formail works fine for me as my inbox is mbox. I defined the following
    > filter in KMail:


    Wow. I did not know you could use formail in kmail.

    > This restores original From and saves Yahoo's spoof to Old-From
    >
    > Many thanks and kind regards


    Interesting! Thanks for sharing.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  8. #8
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,126

    Default Re: Undo Yahoo's Rewrite of From Header Using KMail

    Quote Originally Posted by tsu2 View Post
    But, if the mail is forwarded through a User's mail account (I'm guessing you're authenticating to Yahoo for permission to forward), then the mail is not simply routed but "re-sent." In this case the new sender is the Yahoo mail account which is why your mail header has changed.
    Actually I don`t use Yahoo mail, but I subscribed to a Yahoo Group. I send mail from my account at "M-net", a service provider completely different from Yahoo to "Group-Name <group-name@yahoogroups.de>" and receive mail from the same address. I only undo the changes Yahoo makes to the "From" header of mail received from them. I am not interested in the reasons why they are doing this. They are pretending, that they need to make this. I am not convinced and will refrain from using my mail account at Yahoo.

  9. #9
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,126

    Default Re: Undo Yahoo's Rewrite of From Header Using KMail

    By mistake some filter rules were deleted from kmail. Which files need I to restore from backup?
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •