ERROR OCURRED

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, February 26, 2010

Posted on 12:02 AM by Unknown
Masquerading send your mail with valid domain name, not with your hostname
like valid doamin raman@mydoamin.com not raman@inf1sysadm1.ind.bond.com

I am going to share my configuration.

Open your sendmail.mc ( /etc/mail/sendmail.mc)

FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`domaintable')dnl
FEATURE(`relay_based_on_MX')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`mydomain.com')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(allmasquerade)
MASQUERADE_DOMAIN(mydomain.com)dnl


After that

#echo inf1sysadm1.ind.my.com mydomain.com >> /etc/mail/domaintable"


Then run m4 & restart sendmail services.

## m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

# /etc/init.d/sendmail restart

Through telnet you can check your setting.
Read More
Posted in | No comments

Tuesday, February 23, 2010

multiple lines edit by Sed command.

Posted on 2:16 AM by Unknown
Suppose you have a file with 1000000 lines.. & you want to change any word. Use sed command.

For example: i have a file with name rk.conf with 80000 lines & in this file,want to change lib word with lib64. i use sed this command & my problem RESOLVED.

Command like this.

#sed -i 's/lib/lib64/g' rk.conf

Enjoy... hope this will save your time........
Read More
Posted in | No comments

Wednesday, February 10, 2010

Sendmail (host map: lookup (domain.com): deferred

Posted on 4:19 AM by Unknown
If you get this error... on sendmail.

[root@Test_Srv ~]# mailq
/var/spool/mqueue (9 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o1RKaZr6018628 10 Wed Feb 10 21:37 abc@abc.com
(host map: lookup (abc.com): deferred)




Solution:-

Check your DNS resoulation.

Try to nslookup on domain or dig.

[root@inf1sysadm1 ~]# dig abc.com

; <<>> DiG 9.6.1-P2-RedHat-9.6.1-7.P2.fc11 <<>> abc.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7633
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3


Domain name must be resolve.
Read More
Posted in | No comments

Chkconfig command

Posted on 4:13 AM by Unknown
# chkconfig --list
With this command, you will see a list of system services and whether they are started (on) or stopped (off) in runlevels 0-6

To check a particular service .. in my example sendmail

root@inf1sysadm1 ~]# chkconfig --list sendmail
sendmail 0:off 1:off 2:on 3:on 4:off 5:on 6:off

#chkconfig 235 on

If you found any serivce run in run level 4,6 as well... use following command to stop.
In my example only run in 4th run level.

[root@inf1sysadm1 ~]# chkconfig --list | grep sendmail
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off

[root@inf1sysadm1 ~]# chkconfig --level 4 sendmail off

[root@inf1sysadm1 ~]# chkconfig --list | grep sendmail
sendmail 0:off 1:off 2:on 3:on 4:off 5:on 6:off
Read More
Posted in | No comments

Tuesday, February 2, 2010

Xen disk image resizing.

Posted on 4:15 AM by Unknown
In My Setup....
To resize 4Gb img ( xen virtual machine) to 9Gb
Following steps perform by me & working fine. going to share with you.

1) xm list ( show current running VM)

2) xm shutdown sgd1mon1 ( to shutdown the machine)

3) For safer side .. i take the backup.
[root@sgd1vmbe09 ~]# cd /var/lib/xen/images/
#cp -a sgd1mon1.img sgd1mon1.img.bak
4) verify MD5 Sum
# md5sum sgd1mon1.img
8dfb611eacd0aa7291d1737967845688 sgd1mon1.img
# md5sum sgd1mon1.img.bak
8dfb611eacd0aa7291d1737967845688 sgd1mon1.img.bak

5) Created 5Gb temp file
[root@sgd1vmbe09 images]# dd if=/dev/zero of=tempfile bs=1024 count=5000000
5000000+0 records in
5000000+0 records out
5120000000 bytes (5.1 GB) copied, 77.1266 seconds, 66.4 MB/s

6) Appending the existing image.
[root@sgd1vmbe09 images]# cat tempfile >> sgd1mon1.img

7) Resize the space

[root@sgd1vmbe09 images]# resize2fs -f sgd1mon1.img

8) check a Linux ext2/ext3 file system
[root@sgd1vmbe09 images]# fsck.ext3 sgd1mon1.img

9) Finally start the VM
[root@sgd1vmbe09 images]# xm create sgd1mon1
Using config file "/etc/xen/sgd1mon1".
Started domain sgd1mon1

10) Login and check the partition table.
[root@sgd1mon1 ~]# fdisk -l

Disk /dev/xvda: 9314 MB, 9314304000 bytes
255 heads, 63 sectors/track, 1132 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


Next part extend the machine LVM.... :)
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Popular Posts

  • No package 'lua5.1' found
    hecking for LUA51... no checking for LUA51... configure: error: Package requirements (lua5.1 >= 5.1) were not met: No package 'lua5.1...
  • response to SOA query was unsuccessful: solved
    check your zone file [root@inf1sysadm1 data]# pwd /var/named/data # cat ind.raman.com.zone $ORIGIN . $TTL 3600 ; 1 hour ind.raman.com IN SO...
  • can't locate your x11 installation Fedora
    While install Conky, system through this error. Solution:- You need to install X11 Software Dev Package. Login on system with root user ...
  • Qmail Installation & Configuration step by step
    Tested under CentOS 5.8  64bit machine. 1)Packges which i installed for Qmail. httpd-2.2.3-76 php-5.1.6-39 perl-5.8.8 -38 gcc-4.1.2 mysql-5....
  • Dell MD3200 SAS Cabling With Diagram
    I have 2 MD3200 with SAS Ports + 2 Power Edge720. Task to connect Both DAS with Both server and make sure Both server showing  all DAS Parti...
  • It is safe to clean windows prefetch folder and registry folder ?
     It is safe to clean windows prefetch folder and registry folder ? Will this boost Windows operating system capabilities ? Many of you hav...
  • Windows 7 & Windows 8 fail to start
    Windows 7 fail to boot, what should I do? Is Windows 7 failing to boot after you installed the loader or after you just installed a fresh ne...
  • Steps how to change VolStatus in Bacula through bonsole.
    In my example MediaId=4 or Volumename=000018L4 shows volstatus is Purged. *list volumes Pool: Default +---------+------------+-----------+--...
  • Adobe Photoshop CS5 Error 16 , Adobe Photoshop CS5 Error 7
    When you install Adobe Photoshop CS5 you might get some errors. In case you get one you will see a code and a little description. Is very im...
  • X connection to localhost:10.0 broken (explicit kill or server shutdown).
    Solution:- With Xhost, you can solve this issue.

Categories

  • Adobe
  • Players
  • Reviews
  • Windows

Blog Archive

  • ►  2013 (27)
    • ►  October (3)
    • ►  August (1)
    • ►  June (1)
    • ►  April (3)
    • ►  February (10)
    • ►  January (9)
  • ►  2012 (29)
    • ►  December (2)
    • ►  November (7)
    • ►  October (10)
    • ►  September (4)
    • ►  August (1)
    • ►  June (2)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2011 (36)
    • ►  December (3)
    • ►  November (3)
    • ►  October (1)
    • ►  September (5)
    • ►  August (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (5)
    • ►  February (2)
    • ►  January (7)
  • ▼  2010 (24)
    • ►  December (1)
    • ►  November (1)
    • ►  October (4)
    • ►  August (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
    • ▼  February (5)
      • Masquerading send your mail with valid domain name...
      • multiple lines edit by Sed command.
      • Sendmail (host map: lookup (domain.com): deferred
      • Chkconfig command
      • Xen disk image resizing.
    • ►  January (8)
  • ►  2009 (18)
    • ►  December (6)
    • ►  November (3)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2008 (16)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (5)
    • ►  April (2)
    • ►  February (1)
    • ►  January (5)
  • ►  2007 (4)
    • ►  July (3)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile