Popular Posts

Nov 17, 2016

Setup / configure sendmail client in solaris 11

Setup / configure sendmail client in solaris 11


1. Stop sendmail service
  svcadm disable -t network/smtp:sendmail

2. Verify the sendmail service status
svcs -a network/smtp:sendmail

3. Make a copy of the configuration files that you are changing.
cd /etc/mail/cf/cf
cp sendmail.mc `uname -n`.mc        (EX) cp sendmail.mc `uname -n`.mc

4. Edit the new configuration file (for example, vi judi-dev-01.mc), Add the below Line
MASQUERADE_AS(`mail.server-mycompany.co.in') {mail.server-mycompany.co.in - our mail server name}

5. Build the configuration file by using m4.
make `uname -n`.cf

6. Test the new configuration file by using the -C option to specify the new file.
/usr/lib/sendmail -C `uname -n`.cf -v judi.rose@sagariah.com </dev/null
Only outgoing mail can be tested without restarting the sendmail service on the system

7. Install the new configuration file after making a copy of the original
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.`date +%d-%b-%Y-%H-%M`
cp `uname -n`.cf /etc/mail/sendmail.cf

8. Restart the sendmail service.
svcadm enable network/smtp:sendmail

9. Send a Test Mail
/usr/bin/mailx -s "Test Mail" -v judi.rose@sagariah.com < /dev/null

10. Send a Mail with a attachment
uuencode result.txt result.txt | mailx -s "Configuration - Audit Rport" judi@gmail.com


11. Test mail server connectivity
telnet mailserver.com 25



~
How to Set Up Mail Client
How to Set Up SendMail Client
configure sendmail client in solaris 11
sendmail in solaris 11
send mail in solaris 11
send mail client in solaris
solaris mail client
mailx configuration
~

Nov 10, 2016

How To Create A Solaris Flash Archive (FLAR) - Solaris 10

How To Create A Solaris Flash Archive (FLAR)


Flar image in solaris 10
This command will take a complete image of the root ( / ) FS

flarcreate -n "corporate_build_s10u11.flar" -a "judi" -c -S -R / -x /opt/oracle -x /opt/BMC /opt/oracle/corporate_build_s10u11.flar_09Nov16.flar

-n : defines name of the flar image
-a : give a author name for that image
-c : add compression to the image result
-S : do not include sizing information
-R : set root directory of the master operating system. For above example the root OS is /.
-x : exclude the specific directory from the image.


Information about the flar image
judi-test-server1# flar info corporate_build_s10u11.flar_09Nov16.flar


~
how to create flash archive in solaris 10
how to create flar image in solaris 10
create flar image in solaris 10
~

List / Get / Set / Change Time Zone and locales in Solaris 11

List / Get / Set / Change Time Zone and locales in Solaris 11


1. List the available time zones in server
judi-test-server1# nlsadm list-timezone
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa

US/Pacific
US/Pacific-New
US/Samoa
UTC
W-SU
WET
Zulu
judi-test-server1#

2.  Get current configuration - what time zone is set in server
judi-test-server1# nlsadm get-timezone
timezone=GB
judi-test-server1#


3. Set or change to a new time zone in server
nlsadm set-timezone US/Central

4. List available locales
judi-test-server1#  nlsadm list-locale
LOCALE              LANG  TERRITORY  CODESET  MODIFIER  FLAGS
af_ZA.UTF-8         af    ZA         UTF-8    -         -
ar_AE.UTF-8         ar    AE         UTF-8    -         -
ar_BH.UTF-8         ar    BH         UTF-8    -         -
ar_DZ.UTF-8         ar    DZ         UTF-8    -         -
ar_EG.UTF-8         ar    EG         UTF-8    -         -

en_GB.UTF-8         en    GB         UTF-8    -         -
es_US.UTF-8         es    US         UTF-8    -         -
judi-test-server1#

5. Set locale to en_GB.UTF-8
nlsadm set-system-locale en_GB.UTF-8

6. Get current configuration - which locale is set in server
judi-test-server1#  nlsadm get-system-locale
LANG=en_GB.ISO8859-15@euro
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_ALL=

judi-test-server1#

~
Setting the Time Zone and Locale in solaris 11
How to change Time Zone in solaris 11
How to change Locale in solaris 11
List / get / view Time Zone in solaris 11
List / get / view Locale in solaris 11
solaris 11 change timezone without reboot
change timezone solaris 11
solaris 11 set time
solaris 11 set timezone
solaris timezone list
solaris change time
solaris 11 change timezone without reboot

solaris timezone
~

Popular Posts