Skip to content

Instantly share code, notes, and snippets.

@msimerson
Created December 15, 2015 04:16
Show Gist options
  • Save msimerson/df6710f2f4fcecb33a44 to your computer and use it in GitHub Desktop.
Save msimerson/df6710f2f4fcecb33a44 to your computer and use it in GitHub Desktop.
Mail Toaster 6 - sample output - provision-dspam
# sh provision-dspam.sh
mysql enabled
toaster host: imac27.simerson.net
toaster domain: simerson.net
shell: /bin/tcsh
safe name: stage
zroot/jails/base-10.2-RELEASE@p8 snapshot exists
*** stage jail cleanup ***
stopping jail stage (stage)
Stopping jails:.
stage: removed
*** stage jail filesystem setup ***
zfs clone zroot/jails/base-10.2-RELEASE@p8 zroot/jails/stage
mounting /usr/ports
no zroot/data/dspam to mount
sysrc -R /jails/stage hostname=dspam
hostname: base -> dspam
*** stage jail stage startup ***
Setting hostname: dspam.
Creating and/or trimming log files.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
32-bit compatibility ldconfig path: /usr/lib32
Clearing /tmp (X related).
Updating motd:.
Starting cron.
Mon Dec 14 20:13:40 PST 2015
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
*** installing dspam ***
pkg -j stage install -y dspam
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 14 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
dspam: 3.10.2_1
clamav: 0.98.7
libxml2: 2.9.3
unzoo: 4.4_2
arc: 5.21p
libltdl: 2.4.6
lha: 1.14i_6
arj: 3.10.22_4
curl: 7.44.0
postgresql93-client: 9.3.9
mysql56-client: 5.6.27
libedit: 3.1.20150325_1
perl5: 5.20.3_8
sqlite3: 3.8.11.1_1
The process will require 129 MiB more space.
24 MiB to be downloaded.
[dspam] Fetching dspam-3.10.2_1.txz: 100% 531 KiB 543.5kB/s 00:01
[dspam] Fetching clamav-0.98.7.txz: 100% 3 MiB 1.7MB/s 00:02
[dspam] Fetching libxml2-2.9.3.txz: 100% 790 KiB 808.7kB/s 00:01
[dspam] Fetching unzoo-4.4_2.txz: 100% 16 KiB 16.7kB/s 00:01
[dspam] Fetching arc-5.21p.txz: 100% 49 KiB 50.3kB/s 00:01
[dspam] Fetching libltdl-2.4.6.txz: 100% 36 KiB 36.5kB/s 00:01
[dspam] Fetching lha-1.14i_6.txz: 100% 34 KiB 34.9kB/s 00:01
[dspam] Fetching arj-3.10.22_4.txz: 100% 223 KiB 228.0kB/s 00:01
[dspam] Fetching curl-7.44.0.txz: 100% 1 MiB 1.4MB/s 00:01
[dspam] Fetching postgresql93-client-9.3.9.txz: 100% 2 MiB 1.0MB/s 00:02
[dspam] Fetching mysql56-client-5.6.27.txz: 100% 2 MiB 2.1MB/s 00:01
[dspam] Fetching libedit-3.1.20150325_1.txz: 100% 121 KiB 123.7kB/s 00:01
[dspam] Fetching perl5-5.20.3_8.txz: 100% 13 MiB 2.0MB/s 00:07
[dspam] Fetching sqlite3-3.8.11.1_1.txz: 100% 581 KiB 595.0kB/s 00:01
Checking integrity... done (0 conflicting)
[dspam] [1/14] Installing libxml2-2.9.3...
[dspam] [1/14] Extracting libxml2-2.9.3: 100%
[dspam] [2/14] Installing unzoo-4.4_2...
[dspam] [2/14] Extracting unzoo-4.4_2: 100%
[dspam] [3/14] Installing arc-5.21p...
[dspam] [3/14] Extracting arc-5.21p: 100%
[dspam] [4/14] Installing libltdl-2.4.6...
[dspam] [4/14] Extracting libltdl-2.4.6: 100%
[dspam] [5/14] Installing lha-1.14i_6...
[dspam] [5/14] Extracting lha-1.14i_6: 100%
[dspam] [6/14] Installing arj-3.10.22_4...
[dspam] [6/14] Extracting arj-3.10.22_4: 100%
[dspam] [7/14] Installing curl-7.44.0...
[dspam] [7/14] Extracting curl-7.44.0: 100%
[dspam] [8/14] Installing libedit-3.1.20150325_1...
[dspam] [8/14] Extracting libedit-3.1.20150325_1: 100%
[dspam] [9/14] Installing clamav-0.98.7...
===> Creating users and/or groups.
Creating group 'clamav' with gid '106'.
Using existing group 'mail'.
Creating user 'clamav' with uid '106'.
Adding user 'clamav' to group 'mail'.
[dspam] [9/14] Extracting clamav-0.98.7: 100%
[dspam] [10/14] Installing postgresql93-client-9.3.9...
[dspam] [10/14] Extracting postgresql93-client-9.3.9: 100%
[dspam] [11/14] Installing mysql56-client-5.6.27...
[dspam] [11/14] Extracting mysql56-client-5.6.27: 100%
[dspam] [12/14] Installing perl5-5.20.3_8...
[dspam] [12/14] Extracting perl5-5.20.3_8: 100%
[dspam] [13/14] Installing sqlite3-3.8.11.1_1...
[dspam] [13/14] Extracting sqlite3-3.8.11.1_1: 100%
[dspam] [14/14] Installing dspam-3.10.2_1...
[dspam] [14/14] Extracting dspam-3.10.2_1: 100%
Message from postgresql93-client-9.3.9:
The PostgreSQL port has a collection of "side orders":
postgresql-docs
For all of the html documentation
p5-Pg
A perl5 API for client access to PostgreSQL databases.
postgresql-tcltk
If you want tcl/tk client support.
postgresql-jdbc
For Java JDBC support.
postgresql-odbc
For client access from unix applications using ODBC as access
method. Not needed to access unix PostgreSQL servers from Win32
using ODBC. See below.
ruby-postgres, py-PyGreSQL
For client access to PostgreSQL databases using the ruby & python
languages.
postgresql-plperl, postgresql-pltcl & postgresql-plruby
For using perl5, tcl & ruby as procedural languages.
postgresql-contrib
Lots of contributed utilities, postgresql functions and
datatypes. There you find pg_standby, pgcrypto and many other cool
things.
etc...
Message from mysql56-client-5.6.27:
* * * * * * * * * * * * * * * * * * * * * * * *
Please be aware the database client is vulnerable
to CVE-2015-3152 - SSL Downgrade aka "BACKRONYM".
You may find more information at the following URL:
http://www.vuxml.org/freebsd/36bd352d-299b-11e5-86ff-14dae9d210b8.html
Although this database client is not listed as
"affected", it is vulnerable and will not be
receiving a patch. Please take note of this when
deploying this software.
* * * * * * * * * * * * * * * * * * * * * * * *
Message from perl5-5.20.3_8:
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:
#!/usr/local/bin/perl
or
#!/usr/bin/env perl
The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
Message from dspam-3.10.2_1:
---------------------------------------------------------------------------
To enable the dspam deamon set dspam_enable="YES" in:
/etc/rc.conf
Additional setup instructions can be found at:
/usr/local/share/doc/dspam
/usr/local/share/examples/dspam
---------------------------------------------------------------------------
*** configuring dspam ***
*** enabling dspam MySQL ***
dspam db exists
preserving password
MySQLServer 172.16.15.4
MySQLUser dspam
MySQLPass 759f4f52dc92cf0468dcf5b982b075a550ec
MySQLDb dspam
*** starting dspam ***
sysrc -R /jails/stage dspam_enable=YES
dspam_enable: -> YES
jexec stage service dspam start
Starting dspam.
*** testing dspam ***
root dspam 19330 6 tcp4 172.16.15.254:24 *:*
it worked
*** promoting jail dspam ***
stopping jail stage (stage)
Stopping jails: stage.
stage: removed
nameserver 172.16.15.3
unmounting /jails/stage/usr/ports
unmounting /jails/stage/dev
clearing pkg cache
zfs rename zroot/jails/stage zroot/jails/dspam.ready
cannot unmount '/jails/stage': Device busy
waiting for ZFS filesystem to quiet (0)
cannot unmount '/jails/stage': Device busy
waiting for ZFS filesystem to quiet (1)
cannot unmount '/jails/stage': Device busy
waiting for ZFS filesystem to quiet (2)
cannot unmount '/jails/stage': Device busy
waiting for ZFS filesystem to quiet (3)
cannot unmount '/jails/stage': Device busy
waiting for ZFS filesystem to quiet (4)
cannot unmount '/jails/stage': Device busy
waiting for ZFS filesystem to quiet (5)
cannot unmount '/jails/stage': Device busy
waiting for ZFS filesystem to quiet (6)
stopping jail dspam (dspam)
Stopping jails: dspamDec 14 20:14:45 dspam dspam[18729]: Daemon terminating on signal 15
Dec 14 20:14:45 dspam dspam[18729]: Received signal. Waiting for processing threads to exit.
Dec 14 20:14:45 dspam dspam[18729]: Processing threads terminated.
Dec 14 20:14:45 dspam dspam[18729]: Daemon process exiting
.
zroot/jails/dspam.last filesystem exists
zfs destroy zroot/jails/dspam.last
zroot/jails/dspam filesystem exists
zfs rename zroot/jails/dspam zroot/jails/dspam.last
cannot unmount '/jails/dspam': Device busy
waiting for ZFS filesystem to quiet (0)
cannot unmount '/jails/dspam': Device busy
waiting for ZFS filesystem to quiet (1)
cannot unmount '/jails/dspam': Device busy
waiting for ZFS filesystem to quiet (2)
cannot unmount '/jails/dspam': Device busy
waiting for ZFS filesystem to quiet (3)
cannot unmount '/jails/dspam': Device busy
waiting for ZFS filesystem to quiet (4)
cannot unmount '/jails/dspam': Device busy
waiting for ZFS filesystem to quiet (5)
cannot unmount '/jails/dspam': Device busy
trying to force rename (6)
waiting for ZFS filesystem to quiet (6)
zfs rename zroot/jails/dspam.ready zroot/jails/dspam
*** start jail dspam ***
Starting jails: dspam.
Success! A new 'dspam' jail is provisioned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment