แสดงบทความที่มีป้ายกำกับ postfix แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ postfix แสดงบทความทั้งหมด

วันจันทร์ที่ 4 พฤศจิกายน พ.ศ. 2556

dovecot sieve duplicate email message discard

After we finished install ISPConfig3, and configure all email forward and do redirect script in sieve. Unfortunately many duplicate messages happen!

So we try to google to find the way we can solve this issue!

-- We need develop package , dovecot-dev and dovecot-managesieved

# aptitude install dovecot-dev dovecot-managesieved
-- Unfortunately without pigeonhole we can not implement pigeonhole extension.

# wget http://pigeonhole.dovecot.org/releases/2.1/dovecot-2.1-pigeonhole-0.3.6.tar.gz
# tar xzvf dovecot-2.1-pigeonhole-0.3.6.tar.gz
# cd dovecot-2.1-pigeonhole-0.3.6
dovecot-2.1-pigeonhole-0.3.6# ./configure --with-dovecot=/usr/lib/dovecot
dovecot-2.1-pigeonhole-0.3.6# make
dovecot-2.1-pigeonhole-0.3.6# make install
# cd ..
-- Download and install duplicate extension

# wget http://hg.rename-it.nl/pigeonhole-0.3-sieve-duplicate/archive/tip.tar.gz# tar xzvf tip.tar.gz# cd pigeonhole-0-3-sieve-duplicate-6319bd61b834/pigeonhole-0-3-sieve-duplicate-6319bd61b834# ./autogen.shpigeonhole-0-3-sieve-duplicate-6319bd61b834# ./configure --with-dovecot=/usr/lib/dovecot --with-pigeonhole=/usr/include/dovecot/sievepigeonhole-0-3-sieve-duplicate-6319bd61b834# makepigeonhole-0-3-sieve-duplicate-6319bd61b834# make install
-- When finished install duplication we need to link seive to /usr/local/lib/dovecot/sieve


/usr/lib/dovecot/modules# ln -s /usr/local/lib/dovecot/sieve sieve

-- Then need to do sieve_before script to serve all custom_mailfilter for every user.

# cd /home/vmailhome/vmail# mkdir sievehome/vmail/sieve# vi duplicate-discard.sieve

--- edit file duplicate-discard.sieve like this

require "vnd.dovecot.duplicate";  
if duplicate {
     discard;
     stop;
}
-- compile sieve script

home/vmail/sieve# sievec duplicate-discard.sieve
-- edit dovecot configuration file in plugin directive

# vi /etc/dovecot/dovecot.conf

.. edit plugin like this

plugin {  quota = dict:user::file:/home/vmail/%d/%n/.quotausage  sieve=/home/vmail/%d/%n/.sieve  sieve_plugins = sieve_duplicate  sieve_extensions = +vnd.dovecot.duplicate  sieve_duplicate_period = 10m  sieve_before = /home/vmail/sieve/duplicate-discard.sieve}
-- Restart dovecot

# /etc/init.d/dovecot restart


reference

วันพุธที่ 31 ตุลาคม พ.ศ. 2555

What make me here?

Life has no boundaries
...
Thank for พระพุทธเจ้า to give me the way to do
Thank to my family for living
Thank for my teacher to teach
Thank for friend to completed me
Thank for other to support me
...

Favorit
Music: Classic, Soundtrack,
Band: X-Japan, Within Temptation,
Movie: ET, Star war, Beautiful mind,
Cartoon: Ghibli
Country: Thailand, Japan, Germany,
Hobby: Traveling, Book, Movie,

Far Future
50-year old
A little house on High mountain
2 dogs run around me
A few farm
Fresh air

Near Future
Contribute my knowledge to community

Next
MQ i don't want to "lost" anything
Twisted Matrix "amazing project"

Migrate
PHP to Python
SQL to ORM
html to template
Web page to Web Application
Horizontal to Vertically
Everyone is user for system
"in Band, very skilled and less skilled musician need to adopt together"

Platform
2012
We need other platform
Codeigniter.... no
Cake PHP ... no
Zend ... no
Symfony ... no
Java? ... no
Python ... yes
django ... yes
"Simple is more complexities behind"

Software Project Management
2007
Flag ship, CRM
Project management on Trac
Revision control on SVN
{{Applications}}
CRM, Case management, Knowledge management
Sales Management, Marketing Management
Email Mass Marketing
Business Inteligent
{{Application}}
We'd get our platform?
Hosting service
Customization service
Software as service
Cloud service
Python
django, my hero
"Service on Software"

Size Does Matter
2006
Fast growing database, web application was delivered to biggest TV response company
AIX RS/600 was amazing in Thailand
PostgreSQL on AIX, Possible here!
... Now our system serve more than 150GB of data...
... more than 500 users concurrent ...
"Big Huge Giant"

Software Engineering
2003
Requirement analysis
Design
Documentation
Develop
Project management
Implement
Maintain
Version control was implement
CVS SVN
Software Test
Software Quality
"Imagine is more important"

Coding Era
2001
Open source came back
PHP + PostgreSQL+ Apache
First software/service served for businesses
All software written for web, web page!
"team work"

Telephony Network
2001
Move to PABX system
Where voice and data merge here!
Business applications, CRM, messaging system, monitoring software were introduced
Many software are integrated together to complete requirement
"meeting, meeting, business!"

Work!
2000
1-year computer networks, internet servers
ATM, Router, Switch had been setup to serve user
Some on MCU to make meeting over network
We served 600 users with single mail server! with Linux Debian
Open source begin!
Python first introduced
"i'm hungry to know more"

Big Moves
1999
Rosenheim, Germany was next moves
Signal Processing in Big Firm, Siemens
Linux first come in to my life
Environment change
Vision changes
Attitude changes
Life changes
Explore Resenheim
"2nd miracle, Amazing! Incridible"

University
1999
Electrical Engineering Department
Computer/Communication was my major
Digital Image processing using DSP was my project
i fork here
"First miracle, it happend all the time."

Technical School
1996
Knight Rider brought me here
"Time and Time to wait and go for get it"

Next School
1993
Math-Sci was my major here
Music, was my hobby
Trumpet, French-horn were my next instruments in school band
"in a Band, very skilled and low skilled musician need to adopt together"

School
1990
My school was near Wat
I had to walk to school from home every day
I played music on last 3 year in first school
My first instrument was melodeon
"music is one of meditation"

Childhood
I was the second child of three children
We lived close to Wat
I have to learn Buddhism without knowing it
"know nothing means know everything"

Begin
1977
I was born on 10 April
Male
Bangkok, Thailand was my birth place
"a Child can make things"

วันเสาร์ที่ 15 กันยายน พ.ศ. 2555

Zimbra Collaboration Suite AdministrationZ

Zimbra Collaboration Suite Administration

ปลายสัปดาห์นี้ ต้องทำหน้าที่แทนน้องที่บริษัท เพื่อมาเรียนเรื่อง "Zimbra Collaboration Suite Administration" ณ มหาวิทยาลัยเกษตรศาสตร์ บางเขน โดยเรื่องนี้เป็นหนึ่งในโครงการ OSS4CORP โดยเจ้าภาพในการจัดงานเป็น SIPA นั่นแหละ จำได้ว่าแต่ก่อนเคยไปเรียนที่ SWPARK เหมือนกัน แต่ด้วยสถานที่ของ SWPARK เอง จึงยังดูไม่ค่อยดีเท่าไหร่  แต่มาครั้งนี้เนื่องจากโครงการนั้นมาใช้สถานที่ ณ มหาวิทยาลัย เกษตรศาสตร์ หลาย ๆ อย่างได้รับการปรับปรุงอย่างมาก

โดยส่วนตัวแล้ว ปกติใช้งาน postfix เป็น mail server และได้ทำการกำหนดค่าและติดตั้งระบบเองทั้งหมดตั้งแต่ mail server spam antivirus webmail เรียกได้ว่ากว่าจะใช้งานระบบได้ก็กินเวลาไปหลายวันเหมือนกัน เพราะว่านาน ๆ ทำที

ตัว Zimbra เองไม่ได้เป็นการพัฒนาระบบใหม่ตั้งแต่ mail server จนกระทั้ง web mail แต่หากเป็นการรวบรวม software หลาย ๆ ตัวเข้ามาเป็น Collaboration ซึ่งก็เป็นแนวทางที่ดี สำหรับหลาย ๆ คนที่คิดว่าจะเริ่มทำอะไรเองทั้งหมด Zimbra เองเป็นการนำ software ที่มีจุดเด่นแต่ละตัวมาประกอบกัน โดยรวบรวมการจัดการไว้ที่ Zimbra เองและในส่วนของการติดต่อกับผู้ใช้งานนั้น ก็มีพร้อมสำหรับผู้ใช้งานด้วย

ในการนำไปใช้งานนั้น หากเป็นองค์กรที่มีจำนวนผู้ใช้งานไม่มาก ผมก็คิดว่ายังไม่เหมาะสม เนื่องจาก Zimbra มีความสามารถเกินที่ใช้งานเกินไป และที่สำคัญ หากต้องติดตั้งใช้งานแล้ว ต้องมีเครื่องServer ที่รองรับด้วย ผมจึงแนะนำให้ไปใช้บริการที่เป็นลักษณะ cloud จะดีกว่า

แต่หากเป็นการนำไปใช้งานในองค์การระดับกลางถึงใหญ่ ซึ่งมีกำลังในการติดตั้งและมีผู้ดูแลระบบเอง ผมก็เห็นด้วย เพราะว่าระบบได้ออกแบบให้ใช้งานในหลาย ๆ ส่วนแทนระบบ Mail ในองค์กร ได้ดี 

ในส่วนตัวไม่มีอะไรใหม่ในการใช้งาน แต่คิดว่าจะเป็นประโยชน์มากต่อการนำไปใช้งานและนำไปพัฒนาระบบในส่วนของแนวคิดในการพัฒนาระบบเป็นอย่างดี



วันอังคารที่ 4 พฤษภาคม พ.ศ. 2553

Postfix กับการส่ง email ด้วยหลาย ๆ Relay





Normally when you need to send massive emails via shared gateway. The possibility way is to set your gateway to relay to ISP's smtp. But what happen if a huge destination emails is in local network. You have to send every local email by local relay?

Please try this

# Create a hash transport map
# touch /etc/postfix/transport
# Add this lines to /etc/postfix/transport
mydomain.com relay:10.0.0.25:25
# Create Map
#postmap /etc/postfix/transport
# Add your transportation to /etc/postfix/main.cf
# postconf -e "transport_maps = hash:/etc/postfix/transport"
# Then reload your postfix
#/etc/init.d/postfix reload