Home > AS/400 Tips > iSeries security tips > Deny spammers server access
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES SECURITY TIPS

Deny spammers server access


Rich Loeber
04.09.2002
Rating: -4.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


 

Deny spammers server access
Rich Loeber

Spam is more than an annoyance; it can be a real security headache. Spammers make it a regular practice to use the email capability of others' systems that are connected to the Internet.

OS/400 has an SMTP server that can be used to send email directly from your system. This is a very handy thing to have available if you need to send mail from your system and you don't want to load down your company's regular mail server. But how do you keep spammers from gaining access to the system and spreading their own particular disease using your system, especially because default configuration for the SMTP server is for wide-open message relaying. The answer to our question is to control how messages are relayed through your system. If you are using the SMTP server on your iSeries box, you should definitely set up control over the message relaying process.

Do this by defining specific IP addresses that are allowed to relay mail through your system. IP addresses that attempt to send mail through your system that are not on the list of "trusted" addresses, will be denied access to your system.

To set up relay control, do the following:

  1. Create a source physical file in library QUSRSYS named QTMSADRLST. The file must be created with CCSID value set to "500". The record length should be the default value of 92.
  2. Start PDM on this new source file and create a new member named ACCEPTRLY.
  3. For each IP address for which you want to authorize mail relaying, you add a line to this file member. Each line will contain an IP address and an address mask in dotted decimal format.

    Here are some examples:

    1. To allow a specific IP address to relay mail through your iSeries box, code: 1.2.3.4 255.255.255.255. This will allow the system with IP address 1.2.3.4 to relay mail using your system.

    2. To allow all addresses from 1.2.3.1 through 1.2.3.255, code the following: 1.2.3.1 255.255.255.0. This will let all of the systems within the defined range use your system to relay mail.

  4. You can also approach this from the angle of rejecting relay requests from specific systems by creating another member in the same QTMSADRLST file named REJECTCNN. Enter records in this file using the rules cited above. The systems defined in this member will be specifically rejected from mail relay attempts.

Note: If all you want to do is turn off ALL message relaying, regardless of its source, you can do this by creating a data area in library QUSRSYS named QTMSNORLY. This will disallow all mail relay requests on your system.

Once your file is set up, you can activate the feature by:

  1. Ending the current SMTP server (ENDTCPSVR *SMTP)
  2. Check to make sure that no data area named QTMSNORLY exists in your QUSRSYS library.
  3. Restart the SMTP server (STRTCPSVR *SMTP)

Rich Loeber is president of Kisco Information Systems Inc., in Mt. Kisco, NY. The company is a provider of various security products for the AS/400 market.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
iSeries security tips
Security monitoring on IBM i: Watching your super users
Tracking System i program object changes
Recovering your AS/400 security configuration
System values on i: Setting them up and locking i down
A guide to System i security, Part 3: Digging in to the System i security environment
Is your AS/400 secure?: How a hacker could get valuable information from your system
System i security report roundup
A guide to System i security, part 2: Landing and establishing access
Creating a System i database security policy: Implementation
A guide to System i security: Descending into the heart of darkness of IT security

Systems Management
Can you trust all those trigger programs?
Are your backups complete?
Controlling remote command processing
Time for your annual checkup
Watch your profiles
Avoid locking issues
Send message to users at a remote site
Security journal receiver management
Top 10 backup commands
Tracking critical file access in real time

iSeries system and application security
Security monitoring on IBM i: Watching your super users
Tracking System i program object changes
More consolidation in the i world: Audax purchases Bytware
Recovering your AS/400 security configuration
System values on i: Setting them up and locking i down
A guide to System i security, Part 3: Digging in to the System i security environment
Primary group authority: How it works
Blocking access to SQL line commands
Moving files to new libraries allows access to only groups or users that are authorized
Changing telnet ports: A security solution?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
midrange  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts