HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Re: sendmail banner
 
Operating System - HP-UX
        1840136
        Members
    
    
        2080
        Online
    
    
        110161
        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
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		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
 
03-19-2003 05:19 PM
03-19-2003 05:19 PM
			
				
					
						
							Re: sendmail banner
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi Animesh,
You can safely go ahead and kill sendmail. Use kill, since there is no PID.
kill pid_of_sendmail
Then start it using
/sbin/init.d/sendmail start
-Sri
		
		
	
	
	
You can safely go ahead and kill sendmail. Use kill, since there is no PID.
kill pid_of_sendmail
Then start it using
/sbin/init.d/sendmail start
-Sri
	You may be disappointed if you fail, but you are doomed if you don't try
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-19-2003 08:19 PM
03-19-2003 08:19 PM
			
				
					
						
							Re: sendmail banner
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						All of this discusstion got me thinking, so I checked my own system.
If you look at the /sbin/init.d/sendmail script (at least on 11.0), it checks the values of SENDMAIL_SERVER and SENDMAIL_SERVER_NAME to decide how to start. Those variables are defined in /etc/rc.d/mailservs and there's a decent explanation about what they do.
So, to run sendmail with what should be the equivalent of -bm, just set SENDMAIL_SERVER to 0 and SENDMAIL_SERVER_NAME to something other than nothing.
However, I would comment out all of the following lines:
# mv /etc/mail/sendmail.cf /etc/mail/#sendmail.cf
# sed -e s/^DH$/DH$SENDMAIL_SERVER_NAME.\$m/ # -e s/^DM$/DM$SENDMAIL_SERVER_NAME.\$m/ # /etc/mail/#sendmail.cf # > /etc/mail/sendmail.cf
# rm /etc/mail/#sendmail.cf
If you don't it's going to modify your sendmail.cf and make sendmail masquerade as whatever you defined SENDMAIL_SERVER_NAME to be.
The funny thing is that now the /sbin/init.d/sendmail script doesn't start anything, it just makes sure everything it happy. Even so, when I sent a test message with mailx (after killing sendmail and making the above changes), the message still delivers fine. That must be what the man pages mean by "Deliver mail in the usual way (default)".
Good luck!
		
		
	
	
	
If you look at the /sbin/init.d/sendmail script (at least on 11.0), it checks the values of SENDMAIL_SERVER and SENDMAIL_SERVER_NAME to decide how to start. Those variables are defined in /etc/rc.d/mailservs and there's a decent explanation about what they do.
So, to run sendmail with what should be the equivalent of -bm, just set SENDMAIL_SERVER to 0 and SENDMAIL_SERVER_NAME to something other than nothing.
However, I would comment out all of the following lines:
# mv /etc/mail/sendmail.cf /etc/mail/#sendmail.cf
# sed -e s/^DH$/DH$SENDMAIL_SERVER_NAME.\$m/ # -e s/^DM$/DM$SENDMAIL_SERVER_NAME.\$m/ # /etc/mail/#sendmail.cf # > /etc/mail/sendmail.cf
# rm /etc/mail/#sendmail.cf
If you don't it's going to modify your sendmail.cf and make sendmail masquerade as whatever you defined SENDMAIL_SERVER_NAME to be.
The funny thing is that now the /sbin/init.d/sendmail script doesn't start anything, it just makes sure everything it happy. Even so, when I sent a test message with mailx (after killing sendmail and making the above changes), the message still delivers fine. That must be what the man pages mean by "Deliver mail in the usual way (default)".
Good luck!
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-19-2003 08:27 PM
03-19-2003 08:27 PM
			
				
					
						
							Re: sendmail banner
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Sorry, that didn't paste right.  Here are the lines to comment:
# mv /etc/mail/sendmail.cf /etc/mail/#sendmail.cf
# sed -e s/^DH$/DH$SENDMAIL_SERVER_NAME.\$m/ # -e s/^DM$/DM$SENDMAIL_SERVER_NAME.\$m/ # /etc/mail/#sendmail.cf # > /etc/mail/sendmail.cf
# rm /etc/mail/#sendmail.cf
This is all under the
elif [ "X$SENDMAIL_SERVER_NAME" != "X" ] ; then
section.
You want to leave the "set_return" line in so that the return value is set properly.
		
		
	
	
	
# mv /etc/mail/sendmail.cf /etc/mail/#sendmail.cf
# sed -e s/^DH$/DH$SENDMAIL_SERVER_NAME.\$m/ # -e s/^DM$/DM$SENDMAIL_SERVER_NAME.\$m/ # /etc/mail/#sendmail.cf # > /etc/mail/sendmail.cf
# rm /etc/mail/#sendmail.cf
This is all under the
elif [ "X$SENDMAIL_SERVER_NAME" != "X" ] ; then
section.
You want to leave the "set_return" line in so that the return value is set properly.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
04-01-2003 11:23 AM
04-01-2003 11:23 AM
			
				
					
						
							Re: sendmail banner
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Well, my idea of modifying the startup script was, in hindsight, an obviously flawed one.  Updating sendmail put a new startup script out there and all of a sudden my messages were coming from "seth@XXX".
So, to fix that, I left my changes to /etc/rc.config.d/mailservs as they were, but modified my sendmail.cf so that DS and DM were either already configured how I wanted them, or at least contained a trailing space (that gets around the sed replace). Or, just set SENDMAIL_SERVER_NAME to your hostname and let the script do its thing.
Regards,
Seth
		
		
	
	
	
So, to fix that, I left my changes to /etc/rc.config.d/mailservs as they were, but modified my sendmail.cf so that DS and DM were either already configured how I wanted them, or at least contained a trailing space (that gets around the sed replace). Or, just set SENDMAIL_SERVER_NAME to your hostname and let the script do its thing.
Regards,
Seth
- « Previous
 - 
						
- 1
 - 2
 
 - Next »
 
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