Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

utf-8 encoded Reply-To causing delivery failures in autoreplies

Last post 01-02-2020, 9:37 by FJR. 3 replies.
Sort Posts: Previous Next
  •  09-30-2019, 20:02

    • Brian Fluet is not online. Last active: 01-17-2020, 22:28 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 28,680

    utf-8 encoded Reply-To causing delivery failures in autoreplies

    I'm starting to see more utf-8 encoded headers which seems to only be a problem when the Reply-to header is encoded and a autoreply is generated by a FORWARD file.

    Of course the autoreply fails but what I'm curious about is what the message attached to the delivery failure notice shows the header as decoded yet the body of the rejection message itself shows the header encoded (examples are per below).  I would be grateful for an explanation of why this is so as to get an idea how to create a filter that will block such autoreplies.

    Message headers as per attachment to delivery failure message:

        To:    partstownsurveys@partstown.com
        Subject:    [Autoreply] Re: The Talk of the Town Starts with You!
        Date sent:    Mon, 30 Sep 2019 11:20:23 -0400

     

    Delivery failure message shows:

     The attached message has failed delivery and has been referred
    to you as postmaster. The following error report or reports
    were given to explain the problem:

       *** =?utf-8?q?partstownsurveys=40partstown=2Ecom?=
       User =?utf-8?q?partstownsurveys=40partstown=2Ecom?= not known at this site.

     

    This is the Reply-To header of the original message:

       Reply-To: =?utf-8?q?partstownsurveys=40partstown=2Ecom?=


  •  12-20-2019, 11:44

    • FJR is not online. Last active: 2020-01-02, 13:47 FJR
    • Top 25 Contributor
    • Joined on 05-10-2007
    • Dortmund / Germany
    • Star
    • Points 7,910

    Re: utf-8 encoded Reply-To causing delivery failures in autoreplies

    Hi Brian,

    the answer is very simple: the answering mailhost (Mercury?) doesn't decode the header lines prior to put it into the error message. The same "problem" comes up on error messages with encoded subject. A little bug and not that big problem as long as the header is encoded "q" (quoted printable). If the header is encoded "b" (base64) you have no chance reading it. You have to copy the string and decode it (i.e. with Notepad++).

    Advising a filter ... there is poor information. Which mailhost (Mercury ?) at which domain (partstown.com ?) sent this mail to postmaster at which domain?

    Bye

       Olaf

  •  12-21-2019, 2:18

    • Brian Fluet is not online. Last active: 01-17-2020, 22:28 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 28,680

    Re: utf-8 encoded Reply-To causing delivery failures in autoreplies

    FJR:
    Advising a filter ... there is poor information. Which mailhost (Mercury ?) at which domain (partstown.com ?) sent this mail to postmaster at which domain?

    My thinking is to create a global filter in Mercury that could detect and delete such autoforward messages. 

    Would a filter that looks for "To:*utf-8*" work?


  •  01-02-2020, 9:37

    • FJR is not online. Last active: 2020-01-02, 13:47 FJR
    • Top 25 Contributor
    • Joined on 05-10-2007
    • Dortmund / Germany
    • Star
    • Points 7,910

    Re: utf-8 encoded Reply-To causing delivery failures in autoreplies

    Hi Brian,

    first of all: happy new year and all the best for 2020!

    My thinking is to create a global filter in Mercury that could detect and delete such autoforward messages. 

    Would a filter that looks for "To:*utf-8*" work?

    Yes ... but this will filter all mails with utf-8-encoded header TO. Because you only want autoreplies to be filtered, you should add someting like:

    AND "Subject:*Autoreply*"

     Bye    Olaf

     

View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page