Koozali.org: home of the SME Server

Sorting Email

Offline p-jones

  • *
  • 594
  • +0/-0
Sorting Email
« on: July 08, 2008, 08:27:37 AM »
Have I missed something or do I need to go to the bugtracker ?

Using multidrop mail, messages are coming in with valid addresses for our domain in the Bcc box and they are being rejected as non-existant accounts. These emails also contain addresses in the To: and Cc fields which are not for our domain.

I have looked in the bug tracker and found nothing. The manual suggests  my setup is Ok. I am not sure where to next and I need to resolve post haste.

P
...

Offline brianr

  • *
  • 990
  • +2/-0
Re: Sorting Email
« Reply #1 on: July 08, 2008, 10:59:43 AM »
This is a classic problem with fetchmail and emails coming from mailing lists.

see here:

http://www.catb.org/~esr/fetchmail/fetchmail-man.html#25


The best solution is to NOT use fetchmail, and arrange for mx records to deliver your email by smtp direct to the server.

A possible alternative solution is to direct fetchmail to "sort" on another header in the receiving emails (the ones that are not routed correctly).  to do this you must examine the headers and identify which header actually contains the intended recipient, then plug that into the "select sort header" field in the email/email delivery settings of server manager.  A candidate might be "envelope".
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Sorting Email
« Reply #2 on: July 08, 2008, 01:04:55 PM »
brianr

Thanks for this info. I can find the info needed in the header "Envelope-to:". It it a simple as changing the sort header and inserting Envelope-to in the box.

Frustrating thing is I have a client running identical setup with a different ISP and dont have this issue !!
...

Offline brianr

  • *
  • 990
  • +2/-0
Re: Sorting Email
« Reply #3 on: July 08, 2008, 01:15:55 PM »
It should be as easy as you say... good luck.  It probably depends what mailserver software the ISP is using.

Let us know if it fixes it.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Sorting Email
« Reply #4 on: July 08, 2008, 01:29:48 PM »
Brianr

Thanks again. A quick simulation of the scenario seems to suggest it is fixed. Will see what tommorrow brings with some real life emails!.

This is a can of worms. I have just had a look at the headers of emails from different ISP's Some are using Envelope-To, some are using X-Envelope to.

Thanks for the pointer.

Peter
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Sorting Email
« Reply #5 on: July 08, 2008, 04:58:07 PM »
I have just had a look at the headers of emails from different ISP's Some are using Envelope-To, some are using X-Envelope to.

Peter, it would be useful if you would summarise your research on the wiki. Add instructions for how someone can examine sample messages and work out what should be configured in the server manager.