<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <link href="chrome://translator/skin/floatingPanel.css"
      type="text/css" rel="stylesheet">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Jose,<br>
      <br>
      Have you defined this in your config.h before your compiled jnos?<br>
      <br>
      #define SMTP_DENY_RELAY /* Refuse to relay msgs from hosts not in
      our subnets */<br>
      <br>
      After that you can enable relay for a subnet if you need it, like
      this for example...<br>
      <br>
      smtp relay add 44.123.99.1    0xffffff00<br>
      <br>
      <br>
      There is also a file called "refile" what is located in the jnos
      spool directory what you can<br>
      use to filter email based on the "From:" addresses.<br>
      I will give you a couple of examples:<br>
      <br>
      *@financier.com|*@* refuse<br>
      <a class="moz-txt-link-abbreviated" href="mailto:warbelventas@warbel.com.ar">warbelventas@warbel.com.ar</a>|*@* refuse<br>
      <a class="moz-txt-link-abbreviated" href="mailto:h*lampe@chello.nl">h*lampe@chello.nl</a>|*@* refuse<br>
      *@astroexpo.com@*|* hold<br>
      <a class="moz-txt-link-abbreviated" href="mailto:printz9@1st.net">printz9@1st.net</a>|ve3tok@* refuse<br>
      <br>
      See also the docs.<br>
      <br>
      But again as already said by others, let Linux do the filtering.<br>
      <br>
      This is of course a lot of work to setup and maintain.<br>
      Be also aware that spam filtering can cause a (very) high<br>
      CPU load on your computer, etc.<br>
      <br>
      <br>
      <br>
      Bob VE3TOK<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      On 14-03-19 03:27 PM, Jose Ng Lee wrote:<br>
    </div>
    <blockquote
      cite="mid:48074B0A594647769B299A016F9A8A67@HOLLYWOOD.HOLLYWOOD.COM"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <meta name="GENERATOR" content="MSHTML 8.00.6001.23569">
      <style></style>
      <div><font face="Arial">Thanks for the recommendations Michael.</font></div>
      <div> </div>
      <div><font face="Arial">I have shorewall firewall block port 25
          for two days and Jnos was good and no crash.  Today, I tried
          open port 25 and monitored TUN0 with tcpdump.  The smtp
          mail spam just keep flowing and my Jnos is accepting those
          spam mail for relay and crashing.</font></div>
      <div> </div>
      <div><font face="Arial">As I understood, by default Jnos Deny
          Relay.  I tried the commands "smtp deny relay" and "stmp relay
          deny" but not accepted.</font></div>
      <div> </div>
      <div><font face="Arial">Still trying to find out why Jnos is
          accepting those e-mail instead of denying relay.  Before, I
          don't have in Rewrite a specific define and all the spam
          e-mails accumulated in mqueue.  Now, in Rewrite everything
          that is not defined is put in check.  So, the check.txt file
          is growing larger (later delete) but at least is not smtp for
          delivered out.</font></div>
      <div> </div>
      <div><font face="Arial">José / HP2AT</font></div>
      <div><font face="Arial">  </font></div>
      <blockquote style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT:
        5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
        dir="ltr">
        <div style="FONT: 10pt arial">----- Original Message ----- </div>
        <div style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color:
          black"><b>From:</b> <a moz-do-not-send="true"
            title="n6mef@mefox.org" href="mailto:n6mef@mefox.org">Michael
            E Fox - N6MEF</a> </div>
        <div style="FONT: 10pt arial"><b>To:</b> <a
            moz-do-not-send="true" title="hp2cwb@cwpanama.net"
            href="mailto:hp2cwb@cwpanama.net">Jose Ng Lee</a> ; <a
            moz-do-not-send="true" title="nos-bbs@tapr.org"
            href="mailto:nos-bbs@tapr.org">'TAPR xNOS Mailing List'</a>
        </div>
        <div style="FONT: 10pt arial"><b>Sent:</b> Monday, March 17,
          2014 2:51 PM</div>
        <div style="FONT: 10pt arial"><b>Subject:</b> Re: [nos-bbs] How
          to avoid SMTP spam mail in mqueue</div>
        <div><br>
        </div>
        <div>For the greatest protection, run all email through your
          separate mail server.  This includes:</div>
        <div>-- inbound connections from Internet hosts to your public I
          address,</div>
        <div>-- inbound connections from Internet hosts to your 44.x
          address via tunnel from the AMPRnet gateway, and</div>
        <div>-- inbound connections from other 44.x machines to your
          44.x address via tunnels</div>
        <div><br>
        </div>
        <div>M</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div style="COLOR: #575757; FONT-SIZE: 9px">Sent from my
            Verizon Wireless 4G LTE smartphone</div>
        </div>
        <br>
        <br>
        -------- Original message --------<br>
        From: Jose Ng Lee <hp2cwb@cwpanama.net><br>
          Date:03/17/2014 8:39 AM (GMT-08:00) <br>
          To: Michael E Fox - N6MEF <n6mef@mefox.org>,'TAPR xNOS
            Mailing List' <nos-bbs@tapr.org><br>
              Subject: Re: [nos-bbs] How to avoid SMTP spam mail in
              mqueue <br>
              <br>
              <div><font face="Arial" size="2">Thanks Michael for the
                  tips on how to protect my Jnos.</font></div>
              <div> </div>
              <div><font face="Arial" size="2">I could block SMTP (port
                  25) on the Firewall for inbound mails to TUN0, but
                  does that block also the good mail 44 route coming
                  fron encap?</font></div>
              <div> </div>
              <div><font face="Arial" size="2">I trying to figure out
                  why my Jnos accepted all those incoming spam mail.  It
                  should have issue an SMTP DENY and not accepted those
                  emails.  Maybe, there is a script somewhere on my
                  CentOS machine allowing the entrace.  So will keep
                  looking.</font></div>
              <div> </div>
              <div><font face="Arial" size="2">José / HP2AT</font></div>
              <div> </div>
              <blockquote style="BORDER-LEFT: #000000 2px solid;
                PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px;
                MARGIN-RIGHT: 0px" dir="ltr">
                <div style="FONT: 10pt arial">----- Original Message
                  ----- </div>
                <div style="FONT: 10pt arial; BACKGROUND: #e4e4e4;
                  font-color: black"><b>From:</b> <a
                    moz-do-not-send="true" title="n6mef@mefox.org"
                    href="mailto:n6mef@mefox.org">Michael E Fox - N6MEF</a>
                </div>
                <div style="FONT: 10pt arial"><b>To:</b> <a
                    moz-do-not-send="true" title="hp2cwb@cwpanama.net"
                    href="mailto:hp2cwb@cwpanama.net">'Jose Ng Lee'</a>
                  ; <a moz-do-not-send="true" title="nos-bbs@tapr.org"
                    href="mailto:nos-bbs@tapr.org">'TAPR xNOS Mailing
                    List'</a> </div>
                <div style="FONT: 10pt arial"><b>Sent:</b> Monday, March
                  17, 2014 8:28 AM</div>
                <div style="FONT: 10pt arial"><b>Subject:</b> RE:
                  [nos-bbs] How to avoid SMTP spam mail in mqueue</div>
                <div><br>
                </div>
                <div class="WordSection1">
                  <p class="MsoNormal"><span style="FONT-FAMILY:
                      'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
                      11pt">Block direct inbound SMTP connections to
                      JNOS.  <o:p></o:p></span></p>
                  <p class="MsoNormal"><span style="FONT-FAMILY:
                      'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
                      11pt">Set up an MX in Linux using all the modern
                      spam avoidance mechanisms dynamic black lists, UBE
                      detection, signature-based detection, etc.) and
                      send all inbound email to JNOS through that mail
                      server using an MX record in DNS.  <o:p></o:p></span></p>
                  <p class="MsoNormal"><span style="FONT-FAMILY:
                      'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
                      11pt"><o:p></o:p></span></p>
                  <p class="MsoNormal"><span style="FONT-FAMILY:
                      'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
                      11pt">Michael<o:p></o:p></span></p>
                  <p class="MsoNormal"><span style="FONT-FAMILY:
                      'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
                      11pt">N6MEF<o:p></o:p></span></p>
                  <p class="MsoNormal"><span style="FONT-FAMILY:
                      'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
                      11pt"><o:p></o:p></span></p>
                  <p class="MsoNormal"><span style="FONT-FAMILY:
                      'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
                      11pt"><o:p></o:p></span></p>
                  <div>
                    <div style="BORDER-BOTTOM: medium none; BORDER-LEFT:
                      medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
                      0in; PADDING-RIGHT: 0in; BORDER-TOP: #e1e1e1 1pt
                      solid; BORDER-RIGHT: medium none; PADDING-TOP:
                      3pt">
                      <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><b><span
                            style="FONT-FAMILY: 'Calibri','sans-serif';
                            COLOR: windowtext; FONT-SIZE: 11pt">From:</span></b><span
                          style="FONT-FAMILY: 'Calibri','sans-serif';
                          COLOR: windowtext; FONT-SIZE: 11pt"> <a
                            moz-do-not-send="true"
                            href="mailto:nos-bbs-bounces@tapr.org">nos-bbs-bounces@tapr.org</a>
                          [<a class="moz-txt-link-freetext" href="mailto:nos-bbs-bounces@tapr.org">mailto:nos-bbs-bounces@tapr.org</a>] <b>On
                            Behalf Of </b>Jose Ng Lee<br>
                          <b>Sent:</b> Sunday, March 16, 2014 10:55 PM<br>
                          <b>To:</b> TAPR xNOS Mailing List<br>
                          <b>Subject:</b> [nos-bbs] How to avoid SMTP
                          spam mail in mqueue<o:p></o:p></span></p>
                    </div>
                  </div>
                  <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">I
                        noticed today my Raspberry Pi Jnos was respawing
                        in every few minutes.   So, I checked and found
                        out there was some spam e-mails in mqueue not
                        been able to deliver and causing the system to
                        crash and respawn.  Deleted those e-mails and
                        checking the logs and put in blacklist the
                        offender IPs.</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">I play
                        with 3 Jnos systems:</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">Main
                        systems PC with Linux Ubuntu 12.04 LTS:
                        onx.hp2at.ampr.org</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">No
                        spam mail in mqueue.</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">Raspberry
                        Pi with Raspbian: hp2ng.ampr.org</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">Few
                        spam mail in mqueue.</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">PC
                        with Centos 5.9: hp2sa.ampr.org</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">THOUSANDS
                        of spam mail in mqueue.  Don't know how this got
                        through or why it was received in JNOS.  The
                        autoexec.nos is the same as my other system.</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">This
                        is on the message heading on one mail:</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">Received:
                        from pc-200402271018 by hp2sa.ampr.org (ONXSA
                        BBS) with SMTP<br>
                                id AA24803 ; Thu, 13 Mar 2014 03:17:52
                        EST<br>
                        From: =?BIG5?B?pWqo5a21vNY=?= <<a
                          moz-do-not-send="true"
                          href="mailto:springboard@yahoo.com">springboard@yahoo.com</a>><br>
                        To: "awze" <<a moz-do-not-send="true"
                          href="mailto:awze@awze.com">awze@awze.com</a>><br>
                        Subject:<br>
 =?BIG5?B?RGlzbmV5qOC1o7nPrtGhQqlfpf2lzaeupHCpaiC1paqpxXao7LTBuc+u0aFCpfq6?=<br>
                         =?BIG5?B?0KRqpViyTaFJ?=<br>
                        Date: Wed, 28 Apr 2004 22:58:06 +0800<br>
                        MIME-Version: 1.0<br>
                        Content-Type: text/html;<br>
                                charset="Big5"<br>
                        Content-Transfer-Encoding: quoted-printable<br>
                        X-Priority: 3<br>
                        X-MSMail-Priority: Normal<br>
                        X-Mailer: Microsoft Outlook Express
                        6.00.2800.1106<br>
                        X-MimeOLE: Produced By Microsoft MimeOLE
                        V6.00.2800.1106<br>
                        Message-Id: <<a moz-do-not-send="true"
                          href="mailto:24804@hp2sa.ampr.org">24804@hp2sa.ampr.org</a>></span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">Took
                        this JNOS offline until the problem solve.</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">Please
                        can anyone know a way to deny receiving spam
                        mail in jnos.</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">Thanks,</span><o:p></o:p></p>
                  </div>
                  <div>
                    <p style="MARGIN-LEFT: 0.5in" class="MsoNormal"><span
                        style="FONT-FAMILY: 'Arial','sans-serif'">José /
                        HP2AT</span><o:p></o:p></p>
                  </div>
                </div>
              </blockquote>
            </nos-bbs@tapr.org></n6mef@mefox.org></hp2cwb@cwpanama.net></blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
nos-bbs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a>
<a class="moz-txt-link-freetext" href="http://www.tapr.org/mailman/listinfo/nos-bbs">http://www.tapr.org/mailman/listinfo/nos-bbs</a>
</pre>
    </blockquote>
    <br>
    <div style="bottom: auto; left: 337px; right: auto; top: 464px;
      display: none;" class="translator-theme-default"
      id="translator-floating-panel">
      <div title="Click to translate"
        id="translator-floating-panel-button"></div>
    </div>
  </body>
</html>