Networking

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Filter emails coming not from my own domain

    6 answers - 521 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Dear All,
    I want to filter all emails coming not from my own domain to our
    private email address say privateaddress (AT) mydomain (DOT) com . I am working
    around following recipie but it is not working, kindly tell me how to
    write it.
    :0
    * !^From:outsidefrom-mydomain (AT) mydomain (DOT) com
    * ^T (AT) mydomain (DOT) com
    /dev/null
    Thank you,
    Imran
    procmail mailing list Procmail homepage: http://www.procmail.org/
    procmail (AT) lists (DOT) RWTH-Aachen.DE
  • No.1 | | 844 bytes | |

    M. Imran schreef:

    I want to filter all emails coming not from my own domain to our
    private email address say privateaddress (AT) mydomain (DOT) com . I am working
    around following recipie but it is not working, kindly tell me how to
    write it.

    :0
    * !^From:outsidefrom-mydomain (AT) mydomain (DOT) com
    * ^T (AT) mydomain (DOT) com
    /dev/null

    :0
    * ! ^From:.*@mydomain\.com
    * ^T@mydomain\.com
    /dev/null

    But since headers are easily faked, you might want to do some more
    checks, like on the number and contents of the Received header fields,
    and maybe on the contents of the postmark line (that contains the
    envelope-from).

    Further you might want to deliver not to /dev/null but rather to a
    special mailbox, to be able to check that once in a while for false
    positives.
  • No.2 | | 1183 bytes | |

    Tue, Aug 22, 2006 at 11:37:32AM +0200, Ruud H.G. van Tol wrote:

    M. Imran schreef:

    I want to filter all emails coming not from my own domain to
    our private email address say privateaddress (AT) mydomain (DOT) com .
    I am working around following recipie but it is not working,
    kindly tell me how to write it.

    :0
    * !^From:outsidefrom-mydomain (AT) mydomain (DOT) com
    * ^T (AT) mydomain (DOT) com
    /dev/null

    :0
    * ! ^From:.*@mydomain\.com
    * ^T@mydomain\.com
    /dev/null

    See, also, my nearly identical answer from 10 August 2006 to
    Imran's earlier version of this same question.

    (I also pointed out there taht using "mydomain.com" as a generic
    example of a domain is not a good idea, because mydomain.com is
    a real domain with hundreds of thousands of customers. That I
    learned from bad experience to stay away from them is unrelated to
    my point that it's a bad habit to use that domain in examples not
    meant to apply do that domain specifically.)

    Dallman

    procmail mailing list Procmail homepage: http://www.procmail.org/
    procmail (AT) lists (DOT) RWTH-Aachen.DE
  • No.3 | | 1092 bytes | |

    Tue, 22 Aug 2006, M. Imran wrote:

    Date: Tue, 22 Aug 2006 13:29:19 +0500

    Dear All,

    I want to filter all emails coming not from my own domain to our
    private email address say privateaddress (AT) mydomain (DOT) com . I am working
    around following recipie but it is not working, kindly tell me how to
    write it.

    The most simple or innocent recipe is:

    FRM=`formail -r -x"To: "`
    :0
    * ! FRM ? @my.own.main\>
    ! private@address

    I think it's ok for start. If your private is gmail you
    already have SPAM filter.

    :0
    * !^From:outsidefrom-mydomain (AT) mydomain (DOT) com
    * ^T (AT) mydomain (DOT) com
    /dev/null

    If you don't wnat to read extra info in the mans, read the man for
    procmailex (examples) you will see what /dev/null means. If you
    want to learn procmail I suggest you to start from
    #steps (Nancy
    McGough's Step by Step)

    Bye,
    Udi

    procmail mailing list Procmail homepage: http://www.procmail.org/
    procmail (AT) lists (DOT) RWTH-Aachen.DE
  • No.4 | | 1334 bytes | |

    Sorry Dallman for being incorrect second time.

    Can any one tell me the right way to write this reciepie. However, I
    start following the man pages.

    Imran

    8/22/06, Udi Mottelo <uuddii (AT) eng (DOT) tau.ac.ilwrote:

    Tue, 22 Aug 2006, M. Imran wrote:

    Date: Tue, 22 Aug 2006 13:29:19 +0500

    Dear All,

    I want to filter all emails coming not from my own domain to our
    private email address say privateaddress (AT) mydomain (DOT) com . I am working
    around following recipie but it is not working, kindly tell me how to
    write it.
    --
    The most simple or innocent recipe is:

    FRM=`formail -r -x"To: "`
    :0
    * ! FRM ? @my.own.main\>
    ! private@address

    I think it's ok for start. If your private is gmail you
    already have SPAM filter.
    --
    :0
    * !^From:outsidefrom-mydomain (AT) mydomain (DOT) com
    * ^T (AT) mydomain (DOT) com
    /dev/null

    If you don't wnat to read extra info in the mans, read the man for
    procmailex (examples) you will see what /dev/null means. If you
    want to learn procmail I suggest you to start from
    #steps (Nancy
    McGough's Step by Step)

    Bye,
    Udi

    procmail mailing list Procmail homepage: http://www.procmail.org/
    procmail (AT) lists (DOT) RWTH-Aachen.DE
  • No.5 | | 2064 bytes | |

    Tue, 22 Aug 2006, M. Imran wrote:

    Sorry Dallman for being incorrect second time.

    Can any one tell me the right way to write this reciepie

    Did you read my message?

    Bye,
    Udi

    However, I start following the man pages.

    Imran
    --
    8/22/06, Udi Mottelo <uuddii (AT) eng (DOT) tau.ac.ilwrote:
    >
    >Tue, 22 Aug 2006, M. Imran wrote:
    >
    >Date: Tue, 22 Aug 2006 13:29:19 +0500
    >>

    >Dear All,
    >>

    >I want to filter all emails coming not from my own domain to our
    >private email address say privateaddress (AT) mydomain (DOT) com . I am working
    >around following recipie but it is not working, kindly tell me how to
    >write it.
    >
    >>

    >The most simple or innocent recipe is:
    >
    >FRM=`formail -r -x"To: "`
    >:0
    >* ! FRM ? @my.own.main\>
    >! private@address
    >>

    >I think it's ok for start. If your private is gmail you
    >already have SPAM filter.
    >
    >>

    >:0
    >* !^From:outsidefrom-mydomain (AT) mydomain (DOT) com
    >* ^T (AT) mydomain (DOT) com
    >/dev/null
    >>

    >If you don't wnat to read extra info in the mans, read the man for
    >procmailex (examples) you will see what /dev/null means. If you
    >want to learn procmail I suggest you to start from
    >#steps (Nancy
    >McGough's Step by Step)
    >
    >Bye,
    >Udi
    >
    >
    >
    >
    >
    >


    This footnote confirms that this email message has been scanned by
    PineApp Mail-SeCure for the presence of malicious code, vandals & computer
    viruses.

    >
    >
    >


    procmail mailing list Procmail homepage: http://www.procmail.org/
    procmail (AT) lists (DOT) RWTH-Aachen.DE
  • No.6 | | 1074 bytes | |

    At 12:06 2006-08-22 +0200, Dallman Ross wrote:

    >(I also pointed out there taht using "mydomain.com" as a generic
    >example of a domain is not a good idea, because mydomain.com is
    >a real domain with hundreds of thousands of customers. That I
    >learned from bad experience to stay away from them is unrelated to
    >my point that it's a bad habit to use that domain in examples not
    >meant to apply do that domain specifically.)


    example.com is a domain specifically maintained for example purposes.

    I myself tend to use "host.domain.tld", as - at least currently - there is
    no "tld" top level domain, and the various tokens in that string identify
    what they are (host, domain, tld).

    Sean B. Straw / Professional Software Engineering

    Procmail disclaimer: <>
    Please D NT carbon me on list replies. I'll get my copy from the list.

    procmail mailing list Procmail homepage: http://www.procmail.org/
    procmail (AT) lists (DOT) RWTH-Aachen.DE

Re: Filter emails coming not from my own domain


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Networking"

EMSDN.COM