HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Re: [Q] what is different of mail sending (sendmai...
 
Operating System - HP-UX
        1840158
        Members
    
    
        3046
        Online
    
    
        110162
        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
 
06-29-2008 08:29 AM
06-29-2008 08:29 AM
			
				
					
					
						All,
Would somebody let me know what different of mail sending between HPUX and Solaris is ?
I have several unix servers and some are HPUX 11.11 and some are Solaris v8.
To use "mailx" command in maintenance scripts, I set a relay server in sendmail.cf of /etc/mail.
What I'm curious is
,in HPUX, "mailx" is working without sendmail daemon. but in Solaris, "mailx" is not working without sendmail daemon.
I'm not good at those sendmail site. my knowldge of UNIX is very general, not specific and expertized. so need your help.
Why it works without daemon on HPUX, and why not on SUN which is not working sendmail daemon ??
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
Would somebody let me know what different of mail sending between HPUX and Solaris is ?
I have several unix servers and some are HPUX 11.11 and some are Solaris v8.
To use "mailx" command in maintenance scripts, I set a relay server in sendmail.cf of /etc/mail.
What I'm curious is
,in HPUX, "mailx" is working without sendmail daemon. but in Solaris, "mailx" is not working without sendmail daemon.
I'm not good at those sendmail site. my knowldge of UNIX is very general, not specific and expertized. so need your help.
Why it works without daemon on HPUX, and why not on SUN which is not working sendmail daemon ??
Solved! Go to Solution.
		2 REPLIES 2
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-29-2008 12:40 PM
06-29-2008 12:40 PM
			
				
					
						
							Re: [Q] what is different of mail sending (sendmail) between HPUX and Solaris ??
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						We can't help you here about Solaris, it just is different.  And will get the thread removed.
But on HP-UX, you only need sendmail to receive mail. mailx automatically invokes sendmail to send it. See SEP's reply in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1216340
		
		
	
	
	
But on HP-UX, you only need sendmail to receive mail. mailx automatically invokes sendmail to send it. See SEP's reply in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1216340
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-29-2008 12:45 PM
06-29-2008 12:45 PM
Solution
			
				
					
					
						In HP-UX, the tools like mailx may work without the sendmail daemon running, but they won't work reliably.
The reason: in HP-UX 11.11, mailx runs sendmail in "one-shot" mode. In this mode, sendmail makes _one_ attempt to send the mail to the recipient. If all works well, this is enough and the mail is transferred successfully.
But whenever there are any problems (recipient's mailbox full, recipient's mail server is offline for maintenance, network problems, etc.) the mail is stored to /var/spool/mqueue so that the sendmail daemon can re-send it. If sendmail is not running as a daemon and the sysadmin has not done something to make sure the mail queue gets emptied, the mail remains forever in /var/spool/mqueue.
I've not maintained any Solaris machines in a few years, so my Solaris knowledge is a bit weak. But apparently the mailx of Solaris will attempt to connect the running Sendmail daemon instead of using the "one-shot mode". If there is no sendmail daemon running, this will of course fail.
With HP-UX 11.11 and older, if the sysadmin wants to disable the sendmail daemon, the standard workaround to the mail queue problem is to make a cron job that periodically runs "sendmail -q". This tries to re-send any messages trapped in the mail queue, and generates bounce messages for those mails that have been stuck in the queue for too long.
HP-UX 11.23 and newer are using an updated version of sendmail that splits some of the sendmail's tasks into a separate "sm-client" process. These versions can easily be configured to "send-only" or "receive-only" modes using the settings available in /etc/rc.config.d/mailservs file.
MK
		
		
	
	
	
The reason: in HP-UX 11.11, mailx runs sendmail in "one-shot" mode. In this mode, sendmail makes _one_ attempt to send the mail to the recipient. If all works well, this is enough and the mail is transferred successfully.
But whenever there are any problems (recipient's mailbox full, recipient's mail server is offline for maintenance, network problems, etc.) the mail is stored to /var/spool/mqueue so that the sendmail daemon can re-send it. If sendmail is not running as a daemon and the sysadmin has not done something to make sure the mail queue gets emptied, the mail remains forever in /var/spool/mqueue.
I've not maintained any Solaris machines in a few years, so my Solaris knowledge is a bit weak. But apparently the mailx of Solaris will attempt to connect the running Sendmail daemon instead of using the "one-shot mode". If there is no sendmail daemon running, this will of course fail.
With HP-UX 11.11 and older, if the sysadmin wants to disable the sendmail daemon, the standard workaround to the mail queue problem is to make a cron job that periodically runs "sendmail -q". This tries to re-send any messages trapped in the mail queue, and generates bounce messages for those mails that have been stuck in the queue for too long.
HP-UX 11.23 and newer are using an updated version of sendmail that splits some of the sendmail's tasks into a separate "sm-client" process. These versions can easily be configured to "send-only" or "receive-only" modes using the settings available in /etc/rc.config.d/mailservs file.
MK
	MK
			
			
				
			
			
			
			
			
			
		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