Professional Web Applications Themes

postfix: reject mails with MAIL FROM: <> - Linux Setup, Configuration & Administration

Is it possible to reject a mail with no envelope sender? I'd like this to happen: $ telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 Ready MAIL FROM: <> My postfix answers "250 Ok" I'd like it to reject the MAIL FROM command (possibly dropping the connection). I've read quite a bit of postfix manuals, but can't find out what to put in main.cf or master.cf; I am not even sure that one of those is the file to edit :( Anyone offers a push in the right direction? Thanks a million -- --= my ...

  1. #1

    Default postfix: reject mails with MAIL FROM: <>

    Is it possible to reject a mail with no envelope sender?

    I'd like this to happen:

    $ telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 Ready
    MAIL FROM: <>


    My postfix answers "250 Ok"

    I'd like it to reject the MAIL FROM command (possibly dropping the
    connection). I've read quite a bit of postfix manuals, but can't find
    out what to put in main.cf or master.cf; I am not even sure that one of
    those is the file to edit :(

    Anyone offers a push in the right direction?
    Thanks a million
    --
    --= my mail box only accepts =--
    --= Content-Type: text/plain =--
    --= Size below 10001 bytes =--
    Pedro Guest

  2. #2

    Default Re: postfix: reject mails with MAIL FROM: <>

    Pedro Graca <com> writes:
     
     
     

     
     

    Please nominate your system to rfc-ignorant.org, so that we
    can easily block your email.

    Neil Guest

  3. #3

    Default Re: postfix: reject mails with MAIL FROM: <>

    Neil W Rickert wrote: [/ref]
     [/ref]
     [/ref]
     

    Oops, thanks for the pointer.
    I no longer want to block such emails.

    *goes back to the drawing board*
    --
    --= my mail box only accepts =--
    --= Content-Type: text/plain =--
    --= Size below 10001 bytes =--
    Pedro Guest

  4. #4

    Default Re: postfix: reject mails with MAIL FROM: <>

    Neil W Rickert wrote: 
    >

    >

    >
    >

    >

    >
    >
    > Please nominate your system to rfc-ignorant.org, so that we
    > can easily block your email.
    >[/ref]

    A gentler way of saying that is that what you want to do is against the
    rules. People running MTAs, such as sendmail, *must* accept e-mail from
    <>, because that is the sender of bounces, delivery status notices,
    etc., and if you ignore those, your users will not know if their e-mails
    have been delivered or not. The rules are described in various RFCs.

    http://www.rfc-editor.org/rfc.html

    http://www.rfc-ignorant.org/policy-dsn.php

    --
    .~. Jean-David Beyer Registered Linux User 85642.
    /V\ Registered Machine 73926.
    /( )\ Shrewsbury, New Jersey http://counter.li.org
    ^^-^^ 9:25am up 16 days, 22:09, 3 users, load average: 2.18, 2.16, 2.16

    Jean-David Guest

  5. #5

    Default Re: postfix: reject mails with MAIL FROM: <>

    Jean-David Beyer wrote: 

    That is exactly what was hapenning to me.
    Somehow I started receiving *LOTS* (to my point of view) of bounces to
    ggvcjchj (at) mydomain.com, all FROM: <>

    I suspect someone is sending fake email from that address and they
    bounce to me! damn spammers!

    Current solution:
    ggvcjchj: /dev/null
    --
    --= my mail box only accepts =--
    --= Content-Type: text/plain =--
    --= Size below 10001 bytes =--
    Pedro Guest

  6. #6

    Default Re: postfix: reject mails with MAIL FROM: <>

    Pedro Graca writes: 

    Yes. I get at least a hundred of those every day.
    --
    John Hasler
    gt.org
    Dancing Horse Hill
    Elmwood, Wisconsin
    John Guest

  7. #7

    Default Re: postfix: reject mails with MAIL FROM: <>

    In message <brv3d5$77qbu$news.uni-berlin.de>, Pedro Graca wrote:
     
    >
    > That is exactly what was hapenning to me.
    > Somehow I started receiving *LOTS* (to my point of view) of bounces to
    > ggvcjchj (at) mydomain.com, all FROM: <>
    >
    > I suspect someone is sending fake email from that address and they
    > bounce to me! damn spammers!
    >
    > Current solution:
    > ggvcjchj: /dev/null
    >[/ref]
    That's the obvious solution or, better still, configure your system so that
    mail to an unknown address gets bounced. Here, only mail to approved
    addresses even gets as far as the spam filters, the rest gets a 5XX
    response.

    Dave
    --
    mail: da org (without the space)
    http://www.llondel.org/
    So many gadgets, so little time...

    Dave Guest

  8. #8

    Default Re: postfix: reject mails with MAIL FROM: <>

    On Fri, 19 Dec 2003 09:37:16 -0500, Jean-David Beyer <jd.b> wrote: 
    >>
    >> 
    >>
    >> 
    >>
    >>
    >> 
    >>
    >> 
    >>
    >>
    >> Please nominate your system to rfc-ignorant.org, so that we
    >> can easily block your email.
    >>[/ref]
    >
    > A gentler way of saying that is that what you want to do is against the
    > rules. People running MTAs, such as sendmail, *must* accept e-mail from
    ><>, because that is the sender of bounces, delivery status notices,
    > etc., and if you ignore those, your users will not know if their e-mails
    > have been delivered or not. The rules are described in various RFCs.
    >
    > http://www.rfc-editor.org/rfc.html
    >
    > http://www.rfc-ignorant.org/policy-dsn.php
    >[/ref]

    Not exactly. Spammers love to use From <> and you can weed them out by
    using a passlist which keys off the From: header, which in bounced mails
    is the address of the original sender.

    It is also fairly simple to tell a real DSN from a fake one.

    Accepting any mail with From <> is just asking for trouble.


    AC
    Alan Guest

  9. #9

    Default Re: postfix: reject mails with MAIL FROM: <>

    John Hasler <gt.org> wrote: [/ref]
     

    Don't have any of those.

    After disabling the default catch-all account for my domain, it
    looks not that bad, according to SA:

    116 x SPAM since 03:37 h (511k) caught by:
    SpamAssassin 2.60

    Perhaps 1-3 get through a week, right now. Albeit, it's quite
    annoying that you have to run 'spamd' these days, to keep mail
    working.;(

    --
    Michael Heiming

    Remove +SIGNS and www. if you expect an answer, sorry for
    inconvenience, but I get tons of SPAM
    Michael Guest

Similar Threads

  1. Replies: 2
    Last Post: February 5th, 04:08 PM
  2. Mail size limit for Postfix
    By Daniel in forum Mac Networking
    Replies: 0
    Last Post: November 8th, 01:03 AM
  3. mail() sending mails twice to the e-mails addresses at BCC
    By Maria Garcia Suarez in forum PHP Development
    Replies: 0
    Last Post: July 15th, 12:35 PM
  4. Now can I bounce or reject e-mails?
    By Bob Wheeler in forum Linux Setup, Configuration & Administration
    Replies: 0
    Last Post: June 29th, 11:15 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139