Hi all..
I'm slowly trudging my way through with getting FreeBSD up and running on my server with lots of help from you all..
Anyway, I've got Sendmail running and checking for spam/virus care of one of the pages I ran across.. All is working well (except mail delivery which is going to mbox files instead of imap-- still working that one). Anyway, I want to put Sendmail (and friends) + Dovecot inside a jail. Honk suggested fetching the base image files from the FreeBSD ftp server instead of building the world as suggested in the handbook.. So, below are the steps I *think* I need to do in order to get Sendmail and friends working inside a jail:
Does that sound about right? Am I missing anything or is there a better way to achieve the same end results?
I'm slowly trudging my way through with getting FreeBSD up and running on my server with lots of help from you all..
Anyway, I've got Sendmail running and checking for spam/virus care of one of the pages I ran across.. All is working well (except mail delivery which is going to mbox files instead of imap-- still working that one). Anyway, I want to put Sendmail (and friends) + Dovecot inside a jail. Honk suggested fetching the base image files from the FreeBSD ftp server instead of building the world as suggested in the handbook.. So, below are the steps I *think* I need to do in order to get Sendmail and friends working inside a jail:
- mkdir /usr/jails/sendmail
- download base package from here
- setenv DESTDIR /usr/jails/sendmail
- issue "sh install.sh" to install the base package from above
- up host systems's /etc/rc.conf to enable the jail -- add the following:
Code:
jail_www_hostname="smtp.example.org" jail_www_ip="your.jail.ip.here" jail_www_rootdir="/usr/jails/sendmail" jail_www_devfs_enable="YES"
- Copy /etc/rc.conf to /usr/jails/sendmail/etc and update to remove any host rc items (setup of fxp0, jail enable stuff added above, disable ssh probably,etc)
- mount /usr/ports and /usr/src using devfs mounts inside the jails -- probably r/w for now
- start the jail using "/etc/rc.d/jails start sendmail"
- jexec jid tcsh (substitute jid with the id returned by "jls")
- follow the majority of the directions found here to install SpamAssasin, spamassassin-milter, ClamAV, config Sendmail, setup autoboot for these items within the jail -- make sure you update the jail's /etc/rc.conf not the hosts.
- Follow the steps found here to get DoveCot running in the jail
- Once all installation items are done, make sure to remove the /usr/src and /usr/ports devfs mounts from the jail.
- Make sure the host does not startup services (e.g. Sendmail) on its own as the Jail should be doing that now -- check w/ "netstat -a"
Does that sound about right? Am I missing anything or is there a better way to achieve the same end results?