<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=SquirrelMail%3A_Installation_%28en%29</id>
	<title>SquirrelMail: Installation (en) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=SquirrelMail%3A_Installation_%28en%29"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=SquirrelMail:_Installation_(en)&amp;action=history"/>
	<updated>2026-04-20T06:14:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=SquirrelMail:_Installation_(en)&amp;diff=71388&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot;Set up POP3, IMAP &amp; SMTP Server  ==Ubuntu 16.04==   apt-get install apache2 php7.0 php7.0-xmlrpc php7.0-mysql php7.0-gd php7.0-cli \  php7.0-curl mysql-client...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=SquirrelMail:_Installation_(en)&amp;diff=71388&amp;oldid=prev"/>
		<updated>2025-01-03T23:58:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Set up &lt;a href=&quot;/wiki/index.php?title=POP3&quot; title=&quot;POP3&quot;&gt;POP3&lt;/a&gt;, &lt;a href=&quot;/wiki/index.php?title=IMAP&quot; title=&quot;IMAP&quot;&gt;IMAP&lt;/a&gt; &amp;amp; &lt;a href=&quot;/wiki/index.php?title=SMTP&quot; title=&quot;SMTP&quot;&gt;SMTP&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Server&quot; title=&quot;Server&quot;&gt;Server&lt;/a&gt;  ==Ubuntu 16.04==   apt-get install apache2 php7.0 php7.0-xmlrpc php7.0-mysql php7.0-gd php7.0-cli \  php7.0-curl mysql-client...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Set up [[POP3]], [[IMAP]] &amp;amp; [[SMTP]] [[Server]]&lt;br /&gt;
&lt;br /&gt;
==Ubuntu 16.04==&lt;br /&gt;
&lt;br /&gt;
 apt-get install apache2 php7.0 php7.0-xmlrpc php7.0-mysql php7.0-gd php7.0-cli \&lt;br /&gt;
 php7.0-curl mysql-client mysql-server dovecot-common dovecot-imapd \&lt;br /&gt;
 dovecot-pop3d postfix squirrelmail squirrelmail-decode&lt;br /&gt;
&lt;br /&gt;
Inform Apache about the presence of SquirrelMail:&lt;br /&gt;
&lt;br /&gt;
 cp /etc/squirrelmail/apache.conf /etc/apache2/conf-enabled/squirrelmail.conf&lt;br /&gt;
&lt;br /&gt;
==Older Ubuntu==&lt;br /&gt;
&lt;br /&gt;
 sudo locale-gen id_ID.UTF-8&lt;br /&gt;
 &lt;br /&gt;
 apt-get install apache2 php5 php5-xmlrpc php5-mysql php5-gd php5-cli \&lt;br /&gt;
 php5-curl mysql-client mysql-server dovecot-common dovecot-imapd \&lt;br /&gt;
 dovecot-pop3d postfix squirrelmail squirrelmail-decode&lt;br /&gt;
&lt;br /&gt;
Ensure Dovecot supports [[imap]], usually the default is okay:&lt;br /&gt;
&lt;br /&gt;
 vi /etc/dovecot/dovecot.conf&lt;br /&gt;
 &lt;br /&gt;
 protocols = imap pop3&lt;br /&gt;
&lt;br /&gt;
Inform [[Apache]] about the presence of [[Squirrelmail]]:&lt;br /&gt;
&lt;br /&gt;
 cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf&lt;br /&gt;
&lt;br /&gt;
For Ubuntu 14.04 use:&lt;br /&gt;
&lt;br /&gt;
 cp /etc/squirrelmail/apache.conf /etc/apache2/conf-enabled/squirrelmail.conf&lt;br /&gt;
&lt;br /&gt;
==SquirrelMail Configuration==&lt;br /&gt;
&lt;br /&gt;
Configure [[Domain]] [[Squirrelmail]]:&lt;br /&gt;
&lt;br /&gt;
 /usr/sbin/squirrelmail-configure&lt;br /&gt;
 &lt;br /&gt;
 2 -&amp;gt; 1 -&amp;gt; domain.id -&amp;gt; S -&amp;gt; Q&lt;br /&gt;
&lt;br /&gt;
For Ubuntu version 11.04, edit [[Dovecot]] configuration:&lt;br /&gt;
&lt;br /&gt;
 vi /etc/dovecot/dovecot.conf&lt;br /&gt;
 &lt;br /&gt;
 mail_location = mbox:~/mail:INBOX=/var/mail/%u&lt;br /&gt;
&lt;br /&gt;
For Ubuntu version 11.10 and above, edit [[Dovecot]] configuration:&lt;br /&gt;
&lt;br /&gt;
 vi /etc/dovecot/conf.d/10-mail.conf&lt;br /&gt;
 &lt;br /&gt;
 mail_location = mbox:~/mail:INBOX=/var/mail/%u&lt;br /&gt;
&lt;br /&gt;
Restart [[Server]]:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/dovecot restart&lt;br /&gt;
 /etc/init.d/apache2 restart&lt;br /&gt;
 /etc/init.d/postfix restart&lt;br /&gt;
&lt;br /&gt;
Restart [[Server]] in Ubuntu 14.04:&lt;br /&gt;
&lt;br /&gt;
 service dovecot restart&lt;br /&gt;
 /etc/init.d/apache2 restart&lt;br /&gt;
 /etc/init.d/postfix restart&lt;br /&gt;
&lt;br /&gt;
[[Webmail]] can be accessed through:&lt;br /&gt;
&lt;br /&gt;
 http://ip-address-server/squirrelmail&lt;br /&gt;
&lt;br /&gt;
==SMTP Postfix Configuration==&lt;br /&gt;
&lt;br /&gt;
Ideally, the [[SMTP]] [[Server]] [[Postfix]] should be informed about the domain, relayhost, and local IP:&lt;br /&gt;
&lt;br /&gt;
 vi /etc/postfix/main.cf&lt;br /&gt;
 &lt;br /&gt;
 mydestination = school, localhost.localdomain, localhost, &amp;#039;&amp;#039;&amp;#039;school.sch.id&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 relayhost = &amp;#039;&amp;#039;&amp;#039;smtp.telkom.net&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 &amp;#039;&amp;#039;&amp;#039;192.168.0.0/16&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Fetching email to INBOX==&lt;br /&gt;
&lt;br /&gt;
Send email using telnet to port 25:&lt;br /&gt;
&lt;br /&gt;
 telnet localhost 25&lt;br /&gt;
 &lt;br /&gt;
 helo test.com&lt;br /&gt;
 mail from: &amp;lt;test@test.com&amp;gt;&lt;br /&gt;
 rcpt to: &amp;lt;user@domain.com&amp;gt;&lt;br /&gt;
 data&lt;br /&gt;
 From: &amp;lt;test@test.com&amp;gt;&lt;br /&gt;
 To: &amp;lt;user@domain.com&amp;gt;&lt;br /&gt;
 Subject: test&lt;br /&gt;
 &lt;br /&gt;
 test&lt;br /&gt;
 &lt;br /&gt;
 .&lt;br /&gt;
 &lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
Replace user@domain.com with the email you created. For example, victim.com:&lt;br /&gt;
&lt;br /&gt;
 telnet localhost 25&lt;br /&gt;
 &lt;br /&gt;
 helo test.com&lt;br /&gt;
 mail from: &amp;lt;test@test.com&amp;gt;&lt;br /&gt;
 rcpt to: &amp;lt;onno@victim.com&amp;gt;&lt;br /&gt;
 data&lt;br /&gt;
 From: &amp;lt;test@test.com&amp;gt;&lt;br /&gt;
 To: &amp;lt;onno@victim.com&amp;gt;&lt;br /&gt;
 Subject: test&lt;br /&gt;
 &lt;br /&gt;
 test &lt;br /&gt;
 &lt;br /&gt;
 .&lt;br /&gt;
 &lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
==Error==&lt;br /&gt;
&lt;br /&gt;
===Error Syslog===&lt;br /&gt;
&lt;br /&gt;
In Ubuntu 11.10, if you encounter an error like:&lt;br /&gt;
&lt;br /&gt;
 ERROR: Could not complete request.&lt;br /&gt;
 Query: SELECT &amp;quot;INBOX&amp;quot;&lt;br /&gt;
 Reason Given: [SERVERBUG] Internal error occurred. Refer to server log for more information. [2012-03-12 11:21:18]&lt;br /&gt;
&lt;br /&gt;
Possible cause:&lt;br /&gt;
&lt;br /&gt;
 syslog:Mar 12 11:21:18 ServerTIK dovecot: imap(username): Error: &lt;br /&gt;
 mkdir(/home/username/mail/.imap/INBOX) failed: Operation not permitted&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SOLUTION:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Perform:&lt;br /&gt;
&lt;br /&gt;
 apt-get install mailutils&lt;br /&gt;
 mail username&lt;br /&gt;
&lt;br /&gt;
For &amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039; do:&lt;br /&gt;
&lt;br /&gt;
 mkdir /home/username/mail&lt;br /&gt;
 mkdir /home/username/mail/.imap&lt;br /&gt;
 touch /home/username/mail/.imap/INBOX&lt;br /&gt;
 chown username.username /home/username/mail/&lt;br /&gt;
&lt;br /&gt;
===IPv6 Problem===&lt;br /&gt;
&lt;br /&gt;
If there is an issue with IPv6 add to main.cf:&lt;br /&gt;
&lt;br /&gt;
 inet_protocols = ipv4&lt;br /&gt;
&lt;br /&gt;
==Several Squirrelmail Screen Captures==&lt;br /&gt;
&lt;br /&gt;
[[Image:Squirrelmail1.jpg|center|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Squirrelmail2.jpg|center|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Squirrelmail3.jpg|center|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Squirrelmail4.jpg|center|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Squirrelmail5.jpg|center|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Squirrelmail6.jpg|center|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Squirrelmail7.jpg|center|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Squirrelmail8.jpg|center|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
* http://www.squirrelmail.org/plugins.php&lt;br /&gt;
* http://ubuntuforums.org/showthread.php?t=1149842 - User Self Registration&lt;br /&gt;
&lt;br /&gt;
==Interesting Links==&lt;br /&gt;
&lt;br /&gt;
* [[Linux: Adding User Account]]&lt;br /&gt;
* [[Dovecot Installation]]&lt;br /&gt;
* [[Postfix Installation]]&lt;br /&gt;
* [[Postfix: Configuring relayhost with Authentication]]&lt;br /&gt;
* [[Block Spam Using Postfix]]&lt;br /&gt;
* [[Linux Howto]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Linux]]&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>