virtual_users_and_domains_with_postfix__courier__mysql_and_squirrelmail__ubuntu_8_04_lts__-_page_5___howtoforge_-_linux_howtos_and_tutorials...
TRANSCRIPT
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 1/18
Virtualization Poll
Options For This Howto
VMware Images:
V irtual Users A nd
Domains With
Postfix, Courier,
MySQL And
SquirrelMail
(Ubuntu 8.04
LTS) (524 .9 MB)
(05/15/2008)
V Mware Image
Import Guide
Lis t of all V Mware
Images
Free Support
Paid Support
NavigationHowtos
Linux
CentOS
Debian
Fedora
Kernel
Mandriva
PCLinuxOS
SuSE
Ubuntu
ApacheBackup
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
1 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 2/18
C ontrol Panels
DNS
Desktop
Email
A nti-Spam/Virus
Postfix
Procmail
Sendmail
FT P
High-Availability
Lighttpd
Monitoring
MySQL
Programming
C/C++
PHP
Samba
Security
A nti-Spam/Virus
V irtualization
Other
FreeBSD
Commercial
Mini-Howtos
Forums
C ontribute
Subscription
Login
Site Map/RSS Feeds
User loginUsername:
Password:
Remember Me?
C reate a new acc ount
Reques t new password
Ads by Google
Learn PHP Fast
Linux Tutorial
Export Query
MS SQL Export
Who's online
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
2 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 3/18
There are currently 9 users and 2759 guests online.
HowtoForge ForumsSell C vv Good and
fresh, please
purchase my :X
sell C vv Good and
fresh, please
purchase my :X
how to run
inotifywait
background
Restarting OpenBSD
Secure Shell
server sshdLinux ldap bind
windows ad
Ldap from windows
to linux
postfix/squirrelma
il with plugin ...
Godaddy and
Nameservers
How to Run a V ideo
at the start
unattended?
Local Tes ting
Server Setup
NewsDis tro Review: O penSUSE 1 1.2
KDE C ommunity Forums A nnounce the C ontinuation of Klass room
DRM C hange Continues T o Cause D ebate
The Perfect Desktop - Fedora 12 i68 6 (GNO ME )
Stream music wirelessely using PulseA udio server
Mus ic A lbum C overs And P icture Previews A s Folder Thumbnails In Nautilus
Linux Mint 8 final released
Finding files and documents with Recoll
When Open Source M eets C losed Minds
Strange Ideas A bout Freedom of Speech
more
Recent commentsboot problem after install php5 pakage
14 hours 5 3 min ago
Thanks man15 hours 1 3 s ec ago
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
3 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 4/18
squiremail not working
15 hours 2 6 min ago
Re: Security consideration - DN S
19 hours 8 min ago
Re: Chill ifire Hots pot solution - Run one hotspot or an entir
19 hours 2 7 min ago
openvz
22 hours 3 3 min ago
problems with pam
1 day 5 hours ago
Re: When I ins talled and started
1 day 15 hours ago
Re: subversion tutoria;
2 days 3 hours ago
thanks everything woked2 days 3 hours ago
Newsletter
Subscribe to
HowtoForge
Newsletter
and s tay informed
about our lates t
HO WTO s and
projects.
enter email address
(To unsubscribe
from our news lette r,
visit this link.)
Syndicate
HowtoForge Feed for Facebook"Facebook" is a registered trademark of Facebook, Inc. All rights reserved.
English | Deutsch | Site Map/RSS Feeds | Advertise
You are here: Home Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS) Virtual Users And
DTS Distributor Europe
Server upgrade w ithout RamDisk
150.000 IOPS for under 30.000www.capacityinnovations.com
Polyhedra Database
In-memory embedded database for
fault tolerant/embedded appswww.Enea.com
Free SSIS Extra Tasks
Free SSIS tasks and components
sFTP,Zip,Data Validation,Upsert,etcwww.pragmaticworks.com
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
4 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 5/18
tweet
0
Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS) - Page 5
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu
8.04 LTS) - Page 5
Do you like HowtoForge? Please consider supporting us by becoming a
subscriber.
Submitted by falko (Contact Author) (Forums) on Tue, 2008-05-20 17:25. ::
SquirrelMail is a webmail interface that will let
your use rs s end and receive emails in a
browser. This c hapter shows how to install it and adjus t
it to our setup so that users c an even change their
email ac count pas sword from the SquirrelMail interface.
To instal l SquirrelMa il, we run:
apt-get install squirrelmail php-pear
Next we copy the A pache c onfiguration that comes with
the SquirrelM ail package to the /etc/apache2/conf.d
directory and restart Apac he:
cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf/etc/init.d/apache2 restart
SquirrelMail comes with some pre-installed plugins, unfortunately none of them is capable of letting
us c hange our email password in our MySQ L database. But there's the C hange SQ L P ass word plugin
which we can install manually:
The plugin depends on the Pear-DB pac kage so we install it:
pear install DB
Then we install the Change SQL Passwordplugin itself:
cd /usr/share/squirrelmail/pluginswget http://www.squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Fchange_sqlpass-3.3-1.2.tar.gztar xvfz change_sqlpass-3.3-1.2.tar.gzcd change_sqlpasscp config.php.sample config.php
Now we must edi t config.php and adjust it to our setup. Pleas e adjust the $csp_dsn,
$lookup_password_query, $password_update_queries, $password_encryption, $csp_salt_static, and
$csp_delimitervariables as follows and comment out $csp_salt_query:
vi config.php
Sendmail Anti Spam
waiting and no m ore spamwww.ArmResearch.com
SQL Server Data Modeling
Graph ically des ign your 2005/2008database. Download SSDataWorks
now!
Ubuntu Crash
Free Answers to Your Linux
Com puter Questions. R egister For
Free Today!
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
5 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 6/18
[...]$csp_dsn = 'mysql://mail_admin:mail_admin_password@loc
[...]$lookup_password_query = 'SELECT count(*) FROM users W[...]$password_update_queries = array('UPDATE users SET pas[...]$password_encryption = 'MYSQLENCRYPT';[...]$csp_salt_static = 'LEFT(password, 2)';[...]//$csp_salt_query = 'SELECT salt FROM users WHERE user[...]$csp_delimiter = '@';
The complete file looks as follows:
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 7/18
tar xvfz compatibility-2.0.11-1.0.tar.gz
Now we must go into the SquirrelMai l configuration and tell SquirrelM ail that we use C ourier as our
PO P3 and IM A P server and enable the Change SQL Passwordand the Compatibilityplugins:
/usr/sbin/squirrelmail-configure
You'll see the following menu. Navigate through it as indic ated:
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color onS Save data
Q Quit
Command >>
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 8/18
exchange = Microsoft Exchange IMAP server
hmailserver = hMailServer
macosx = Mac OS X Mailserver
mercury32 = Mercury/32uw = University of Washington's IMAP server
quit = Do not change anything
Command >>
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge-li 9/18
Available Plugins:
1. abook_take
2. administrator
3. bug_report4. calendar
5. change_sqlpass
6. compatibility
7. delete_move_next
8. demo
9. filters
10. fortune
11. info
12. listcommands
13. mail_fetch
14. message_details
15. newmail16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >>
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 10/18
17. spamcop
18. squirrelspell
19. test
20. translate
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >>>
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 11/18
1. compatibility
2. change_sqlpass
Available Plugins:3. abook_take
4. administrator
5. bug_report
6. calendar
7. delete_move_next
8. demo
9. filters
10. fortune
11. info
12. listcommands
13. mail_fetch
14. message_details15. newmail
16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> S
Data saved in config.php
Press enter to continue...
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 12/18
13. mail_fetch
14. message_details
15. newmail
16. sent_subfolders17. spamcop
18. squirrelspell
19. test
20. translate
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >>
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 13/18
To c hange your pass word, go to Options and then selec t Change Password:
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
13 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 14/18
Type in your current pass word and then your new password twice:
SquirrelMail will tell you if the pass word has been changed succ es sfully:
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
14 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 15/18
8.04 LT S) - P age 4
Tutorial: IS P -s tyle Email Service with Debian-Sarge and Pos tfix 2.1: http://workaround.org/articles
/ispmail-sarge/
P ostfix + Q uota: http://vhcs.net/new/modules/newbb/viewtopic.php?topic_id=3496&forum=17
Mail P ass words Encrypted using s aslauthd: http://www.syscp.de/docs/public/contrib/cryptedmailpws
Postfix MTA : http://www.pos tfix .org/
P ostfix Quota Patch: http://web.onda.com.br/nadal/
phpMyA dmin: http://www.phpmyadmin.net/
SquirrelMail: http://www.squirrelmail.org/
Ubuntu: http://www.ubuntu.com/
This page is licens ed under a C reative Commons Lic ense.
add comment | view as pdf| print: this | al l page(s) |
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
15 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 16/18
V irtual Us ers A nd Domains With Pos tfix, Courier, MySQ L A nd SquirrelMail (Mandriva 20 08 .1)
V irtual Users A nd Domains With Postfix, C ourier And MySQ L (CentO S 5 .1)
V irtual Users A nd Domains With Pos tfix, C ourier And MySQ L (Ubuntu 7.10 )V irtual Users A nd Domains With Pos tfix, C ourier And MySQ L (Fedora 8)
Please do not use the comment function to ask for help! I f you need help, please use ourforum.
Comments will be publis hed after adminis trator approval.
errorSubmitted by ash (not registered) on Thu, 2009-01-15 15:41.
Hello:
i did all steps and as result i found
ERROR: ERROR: Connection dropped by IMAP server.
and my server wont relay no more . so how i can cancel all modifications ?
reply | view as pdf
Re: errorSubmitted by Vhinz (not registered) on Mon, 2009-03-30 11:20.
Getting the same error posted last January...This happens when I logged without the domain (Name: user)
ERROR:
ERROR: Connection dropped by IMAP server.
The error below is when I have used the user with @domain.tld ([email protected])
ERROR
Unknown user or password incorrect.
Go to the login page
reply | view as pdf
Re: Re: errorSubmitted by Anonymous (not registered) on Thu, 2009-04-02 18:34.
Did you send the welcome email to the account you're testing with?
Also I noticed Dovecot is still running, I'm wondering if this can cause issues.
reply | view as pdf
Create mailboxSubmitted by Anonymous (not registered) on Tue, 2008-10-14 15:13.
Dunno why but mailx doesn't send any email and any mailbox is created. Who can help me plz?
reply | view as pdf
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
16 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 17/18
how do i manange this thing?Submitted by Dmitry Sherman (not registered) on Wed, 2008-09-10 18:43.
Seems like the mysql structure is different from the default.
Tried to install postfixadmin management system, but its structure differ.
reply | view as pdf
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th
Howtos | Mini-Howtos | Forums | News | Search| Contribute | Subscription
Site Map/RSS Feeds | Advertise | Contact | Disclaimer | Imprint
Copyright 2009 HowtoForge - Linux Howtos and Tutorials
All Rights Reserved.
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
17 of 18 11/30/09 12:06
-
8/7/2019 Virtual_Users_And_Domains_With_Postfix__Courier__MySQL_And_SquirrelMail__Ubuntu_8_04_LTS__-_Page_5___HowtoF
http:///reader/full/virtualusersanddomainswithpostfixcouriermysqlandsquirrelmailubuntu804lts-page5howtoforge- 18/18
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
18 of 18 11/30/09 12:06