How do I set up a filter to stop relayed mail?

How do I set up a filter to stop relayed mail?
Unsolicited Bulk E-mail (UBE) is electronic mail sent to large numbers
of recipients without their knowledge or consent, usually advertising commercial
products or services. It is the electronic equivalent of paper "junk
mail", and is commonly referred to as Spam.
<P>UBE is usually just a nuisance, but the volume of UBE received at a
certain site can at times become so onerous that business-critical functions
are affected. This is especially true when UBE is used maliciously
to produce a denial of service attack, where a mail server is inundated
with UBE and crashes because of the load. Another common UBE problem
is when a mail server is used as a relay for UBE, so that a particular
server spends all its time routing e-mail that isn't destined for its
users. Some ISPs have reported that their mail servers have been
hard coded into certain spam programs, so that they are constantly being
used as a relay. Not only does this slow down their mail service
locally, but sometimes other ISP's will identify the afflicted ISP as a
source of spam and begin to block messages, legitimate and spam alike,
coming from that ISP. ISP's often name UBE as their number one problem,
preventing them from providing fast, reliable service.
<P>For a full definition of UBE see http://www.imc.org/uce-def.html
(Unsolicited Bulk Email: Definitions and Problems).
<P>Messaging Server 3.5 Hosting Edition supports powerful filtering capabilities
on messages as they are received by the server. Various criteria
can be applied to incoming messages, including testing on number of recipients,
sender domain or IP address, messages being relayed, and more. Messages
can then be bounced, dropped, or reviewed by an administrator before being
delivered. Providers can filter out unwanted mail at the source or block
a third party from using their messaging server for relaying email.
<P><B>UBE Filters Functionality Overview</B>
<P>The UBE filter is a plugin for Netscape Messaging Server 3.5. It works
by examining all incoming mail before it is routed throughout the system
(to users mailboxes or to other email servers). The UBE filter uses a set
of rules (also known as filters) to decide what to do with each piece of
mail. The filters are used to trap specified types of mail.
Mail that is trapped can be rejected, forwarded to a specific mailbox (e.g.,
the postmaster), deleted, or altered in some way. Mail that "passes"
all the filters continues on its normal course.
<P>Filters can be set up two ways, either using the straight forward Graphical
User Interface (GUI) or by setting up the filters directly in the filter.cfg
file. Generally, one would use the GUI interface for simple, one
line filters. To set up more complicated, multi-part filters, editing
the <I>filter.cfg</I> file directly would be faster. Both methods
are accessed via the Messaging Server Admin tool, under Plug-ins.
The following discussion gives some high level examples of how to set up
simple filters using the GUI and via the <I>filter.cfg</I> file.
For detailed information on how to set up and configure the UBE Filter
plug-in, see chapter 5 of the online help, or http://home.netscape.com/eng/Messaging/guide35/ch5.htm#Controlling
unsolicited bulk email (UBE).
<P><B>Setting Up UBE Filters with the GUI</B>
<P>The following screen shot shows a simple UBE filter being set up using
the UBE GUI. What is being set up is a filter to check all incoming
messages to see if they come from a domain that has been a regular source
of UBE. In this case, the name of the offending domain is "spammer.com".
So, each message that comes in has its "From" field checked to see if
it is from "spammer.com". If it is, the action is REJECT, meaning
the message is bounced back to the sender, with the appended message "I
don't accept mail from spammer.com".
<P>
<BR>
<P>Any field in the message can be examined, with some of the most popular
including the Subject, To, and Cc fields. Any regular expression
can be placed into the Value field, thus allowing the filter to check for
various conditions, including containment of a particular phrase (e.g.
Subject includes "make money"), or number of recipients (e.g., if greater
than 100, REJECT). For more information on how to write regular expressions,
see http://home.netscape.com/eng/Messaging/guide35/ch5.htm#Controlling
unsolicited bulk email (UBE)
<P>There are a number of actions that can be taken on a trapped message.
The most common are forwarding to a "watchdog" account such as the postmaster,
rejection, and deletion. But, in addition, programs such as virus
checking can be run on a message to trap infected messages.
<P><B>Setting Up UBE Filters by editing the <I>filter.cfg</I> file</B>
<P>In the above example, the filter that was set up was converted to a
short filter script that looked as follows:
<P>Channel-From ".*@spammer.com" REJECT
"I don't accept mail from spammer.com"
<P>This can also be directly entered into the <I>filter.cfg</I> file by
choosing the option "Edit Config File" from the UBE Page. This becomes
interesting for more complicated filters that require more than one filter
line. The following example shows a set of filters that were set
up to check for various conditions. For example, the fifth
and sixth line down is a filter that checks messages for viruses.
<P>
<BR>
<P><B>Using the UBE Filter for Anti-Relay</B>
<BR>
<P>One of the most requested needs of the new UBE filters supported in
Messaging Server 3.5 is to provide "anti-relay", i.e., to stop UBE which
is from an outside domain and destined for another outside domain.
In these cases, the mail is usually UBE and is relaying to hide the source
of the original spammer.
<P>There are two possible scenarios for anti-relay. One is where
there is a separate machine outside the firewall that checks for e-mail
for its domain. The other scenario is when there is only one machine
handling both internal and external traffic.
<P><I>Scenario One: Separate machines used for internal and external
mail</I>
<P>Outside of the firewall are mail servers that handle all incoming mail
from the internet. Internal users connect to mail servers inside
of the fire wall. The scenario looks like this:
<BR>
<P>What we want to allow is users 1 and 2 (U1 and U2) to send mail anywhere
but X1 and X2 should only be allowed to send mail to our servers.
<P>Solution:
<P>On the External Mail Server create a filter script that checks the Channel-to
header for domains that are internal to us. Allow these through and
reject all other mail. E.g., the filters would look as follows:
<BR>
<UL># if the mail is bound for domain1 or domain2 then exit the script
(and allow the mail to continue)
<BR>Channel-To "domain1.com" EXIT
<BR>Channel-To "domain2.com" EXIT
<BR># otherwise reject it outright ($ANY means any header and .* means
it has any text)
<BR>$ANY ".*"
REJECT "This machine only accepts mail bound for domain1.com or domain2.com"</UL>
We don't need to do anything on the internal server since only our users
can get to it (because of the firewall) and we want to allow them to send
and receive any and all mail.
<BR>
<P><I>Scenario 2: Single machine used for internal and external mail</I>
<P>In this scenario the same machine is used for both internal and external
connections. The problem we face here is that we need to allow the
local users to send mail outside our domains but not allow external users
to do the same. Note: This set up is not generally recommended, since it
makes the Messaging Server open to external attacks.
<BR>
<P>Here, we want to allow U1, U2 and U3 to send anywhere and X1 and X2
to send to domain1 or domain2 only.
<P>Solution:
<P>The solution in this case is to put the same script as scenario 1 on
the server but pre-pend it with lines that check for a connection from
the internal domains. If the connection is from our users it must
be from certain IP addresses, say 128.128.128.* or 128.128.129.*, so we
look for that. If it's not from one of these two IP addresses, then
it must be from outside and we apply the same logic as in scenario 1.
<BR>
<UL>#if the connection is from our internal domains then exit the script
(and allow the mail to continue)
<BR>Host-From "128\.128\.128\." EXIT
<BR>Host-From "128\.128\.129\." EXIT
<BR># if the mail is bound for domain1 or domain2 then exit the script
(and allow the mail to continue)
<BR>Channel-To "domain1.com" EXIT
<BR>Channel-To "domain2.com" EXIT
<BR># otherwise reject it outright ($ANY means any header and .* means
has any text)
<BR>$ANY ".*" REJECT "This machine only accepts mail bound for domain1.com
or domain2.com"</UL>

I agree anti-relay can be using UBE feature. However, there is serious problem in reject the spam mail. My nms is using UBE feature to stop spam mail. According to the work flow of the UBE, the mail is received by nms completely and UBE is going to invesgate the mail address. Although UBE can stop the spam mail, the spam mail have a trouble in returning the mail to the sender. The reason is the sender address is usually not existed in the world. That will cause a lot of mail waiting in the mail queue.
In my experience, do not use UBE for anti-relay.

Similar Messages

  • How do I set up my 3G to send/receive mail from MS exchange?

    How do I set up my 3G to send/receive mail from MS exchange?

    Welcome to the Apple Community.
    If you can't get your mail to work on Snow Leopard after June 30, you might want to try one of these approaches
    1. Configuring Mail in Snow Leopard
    2. Delete your mail account from Mail preferences and set it up again using the Mail Server Information.
    Some users have apparently encountered issues using this information in pre-Lion set ups (I haven't), Roger Wilmut has kindly provided instructions for those who find themselves with this problem.
    Entering iCloud email settings manually in Snow Leopard or Leopard

  • Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Just a suggestion..........
    Download Thunderbird.  Easier to use when it comes to what you want to do w/your emails. 

  • How do you set-up a hotmail email address in mail

    how do you set-up a hotmail email address in mail?
    I cant seem to add it. any ideas why it cant connect to the server? what server address should i be using?
    regards
    Brendon

    Hi bmuur,
    I also had the same problem.
    I clicked Microsoft Exchange and kept trying to add my hotmail account that way but it kept asking for a server address for it to work.
    If you go into Internet Accounts and instead of clicking Microsoft Exchange scroll down to the bottom of the list and click Add Other Account...
    It will ask what sort of account you want to be created and I selected Add Mail Account and clicked create.
    Enter your full name, hotmail email address and password.
    I then clicked create and it worked for me.
    Hopefully this solves your problem. 

  • How do I set up Safari to my default e-mail client?

    How do I set up Safari to my default e-mail client?

    Hello Irvkor,
    You can set up your default mail client in Mail.
    Open Mail
    In the menu bar choose Mail... > Preferences
    In the Preferences pane choose General and in the Default email reader menu select your email client
    Quit Mail
    Now when you click on a link in Safari that email client will open.
    Hope this will help.

  • How can I set information broadcasting (send Workbook with E-mail) in serv.

    FYI: I set a broadcasting schedule to send workbook with e-mail. The pre-calculated server was set already.
    How can I set information broadcasting (send Workbook via E-mail) when I cannot access enterprise portal ?

    Hi,
    Check this thread:
    Work book broadcasting
    Regards
    Pcrao.

  • HT204053 How do I set up my Mac to auto retrieve mail from icloud?

    How do I set up my Mac to auto retrieve mail from icloud?

    Welcome to the Apple Community.
    If you can't get your mail to work on Snow Leopard after June 30, you might want to try one of these approaches
    1. Configuring Mail in Snow Leopard
    2. Delete your mail account from Mail preferences and set it up again using the Mail Server Information.
    Some users have apparently encountered issues using this information in pre-Lion set ups (I haven't), Roger Wilmut has kindly provided instructions for those who find themselves with this problem.
    Entering iCloud email settings manually in Snow Leopard or Leopard

  • How do I set up two accounts with two separate mail applications?

    My wife and I have two separate email accounts. At home she gets her mail on her computer and mine on my computer. While traveling I would like to be able to allow her to get her email on my laptop. I set up the 2nd account and activated it but her email comes in mixed with mine. How can I set up a separate mail program for her account?
    Thanks in Advance,
    Jim Conrad

    Hello Jim.
    As already provided, open Inbox to reveal the Inbox for each account. Selecting an account's Inbox mailbox reveals messages received by that account only in the message list. Selecting Inbox reveals a "blended" Inbox mailbox for all accounts.
    The same applies to Drafts, Sent, Trash and Junk in the mailboxes drawer.
    If you want these accounts to be truly separate, create a login account on your iBook for your wife - with or without admin privileges. Your wife can create her email account only in Mail under her login account and you can delete her account from Mail under your login account.
    This way, each others' email accounts are kept completely separate along with all other data in each other's Home folder/directory. OS X was designed for multiple users in this way.
    You can enable Fast User Switching which makes the process of switching between multiple login accounts a fast and easy process.
    There are some families with 4 or more family members that use a single Mac in this way. Each login account can have their own Desktop background and settings, etc., etc. so when logging in to their account the Mac seems like it is theirs only.
    This link focuses on setting up separate user login accounts for kids but the effect is the same.
    http://www.apple.com/macosx/features/family/

  • How do I set up subfolders in a mac mailbox (mail 4.6)

    Hello Forum,
    I have set up a work account in mail 4.6.  It's already starting to get out of hand.  How do I set up sub folders to this account?  It's a POP account.
    I also have a Gmail account and to set up subfolders there I access Gmail online and they just come through to mailbox.
    Thanks

    You can influence when messages are deleted from the server in Preferences > Accounts > Advanced. If you are reading the mail on more than one device, typically you would set this on all devices to something like "delete one week after retrieving the message" so that each device has a chance to get the message before it is deleted. POP servers are not intended for long-term storage, and there might be space or time limitations imposed by the service provider.

  • How can I set the language when sending an e-mail with attachment - 'Html'?

    "Character Broken"
    I made an ALV program, and this convert to "HTML',  and send an e-mail with this.
    Used Process is:
    DATA: gt_abaplist LIKE TABLE OF abaplist,
          gt_html LIKE TABLE OF w3html,
          doc_chng LIKE sodocchgi1,
          objpack LIKE TABLE OF sopcklsti1 WITH HEADER LINE,
          objhead LIKE TABLE OF solisti1 WITH HEADER LINE,
          mail LIKE TABLE OF solisti1 WITH HEADER LINE,
          reclist LIKE TABLE OF somlreci1 WITH HEADER LINE,
          lv_line TYPE i.
    DELETE FROM MEMORY ID '%_LIST'.
    SUBMIT z_template
       AND RETURN EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = gt_abaplist
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
      TABLES
        html       = gt_html
        listobject = gt_abaplist.
    doc_chng-obj_name   = 'URGENT'.
    doc_chng-sensitivty = 'O'.
    doc_chng-obj_descr  = ' '.
    doc_chng-obj_langu  = '3'.
    objhead-line        = ' '.
    APPEND objhead.
    mail[] = gt_html[].
    DESCRIBE TABLE mail LINES lv_line.
    CLEAR: objpack.
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num   = 0.
    objpack-body_start = 1.
    objpack-body_num   = lv_line.
    objpack-doc_type   = 'htm'.
    objpack-obj_descr  = ' '. 
    objpack-doc_size   = lv_line * 255.
    objpack-obj_langu = '3'.
    APPEND objpack.
    CLEAR: reclist.
    reclist-receiver = 'e-mail address'.
    reclist-rec_type = 'U'.
    APPEND reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = doc_chng 
        put_in_outbox              = 'X'
        commit_work                = 'X'
      TABLES
        packing_list               = objpack
        object_header              = objhead
        contents_bin               = mail
        receivers                  = reclist
      EXCEPTIONS
        too_many_receivers         = 1
        document_not_sent          = 2
        document_type_not_exist    = 3
        operation_no_authorization = 4
        parameter_error            = 5
        x_error                    = 6
        enqueue_error              = 7
        OTHERS                     = 8.
    SUBMIT rsconn01 AND RETURN.
    I want to show  this by "Japanese".
    But the character is broken.
    LIke This:
    u01D1u072C          u0205|            u0205u072C          u0508           QC u04B90m
    How can I set the language?  How can I solve "Charancter Broken" ?
    Plesse, let me know.
    Thank you so much.
    Edited by: Jaime White 999 on Nov 21, 2011 8:45 AM
    Edited by: Jaime White 999 on Nov 21, 2011 8:46 AM

    Hi Jaime,
    Are you saying, you are getting junk characters in the email attachment? Then pls check the following. Since you want to send Japanese fonts, please pass language 'J' in both  objpack-obj_langu = '3' & doc_chng-obj_langu  = '3' instead of '3' please replace it with 'J'.
    Another thing which you may have to check is the SCOT device type. As I understand from my basis colleague, this may also affect your attachment fonts since the emails are sent through SCOT. Go to transaction SCOT-> Settings-> Device types for format conversion. Check whether wrong device type is defined for Japanese there. Hope this helps
    Regards,
    Gokul

  • How can I set up a program to stop at a certain time, or after a period of time?

    I am using LabVIEW to measure dc voltages over a period of time. The data is exported into an Excel file.  I would like to be able to set up the program to stop at a certain time, or after a certain number of hours.  This way when I run a test that will start near the end of the week and would stop on say, Saturday, it will not continue to record all the data after that, which I do not need. I would love to be able to set a time for it to end, but I  also wouldn't mind having it end, or stop recording data, after a certain voltage has been reached.

    Its hard to say without knowing more about how your program is set up.  Assuming the data aquisition is in a while loop, you can just wire a bunch of different stop conditions into a compound math node.  Then right click on it and select "OR".  A caveat about the comparisons I used in my little example: Comparing DBLs can lead to unexpected results when the two values are very close together.
    Message Edited by jasonhill on 06-16-2006 10:59 AM
    Attachments:
    stop the loop.PNG ‏5 KB

  • How do I set up Entourage to get me iCloud mail?

    Made the mandatory move to iCloud, now I cant get my email at home anymore.
    How do I set up Entourage to get my mail?

    You need to use one iTunes library for music and another alternate library for your movies.  This explains how to open an alternate iTunes Library file or create a new one, http://support.apple.com/kb/HT1589

  • HT201320 how do you set up and exchange account for google mail

    how do you set up and exchange account for google mail

    If it's a free gmail account, you don't. Google no longer permits free accounts to be set up using Exchange Active Sync. Only paid google apps accounts can be set up as Exchange accounts.

  • How do i set an email auto responder for I-mail?

    Help, how do I set an email auto responder?
    Thanks,
    Twosheels

    I'm not sure exactly what you mean by "I-Mail". However, there is no way to set up an autoresponder on an iPad. You'll need to do it through the server. For example, I have Gmail. I can log into Gmail on my computer using my browser and set up an autoreponse in settings.

  • How do I set up mailbox folders within the IPad mail system (similar to the mailbox folders that I have in Microsoft Outlook)

    In Microsofr Outlook, my email is sorted into folders; how do I set up similar folders in tha mail application of my IPad??

    You can't do it at the moment in the Mail app itself. If you email account is an IMAP one then you can create extra folders by logging into your account on a browser and creating them there - they should then appear in the Mail app on the iPad. If it's a POP type email account then unfortunately you're stuck with what you've got.

Maybe you are looking for

  • APX Crashes when trying to open an external folder with LOTS of subfolders.

    Has anybody else encountered this? I have an external harddrive hooked up to my Airport Extreme (801.11n). I can access everything on it and I can copy things to and from it; however, there is one folder I cannot access. Every time I try to open my m

  • Help with new facebook app idea

    I created a drawing facebook app that allows users to draw on Graffiti Walls. If anyone wants to see the app LIVE right now, it's at, [link removed by moderator]. I made this app using Flash, Actionscript 3 and MySQL for the database. PHP for the ser

  • How to set my c6280 photosmart printer for half fold envelopes and set and save for future use

    I would appreciate an answer please email me thanks in advance for getting back with me. Bevy Ann

  • How to get sequence information.

    Hi, v_table contains sequence numbers in one column. In desc table_name not give sequence information like sequence name, sequence order like increment by... How can get this values. pls suggest me. Regards, Venkat.

  • A BAPI for MEK32

    Good afternoon We receive FOB price data from Japan which is used to update the gross price (PR00 Condition Type) in our ECC 6.0 system, but the process is manual. The user opens one session in SAP and copy/pastes the FOB through a tedious entry proc