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

Mercury filter

Last post 03-09-2010, 5:07 by Rolf Lindby. 10 replies.
Sort Posts: Previous Next
  •  08-28-2007, 17:45

    • Slab is not online. Last active: 09-28-2007, 20:23 Slab
    • Top 150 Contributor
    • Joined on 05-08-2007
    • Member
    • Points 350

    Mercury filter

    Is there a filtering rule I could put in that would filter out mail from local user accounts that haven't authenticated?  This would eliminate spam I get that has a local email address as the sender. 
  •  08-30-2007, 5:50

    • David Harris is not online. Last active: 05-09-2012, 1:15 David Harris
    • Top 10 Contributor
    • Joined on 01-31-2007
    • New Zealand
    • Star
    • Points 9,135
    • SystemAdministrator

    Re: Mercury filter

    The short answer is "no" - I can't think of any way of doing this at the moment.

    The idea is not without a certain merit, though. Let me think about it a bit.

    Cheers!

    -- David --

  •  09-05-2007, 15:50

    • Slab is not online. Last active: 09-28-2007, 20:23 Slab
    • Top 150 Contributor
    • Joined on 05-08-2007
    • Member
    • Points 350

    Re: Mercury filter

    This could be done easily if Mercury would put an AUTHENTICATED tag in the header. 
  •  09-05-2007, 23:03

    • geby is not online. Last active: 2011-09-29, 12:21 geby
    • Top 200 Contributor
    • Joined on 03-23-2007
    • Czech Republic
    • Member
    • Points 765
    • BetaTeam Moderator

    Re: Mercury filter

    It should be solved by small daemon by SMTP server hooking. I know if connection is authjorized here, and i am using this information in GrayWall. (Authorized connections are not delayed anymore...)

    So, most easy way is small daemon what can detect this state and add requested header to message. I must think about it too. 

    Filed under:
  •  09-06-2007, 5:10

    • David Harris is not online. Last active: 05-09-2012, 1:15 David Harris
    • Top 10 Contributor
    • Joined on 01-31-2007
    • New Zealand
    • Star
    • Points 9,135
    • SystemAdministrator

    Re: Mercury filter

    As I noted in another thread, adding a header indicating that the message originated from an authenticated connection is trivially easy, and I'll do it as a standard part of MercuryS for v4.53. You can then create rules that simply look for that header.

    Cheers!

    -- David --

  •  09-06-2007, 19:57

    • Slab is not online. Last active: 09-28-2007, 20:23 Slab
    • Top 150 Contributor
    • Joined on 05-08-2007
    • Member
    • Points 350

    Re: Mercury filter

    David Harris:
    As I noted in another thread, adding a header indicating that the message originated from an authenticated connection is trivially easy, and I'll do it as a standard part of MercuryS for v4.53. You can then create rules that simply look for that header.

    Cheers!

    -- David --

    Brilliant!
  •  09-13-2007, 19:48

    • Slab is not online. Last active: 09-28-2007, 20:23 Slab
    • Top 150 Contributor
    • Joined on 05-08-2007
    • Member
    • Points 350

    Re: Mercury filter

    I came up with a quasi work around.  I setup a filtering rule to add a +50 to all messages from local accounts (There are only 3).  I set up another rule to add -999 to all accounts that had a certain signature line in the body. This isn't exactly reading an AUTH tag, but as close as I can get.
  •  03-09-2010, 2:40

    • jbanks is not online. Last active: 05-19-2012, 2:49 jbanks
    • Top 100 Contributor
    • Joined on 06-09-2007
    • Prince Edward Island, Canada
    • Member
    • Points 495

    Re: Mercury filter

    I just sent an email to myself but don't see which header indicates an authenticated user.? What should I be looking for.

     

    Jim

  •  03-09-2010, 3:31

    • Rolf Lindby is not online. Last active: 2012-05-18, 23:27 Rolf Lindby
    • Top 10 Contributor
    • Joined on 05-08-2007
    • Stockholm, Sweden
    • SuperStar
    • Points 17,215
    • BetaTeam Moderator SystemAdministrator

    Re: Mercury filter

    There isn't one, and such a header could easily be faked, so it would have limited usefulness.

    However, similar kinds of spam (with non-existent local MAIL FROM, or with identical MAIL FROM and RCPT TO) can be rejected at SMTP transaction level by using a SMTP event daemon I wrote. There is a lot of spam with those characteristics around at the moment. 

    There is a download package for the event daemon here:
    http://downloads.serieguide.se/SmtpEvt.zip


    There are some additional features in it so be sure to have a look at the readme file.

    /Rolf 

  •  03-09-2010, 3:45

    • jbanks is not online. Last active: 05-19-2012, 2:49 jbanks
    • Top 100 Contributor
    • Joined on 06-09-2007
    • Prince Edward Island, Canada
    • Member
    • Points 495

    Re: Mercury filter

    Thanks Rolf, I have downloaded your daemon and will take a look at it tomorrow.  One thing I don't understand though is that earlier in this thread David Harris himself said "As I noted in another thread, adding a header indicating that the message originated from an authenticated connection is trivially easy, and I'll do it as a standard part of MercuryS for v4.53. You can then create rules that simply look for that header.  Cheers!  -- David --"

     Did something change his mind?

     Thanks again, 

     

    Jim

  •  03-09-2010, 5:07

    • Rolf Lindby is not online. Last active: 2012-05-18, 23:27 Rolf Lindby
    • Top 10 Contributor
    • Joined on 05-08-2007
    • Stockholm, Sweden
    • SuperStar
    • Points 17,215
    • BetaTeam Moderator SystemAdministrator

    Re: Mercury filter

    I can't remember this being discussed any further so I'm not sure why it wasn't included. There are a lot of ideas for additions and improvements around at all times, though, so I guess it could simply have been forgotten along the way.

    /Rolf 

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