Wednesday, April 17, 2013

บล็อกอีเมลพนักงานไม่ให้ส่งเมลออกไปนอกบริษัท

สร้างไฟล์ header_checks /etc/postfix
-----------------------------------------------------------
/^To:.*domain\.co\.th/      OK
/^To:.*\.*/   REJECT You are not allowed to send mail outside the company.
/^Cc:.*domain\.co\.th/      OK
/^Cc:.*\.*/   REJECT You are not allowed to send mail outside the company.
/^Bcc:.*domain\.co\.th/     OK
/^Bcc:.*\.*/  REJECT You are not allowed to send mail outside the company.
-----------------------------------------------------------

#postmap /etc/postfix/header_checks
#vim /etc/postfix/main.cf

 เพิ่ม  header_checks = regexp:/etc/postfix/header_checks เข้าไปในไฟล์ main.cf

#/etc/init.d/postfix reload
#tail -f /var/log/mail.log   ดู Log mail


Thursday, April 11, 2013

Postfix Autorespont

Howto set auto respont by Postfix

Reading ...



Monday, April 8, 2013

Scrip Map network drive on ubuntu


For ubuntu 10.xx - 12.04
//192.168.4.xx/market  /media/market  cifs    username=center,password=xxx001,iocharset=utf8,codepage=unicode,unicode       0       0

For ubuntu 12.04 Kernel 3.6.0
install packet smbfs
#aptitude install smbfs
edit #vim /etc/fstab
.
.
//192.168.4.xx/market  /media/market  cifs    username=center,password=xx001,iocharset=utf8,uid=1000,gid=1000       0       0

**uid=1000 check on /etc/passwd
**gid=1000 check on /etc/group

command map

#mount -o username=mxx,password=mxxx //192.168.xx.25/share folder /media/mail

Create file Credentails

1. Create Folder on Client
#mkdir /home/user/Sharefile

2. create file passwd credentail

#echo “username=samba_username” > /home/user/Sharefile/.smbcredentials
#echo “password=password_username” > /home/user/Sharefile/.smbcredentials
#chmod 600 /home/user/Sharefile/.smbcredentials

3. Edit file /etc/fstab
add new line

#//192.168.0.xx/downloads        /home/user/Sharefile       cifs    uid=1000,gid=1000,credentials=/home/user/Sharefile/.smbcredentials,defaults        0       0

4.Run mapdrive
#mount //192.168.0.xx/downloads
or
#mount -a

umount
#umount Sharefile


Ref.
techsuii.com



Setup Propdfd

how to setup propdfd

Reading digitalocean.com

Friday, April 5, 2013