Created
November 6, 2012 18:07
-
-
Save chetan/4026454 to your computer and use it in GitHub Desktop.
the remanants of a long dead jspwiki...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jspwiki$ ls -l SandBox.txt | |
-rwxr--r-- 1 ubuntu ubuntu 2263 Jun 22 2004 SandBox.txt | |
jspwiki$ cat SandBox.txt | |
A nice and simple virtual mail setup for linux. The process below describes steps required using Gentoo linux. | |
Component's used: | |
- [Postfix|http://www.postfix.org] | |
- [Cyrus SASL|http://asg.web.cmu.edu/sasl/] | |
- [Courier IMAP|http://www.inter7.com/index.php?page=courierimap] | |
- [MailScanner|http://www.sng.ecs.soton.ac.uk/mailscanner] | |
- [ClamAV|http://www.clamav.net] | |
- [SpamAssassin|http://www.spamassassin.org/] | |
- [Vipul's Razor|http://razor.sourceforge.net/] | |
# Set your USE flags so they include the following:%%% | |
<code>berkdb maildir mysql pam sasl ssl</code> | |
# Uninstall your existing MTA if one exists. If you installed _vixie-cron_ earlier you may have _ssmtp_ installed, so uninstall it now.%%% | |
<code># emerge -C ssmtp</code> | |
# Install _Postfix_.%%% | |
<code># emerge postfix %%% newaliases</code> | |
# Setup the chroot jail for Postfix using the [script|http://www.pixelcop.net/files/wiki/mail/mkchroot.sh] located in /examples in the source tarball. %%% | |
<code># cd /var/spool/postfix %%% # mv /tmp/mkchroot.sh . %%% # chmod 755 mkchroot.sh %%% # ./mkchroot.sh</code>%%% | |
If you get this error <code>cp: cannot stat `/etc/host.conf': No such file or directory</code> you can safely ignore it. | |
# Configure Postfix. Use [this main.cf|http://www.pixelcop.net/files/wiki/mail/main.cf] as a base and edit the values in angle brackets. This configuration is set for use with [mysql|http://www.pixelcop.net/files/wiki/mail/mysql/] & mailscanner. | |
# Install Cyrus SASL. We're not using it's built-in MySQL features so we leave that out: %%% | |
<code># USE="-mysql" emerge cyrus-sasl</code> | |
# Configure Cyrus SASL. edit _/etc/sasl2/smtpd.conf_ to look like the following: %%% | |
<code>pwcheck_method: saslauthd %%% mech_list: LOGIN PLAIN</code> | |
# Install Courier IMAP. %%% | |
<code># emerge courier-imap</code> | |
# Configure Courier IMAP. | |
<code># cd /etc/courier-imap | |
// If you want to use the ssl capabilities of courier-imap or pop3, | |
// you'll need to create certs for this purpose. | |
// This step is recommended. If you do not want to use ssl, skip this step. | |
# nano -w pop3d.cnf | |
# nano -w imapd.cnf | |
// Change the C, ST, L, CN, and email parameters to match your server. | |
# mkpop3dcert | |
# mkimapdcert</code> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment