Unable to send mail from non-global zone


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to send mail from non-global zone
# 1  
Old 02-11-2019
[FIXED]

Long story short, there was a entry in the /etc/hosts file which shouldn't have been there. Removed it, restarted sendmail service and retested, systems sends mail out.

The entry needed to be removed in the hosts file was;

'hostname . '
This User Gave Thanks to samthewildone For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to login via console mode to non-global zone

tldr; We've installed a non-global-zone from a unified archive which once booted, we're unable to gain access to the system either through zlogin or zlogin -C. Errors; svc.startd: instance svc:/system/console-login:default exited with status 127 Investigation; 1) Already opened a SR with... (1 Reply)
Discussion started by: samthewildone
1 Replies

2. UNIX for Advanced & Expert Users

Unable to send mail with 'mail' command

I am unable to cause the 'mail' command to send mail from my linux ubuntu 15.10 computer. File 'mail.log' typically reports Connection timed out. I issue the command: mail -s "my subject" recipient@domain.com < filenamewhere filename is a file containing my message. Specifically, the... (3 Replies)
Discussion started by: tcnm
3 Replies

3. Shell Programming and Scripting

Unable to send mail

Hi friends I am trying to send mail through a unix server. I am using following command mailx -s "THIS IS TEST" jhon@gmail.com Whenever i am typing the above command it is going to next line when i press @ on unix server prompt. so it is taking this command as following mailx -s "THIS... (3 Replies)
Discussion started by: Nakul_sh
3 Replies

4. Solaris

Unable to access serial port from non-global solaris zone on netra 240

I am trying to use a serial communications device that is connected to /dev/ttyb on a netra 240 server. This is a solaris zone configuration using solaris 10 0910. I am able to access /dev/ttyb from the global zone but not throught he non-global zone. I have enabled all of the tty devices in my... (0 Replies)
Discussion started by: disagreeable
0 Replies

5. Solaris

[b]How to mount a folder from global zone to non global zone??

Hi All There is one folder in global zone I just want to share the same folder innon global zone. How can i do it? pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies

6. Solaris

Unable to send mail

hi all i got two server, mercury and procyon mercury can send email but procyon cannot below is their syslog mercury: Jul 6 13:17:17 mercury sendmail: n665HGXg006886: to =<leecw@domain.com>, ctladdr=<ora10g@mercury.domain.com> (4001/101), d elay=00:00:01, xdelay=00:00:01,... (7 Replies)
Discussion started by: SmartAntz
7 Replies

7. Solaris

Unable to send mail

Hey guys i got this error my logs - I ping 127.0.0.1 and it says that its alive - I checked sendmail and it is running - I tried to send a test email but nothing happens it seems that it hangs - What is the possible cause of this? (5 Replies)
Discussion started by: sbn
5 Replies

8. Shell Programming and Scripting

Unable to send a mail

Hi, I have been trying to send a mail from a remote site using this script To send the mail: #!/bin/ksh MAILTO="abc@xyz.com" BACKUPDIR="/wls_domains/wli81_1/RHTEAM/OUTPUTBACKUP/" #BACKUPDIR="../OUTPUTBACKUP/" while ; do print $1 uuencode $1 $1 | mail $MAILTO ... (3 Replies)
Discussion started by: monicaminj2000
3 Replies

9. AIX

unable to send mail

hi, I have tried this code to send mail.Its not giving me error but I am not receiving mail also. #!/bin/ksh echo "The first mail" >msg cnt=`cat /dir1/msg | wc -l` if then mail -s "Hello" abc.xyz@domain.com < msg fi I have also tried with the command mailx -s "hello"... (0 Replies)
Discussion started by: monika
0 Replies

10. Solaris

unable to send mail?

i am trying to execute the below script for sending mails from unix MAIL1="xyz@yahoo.com" mailx -s "hi" $MAIL1<message.txt if then echo "failure" else echo "success" fi but iam unable to send this eventhough iam getting success in the output if i logout and login i have a "you... (1 Reply)
Discussion started by: shahnazurs
1 Replies
Login or Register to Ask a Question
setflabel(3TSOL)				       Trusted Extensions Library Functions					  setflabel(3TSOL)

NAME
setflabel - move file to zone with corresponding sensitivity label SYNOPSIS
cc [flag...] file... -ltsol [library...] #include <tsol/label.h> int setflabel(const char *path, const m_label_t *label_p); DESCRIPTION
The file that is named by path is relabeled by moving it to a new pathname relative to the root directory of the zone corresponding to label_p. If the source and destination file systems are loopback mounted from the same underlying file system, the file is renamed. Other- wise, the file is copied and removed from the source directory. The setflabel() function enforces the following policy checks: o If the sensitivity label of label_p equals the existing sensitivity label, then the file is not moved. o If the corresponding directory does not exist in the destination zone, or if the directory exists, but has a different label than label_p, the file is not moved. Also, if the file already exists in the destination directory, the file is not moved. o If the sensitivity label of the existing file is not equal to the calling process label and the caller is not in the global zone, then the file is not moved. If the caller is in the global zone, the existing file label must be in a labeled zone (not ADMIN_LOW or ADMIN_HIGH). o If the calling process does not have write access to both the source and destination directories, then the calling process must have PRIV_FILE_DAC_WRITE in its set of effective privileges. o If the sensitivity label of label_p provides read only access to the existing sensitivity label (an upgrade), then the user must have the solaris.label.file.upgrade authorization. In addition, if the current zone is a labeled zone, then it must have been assigned the privilege PRIV_FILE_UPGRADE_SL when the zone was configured. o If the sensitivity label of label_p does not provide access to the existing sensitivity label (a downgrade), then the calling user must have the solaris.label.file.downgrade authorization. In addition, if the current zone is a labeled zone, then it must have been assigned the privilege PRIV_FILE_DOWNGRADE_SL when the zone was configured. o If the calling process is not in the global zone, and the user does not have the solaris.label.range authorization, then label_p must be within the user's label range and within the system accreditation range. o If the existing file is in use (not tranquil) it is not moved. This tranquility check does not cover race conditions nor remote file access. Additional policy constraints can be implemented by customizing the shell script /etc/security/tsol/relabel. See the comments in this file. RETURN VALUES
Upon successful completion, setflabel() returns 0. Otherwise it returns -1 and sets errno to indicate the error. ERRORS
The setflabel() function fails and the file is unchanged if: EACCES Search permission is denied for a component of the path prefix of path. The calling process does not have mandatory write access to the final component of path because the sensitivity label of the final component of path does not dominate the sensitivity label of the calling process and the calling process does not have PRIV_FILE_MAC_WRITE in its set of effective privileges. EBUSY There is an open file descriptor reference to the final component of path. ECONNREFUSED A connection to the label daemon could not be established. EEXIST A file with the same name exists in the destination directory. EINVAL Improper parameters were received by the label daemon. EISDIR The existing file is a directory. ELOOP Too many symbolic links were encountered in translating path. EMLINK The existing file is hardlinked to another file. ENAMETOOLONG The length of the path argument exceeds PATH_MAX. ENOENT The file referred to by path does not exist. EROFS The file system is read-only or its label is ADMIN_LOW or ADMIN_HIGH. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------+-----------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------+-----------------------------------+ |Interface Stability | Committed | +-----------------------+-----------------------------------+ |MT-Level | MT-Safe | +-----------------------+-----------------------------------+ SEE ALSO
libtsol(3LIB), attributes(5) Setting a File Sensitivity Label in Solaris Trusted Extensions Developer's Guide NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions. SunOS 5.11 20 Jul 2007 setflabel(3TSOL)