HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- sendmail 8.9.3 , stop third party relays
Operating System - Linux
        1839907
        Members
    
    
        3185
        Online
    
    
        110157
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 08:17 PM
08-27-2003 08:17 PM
			
				
					
						
							sendmail 8.9.3 , stop third party relays
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi:
I did a :
#telnet relay-test.mail-abuse.org
Passed the previous 7 test cases, but not the 8th case:
<<< 220 xyz.com Server ESMTP ready at Thu, 28 Aug 2003 00:01:52 -0400
>>> HELO cygnus.mail-abuse.org
<<< 250 xyz.com Hello cygnus.mail-abuse.org
:Relay test: #Test 8
>>> mail from:
<<< 250 Ok
>>> rcpt to:
<<< 250 Ok
>>> QUIT
Local flow control off
<<< 221 xyz.com Out
Tested host banner: 220 xyz.com Server ESMTP ready at Thu, 28 Aug 2003 00:00
System appeared to accept 1 relay attempts
Connection closed by foreign host.
Am using sendmail 8.9.3 and relay should have been turned off by default? What do I need to
change in sendmail.cf or which script to use to generate the sendmail.cf entries?
Thanks.
		
		
	
	
	
I did a :
#telnet relay-test.mail-abuse.org
Passed the previous 7 test cases, but not the 8th case:
<<< 220 xyz.com Server ESMTP ready at Thu, 28 Aug 2003 00:01:52 -0400
>>> HELO cygnus.mail-abuse.org
<<< 250 xyz.com Hello cygnus.mail-abuse.org
:Relay test: #Test 8
>>> mail from:
<<< 250 Ok
>>> rcpt to:
<<< 250 Ok
>>> QUIT
Local flow control off
<<< 221 xyz.com Out
Tested host banner: 220 xyz.com Server ESMTP ready at Thu, 28 Aug 2003 00:00
System appeared to accept 1 relay attempts
Connection closed by foreign host.
Am using sendmail 8.9.3 and relay should have been turned off by default? What do I need to
change in sendmail.cf or which script to use to generate the sendmail.cf entries?
Thanks.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 08:39 PM
08-27-2003 08:39 PM
			
				
					
						
							Re: sendmail 8.9.3 , stop third party relays
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						what platform/distribution of Linux are you using?  Why are you still usign such an old version of Sendmail?
					
				
			
			
				
		
		
	
	
	
	One long-haired git at your service...
			
			
				
			
			
			
			
			
			
		- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 02:47 AM
08-28-2003 02:47 AM
			
				
					
						
							Re: sendmail 8.9.3 , stop third party relays
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						You should upgrade sendmail.
I believe the access file was implemented in 8.9.3 though.
You can carefully define relay ip addresses in the file /etc/mail/access
with the following format.
192.168.0.40 RELAY
Thats tab delimited data there.
Then you need a script like the one I'm attaching to rebuild the hash databases and generate a new snedmail.cf file.
You could turn on promiscuous relay in sendmail.mc and use my script but that would pretty much turn you into a spam relay and your ISP will shut you down pretty fast, unless they're totally corrupt.
See script.
SEP
					
				
			
			
				
		
		
	
	
	
I believe the access file was implemented in 8.9.3 though.
You can carefully define relay ip addresses in the file /etc/mail/access
with the following format.
192.168.0.40 RELAY
Thats tab delimited data there.
Then you need a script like the one I'm attaching to rebuild the hash databases and generate a new snedmail.cf file.
You could turn on promiscuous relay in sendmail.mc and use my script but that would pretty much turn you into a spam relay and your ISP will shut you down pretty fast, unless they're totally corrupt.
See script.
SEP
	Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
			
			
				
			
			
			
			
			
			
		Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 04:18 AM
08-28-2003 04:18 AM
			
				
					
						
							Re: sendmail 8.9.3 , stop third party relays
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Using sendmail on HPUX 11i. 
I used the access.db also which an entry:
192.168.1relay
How about if mail.xyz.com resolves to 192.168.1.5 ? so, the case
rcpt to: will get through. 
Then the sendmail will relay mail. How to fix in sendmail.cf so that the format
and
<"nobody@mail-abuse.org"@mail.xyz.com>
are not accepted by sendmail?
  
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
I used the access.db also which an entry:
192.168.1
How about if mail.xyz.com resolves to 192.168.1.5 ? so, the case
rcpt to:
Then the sendmail will relay mail. How to fix in sendmail.cf so that the format
and
<"nobody@mail-abuse.org"@mail.xyz.com>
are not accepted by sendmail?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP
