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
Developing a security incident response system for System i
Tracking remote access users on System i
Setting up security for programmers on IBM i
Controlling remote access on your IBM i
Checking in on your IBM i authorization lists
PCI data security standards and the System i
Securing the integrated file system on IBM System i
Contextual security on IBM i: Limit user profile access
Time for a security checkup for your i
Security monitoring on IBM i: Watching your super users

Systems Management
Can you trust all those trigger programs?
Are your backups complete?
Controlling remote command processing
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
Create an iSeries Access image and update it with the latest Service Pack

iSeries system and application security
Developing a security incident response system for System i
Setting up security for programmers on IBM i
Blocking AS/400 DB2 users
Trouble accessing IFS path from Win2k3 server
Checking in on your IBM i authorization lists
Strategies for securing IBM i production files
Changing password security levels and upgrading operating systems on the IBM i
Determine the value of parameter UPPWEI in the DSPUSRPRF field
Define journal code value "K"
Modify content within a journal receiver file

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 technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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