ข้ามไปที่เนื้อหาหลัก

How to install Mail server for Ubuntu 10.10

Intall POSTFIX

Instal postfix by command.


    sudo apt-get install postfix

page one Please select the mail server you select OK

next page General type of mail configuration select No configuration

Postfix is set to run Local mail by command.

    dpkg-reconfigure postfix

display General type of mail configuration : you select Local only

next page System mail name is set to Domain change yourdomain.com

page Root and postmaster mail recipient is set user root.

page Otther destinations to accept mail for : set default press OK next page

page Force syschronous updates on mail queue? : NO

page Local networks is your insert Network IP for network of you such as 192.168.1.0/24

page Mailbox size limit(byte) : 0 (insert number 0 no limit)

page Local Address extension charater : +

page Internet Protocal to use : all

Edit main.cf

Edit main.cf by command.

    sudo nano /etc/postfix/main.cf


And add the command below. relay_domains = $mydestination imodclub.com

save and reload

    /etc/init.d/postfix reload

Test run by telnet command.

telnet localhost 25 ---->(Enter)
mail from: imodclub@imodclub.com ---> (command email send)
rcpt to : sittinan@imodclub.com ----> (command email receive)


If the message displayed ok, it passed.

INSTALL IMAP4/POP3 (Dovecot)

Instal IMAP4/POP3 by command.


    sudo apt-get install dovecot-common dovecot-imapd dovecot-pop3d

Edit dovevot.conf

Edit dovevot.conf by command.


    sudo nano /etc/dovecot/dovecot.conf

The Find messages. Then remove the # mark in front of the message below out.

    listen = * protocols = imap imaps pop3 pop3s disable_plaintext_auth = no mail_location = mbox:~/mail:INBOX=/var/mail/%u login_executable = /usr/lib/dovecot/imap-login mail_executable = /usr/lib/dovecot/imap

Save and restart service postfix, dovecot by command.

    sudo /etc/init.d/postfix restart sudo /etc/init.d/dovecot restart

Test run by telnet command.

    telnet localhost 110 for pop3 (command quit for telnet) telnet localhost 143 for imap (commande 3 logout for telnet)

Test send mail.

telnet localhost 25 ---->(Enter)
mail from: imodclub@imodclub.com ---> (command email send)
rcpt to : sittinan@imodclub.com ----> (command email receive)
data ----->(Enter)
message!
(end for press key .)
If the message displayed ok, it passed.



Install Squirrelmail

Install Squirrelmail command.


    apt-get install squirrelmail squirrelmail-decode php5

Configure squirrelmail


    perl /usr/share/squirrelmail/config/conf.pl

Welcome to configuretion.
1. press 2 for sub menu.
2. press 1 for edit Domain : yourdomain.com press enter.
3. press A for edit update IMAP Settings : yourdomain.com
4. press B for edit update SMTP Settings : yourdomain.com
5. press r to return main menu.
10 press 10 for edit Languages : set languages for you.
11 press s for save data.
12 press q for quit.

copy /etc/squirrelmail/apache.conf goto /etc/apache2/conf.d by command.

    sudo cp /etc/squirrelmail/apache.conf goto /etc/apache2/conf.d

edit config.php by command.


    sudo nano /usr/share/squirrelmail/config/config.php

Search line command $useSendmail = false; change to $useSendmail = ture;

restart apache2 sudo /etc/init.d/apache2 restart

Open web browser URL http://www.yourhost.com/squirrelmail


ความคิดเห็น

Boxcarpilot กล่าวว่า
Hello, I dont understand this part:

And add the command below. relay_domains = $mydestination imodclub.com

i cant see any "relay_domains =" Line
shadowrecord กล่าวว่า
@Boxcapilot
Add the last line. on file /etc/postfix/main.cf and save and reload.

relay_domains = $mydestination yourdomain

โพสต์ยอดนิยมจากบล็อกนี้

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC เมนบอร์ดเป็นแผงวงจรหลักที่สำคัญที่สุดของคอมพิวเตอร์ ดังนั้น จึงควรรู้จักตำแหน่งของอุปกรณ์ต่างบนเมนบอร์ดเสียก่อน จึงจะสามารถประกอบเครื่องคอมพิวเตอร์ได้ อุปกรณ์หลักที่สำคัญก็มีช็อกเกตสำหรับติดตั้งซีพียู, ช็อกเกตแรม และซิปเซตที่ทำหน้าที่ควบคุมอุปกรณ์ทั้งหมด หัวต่อและสล็อตสำหรับติดตั้งอุปกรณ์และการ์ดต่างๆ รวมไปถึงหัวต่อกับอุปกรณ์ภายนอกที่ต่อออกทางด้านหลังเครื่อง อุปกรณ์ที่ติดตั้งบนเมนบอร์ดได้แก่  1. ช็อกเกตซีพียู (CPU Socket) ช็อกเกตซีพียู เป็นตำแหน่งติดตั้งซีพียู โดยรูปแบบของช็อกเกตจะแตกต่างกันไปตามยี่ห้อและรุ่นของซีพียู การซื้อเมนบอร์ดจะต้องตรวจสอบว่าต้องการใช้กับซีพียูยี่ห้อใดและรุ่นไหน หากซื้อซีพียูที่มีช็อกเกตไม่ตรงกับเมนบอร์ดจะไม่สามารถใช้งานได้ ปัจจุบันจะมีช็อกเกตที่ใช้งานบนเมนบอร์ดคือ Intel LGA 775,  Intel LGA 1150, Intel LGA 1151, Intel LGA1155 และ Intel LGA 2066 ใช้สำหรับซีพียู Intel ทั้งหมด แต่ต้องดูด้วยว่า ซีพียู อินเทลใดใช้ช็อกเกตเท่าไหร่ ส่วน AMD AM4, AMD sTRX4 และ AMD TR4 จะใช้สำหรับ CPU AMD เท่านั้นซึ่งก็เหมือนกับอินเทล ซี

รวม Code Debug Card Mainboard

รวม Code Debug Card Mainboard สำหรับช่างซ่อมคอมมือใหม่ที่มีเครื่องมือ Debug Card เป็นตัวช่วยแล้ว บางครั้งอาจจะไม่รู้ว่าค่า Error Code นั้นคืออะไร ผมได้สืบหาข้อมูลและเขียนเพื่อเตือนความจำของตนเองไว้ เพราะไม่ค่อยได้ใช้ตัว Debug Card นี้เช่นกัน นานๆครั้งมาใช้นั้น ค่อนข้างที่จะค้นหาข้อมูลอย่างลำบากเช่นกัน ผมจึงได้รวบรวมข้อมูลมาจากเว็บที่หาข้อมูลได้ ขอขอบคุณเจ้าของข้อมูลด้วยครับ CODE : ความหมาย 00 : ไม่มีสัญญาณให้เช็ค CPU หรือลองหา CPU ตัวใหม่มาเปลี่ยนดูครับ 01 : CPU TEST รอบที่ 1 02 : CPU TEST รอบที่ 2 04 : TEST Memory รีเฟรช ของอุปกรณ์ ต่าง ๆ  05 : Key board controller อาจมีปัญหา 07 : BIOS battery อาจจะหมด 0B : TEST cmos checksum 0D : เช็ค VGA CARD Interface C0 : ทดสอบหน่วยความจำและ slot(ลองฉีด สเปรย์สารพัดพิษดูครับ) 0E : เช็คหน่วยความจำ VGA(ลองหาตัวใหม่มาเปลี่ยนดูครับ)  11 :อาจมีปัญหาที่ DMA controller 41 : ให้ตรวจสอบ FLOPPY Drive 42 : .ให้ตรวจสอบ HARD DISK 43 : ค้นหาและตรวจสอบ serial และ parallel port 45 : ให้เช็ค Mainboard ว่าเข้ากับ CPU ไ

พอร์ตเชื่อมต่อต่างๆบนเมนบอร์ด

พอร์ตเชื่อมต่อต่างๆบนเมนบอร์ด พอร์ตเชื่อมต่อแบบต่างๆ คือ หัวต่อที่ใช้เชื่อมต่อกับอุปกรณ์ภายนอก เช่น คีย์บอร์ด เมาส์ และเครื่องพิมพ์ สายแลน เป็นต้น ลักษณะของหัวต่อแต่ละแบบจะมีมาตรฐานและแตกต่างกันออกไปอยู่แล้ว จึงไม่ต้องกังวลว่าจะเสียบผิดรูปแบบ เพราะแต่ละหัวต่อจะมีรูปแบบไม่เหมือนกัน พอร์ตเชื่อมต่อต่างๆบนเมนบอร์ด มีดังนี้ 1. หัวต่อคีย์บอร์ดหรือเมาส์แบบ PS2 จะใช้คีย์บอร์ดก็ได้ หรือเมาส์ก็ได้ ปัจจุบันหัวต่อ PS2 ได้เลิกใช้งานไปแล้ว 2. หัวต่อ USB 2.0 ใช้สำหรับเชื่อมต่อ อุปกรณ์ต่างๆที่ใช้สาย USB ต่าง ความเร็วในการโอนถ่ายข้อมูล USB 2.0 นี้มีมากถึง 480 Mbps  3. หัวต่อจอภาพ แบบ Display port ใช้สำหรับเชื่อมต่อจอภาพที่เป็นประเภท Display port ส่งข้อมูลภาพได้สูง เหมาะสำหรับทำ Multi Display หรือการเชื่อมต่อหลายๆจอภาพ 4. หัวต่อจอภาพแบบ HDMI ปัจจุบัน (ปี 2020) เริ่มมีการใช้มากขึ้น เนื่องจากส่งข้อมูลความละเอียดภาพได้มากถึง 4K และอนาคตจะมีการพัฒนาเพิ่มขึ้นอีก 5. หัวต่อจอภาพแบบ DVI เป็นการพัฒนาการส่งออกจอภาพต่อจาก VGA เป็นช่วงเวลานึง ปัจจุบันจะไม่ค่อยมีใช้แล้ว 6. หัวต่อจอภาพแบบ VGA ใช