REDHAT WEB MAIL Configuration করা

4
329

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apache On RedHat/CentOS/Fedora)

 

Configure DNS with domain name “abc.com” on the server.

step 1:

#  yum  install  sendmail*

#  yum  install  dovecot*

#  yum  install  httpd*

#  yum  install  squirrelmail*

step 2

Configure /etc/hosts file. In this scenario /etc/hosts file should look like this:

222.124.194.18    mail   unsri.ac.id

 

step 3

 

 

#  vi  /etc/mail/sendmail.mc

From:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl

To:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl FEATURE(`accept_unresolvable_domains')dnl

 

Save and quit.

step 4

Generate sendmail.cf from sendmail.mc :

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

#  service  sendmail  restart

step 5

Dovecot configuration :

#  vi  /etc/dovecot.conf

Look for the line :

# protocols = imap imaps pop3 pop3s

Uncomment by removing “#”.

Save and quit.

#  service  dovecot  restart.

step 6

Webserver configuration :

#  vi  /etc/httpd/conf/httpd.conf

Move at the end and set the server name :

ServerName www.abc.com*80

Save and quit.

#  Service  httpd  restart.

step 7

 

Squirrelmail configuration :

Move to :

#   cd  /usr/share/squirrelmail/config

#   ./conf.pl

• Now select option 1 (Organization Preferences).

Organization Name : YOUR_ORG_NAME

Organization Title : YOUR_ORG_NAME Webmail

Provider link : http://YOUR_ORG_SITE_ADDRESS

Provider name : YOUR_ORG_NAME

• Now select option 2 (Server Settings).

Domain : abc.com

Sendmail or SMTP : Sendmail

IMAP Server : localhost

IMAP Port : 143

Server software : uw

Delimiter : /

• Now select option 3 (Folder Settings).

Default Folder Prefix : mail/

Show Folder Prefix Option : true

Trash Folder : Trash

Sent Folder : Sent

Drafts Folder : Drafts

By default, move to trash : true

By default, move to sent : true

By default, save as draft : true

List Special Folders First : true

Show Special Folders Color : true

Auto Expunge : true

Default Sub. of INBOX : false

Show ‘Contain Sub.’ Option : true

Default Unseen Notify : 2

Default Unseen Type : 1

Auto Create Special Folders : true

Folder Delete Bypasses Trash : false

Enable /NoSelect folder fix : false

• Now select option 4 (General Settings).

Data Directory : /var/lib/squirrelmail/prefs/

Attachment Directory : /var/spool/squirrelmail/attach/

Directory Hash Level : 0

Default Left Size : 150

Usernames in Lowercase : false

Allow use of priority : true

Hide SM attributions : false

Allow use of receipts : true

Allow editing of identity : true

Allow editing of name : true

Remove username from header : false

Allow server thread sort : true

Allow server-side sorting : true

Allow server charset search : true

Enable UID support : true

PHP session name : SQMSESSID

Location base :

• Now choose option 8 (Plugins) and select the plugins that you wish to provide to your webmail users.

Save and quit.

not necessary  / step 7 .

Step 8:

. Open /etc/mail/access

222.124.194.0 RELAY

Save and exit and convert this text database into DB format by following command.

#cd   /etc/mail/

makemap hash access.db < access

 

Step 9:

 

Open /etc/mail/local-host-names and

add “abc.com”

Step 10:

All system users are mail users as well. Now create mail only users.

useradd -s /usr/sbin/smrsh mailuser1
useradd -s /usr/s2n/smrsh mailuser1

Also set their passwords:

passwd mailuser1
passwd mailuser2

 

Step 11:

Finally restart sendmail service.

service sendmail restart

Step 12:

Now, open your web browser and type :

http://[server-ip]/webmail

OR

http://www.abc.com/webmail

 

বিস্তারিত জানতে.
http://www.facebook.com/moshiurrahmanchowdhury

 

4 মন্তব্য

একটি উত্তর ত্যাগ