rmails 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.markdown +39 -8
- data/lib/rmails/version.rb +2 -1
- data/rmails.gemspec +2 -2
- data/system/dist/postfix/mailname.erb +1 -0
- data/system/dist/rmails/Gemfile.1 +1 -1
- data/system/dist/rmails/Gemfile.2 +1 -1
- data/system/recipes/02_setup_database.rb +2 -2
- data/system/recipes/03_setup_postfix.rb +10 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08a72a2314c87bc4826cad68bd25ee09437ee948
|
4
|
+
data.tar.gz: 6cfd3a107228ee47b84ff16d9d31ff62f63fbddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff0f20c67f7f8f2a9c2f7d490dac3e482783b38ecd365d9c0ea26d34048dbe3ac75eb42d24c5c9c2bd4a3903360b45ba75eadb376e6a56b0986f7a938c83525
|
7
|
+
data.tar.gz: 722bb29634c60373c36ea78524803cf06cfd392a959ec1f76d24dae5beefac9de553c196cfd0b1775a31f4a5e1b7894e769611d9d0fcd326c67b96a2dc497ef4
|
data/Gemfile
CHANGED
data/README.markdown
CHANGED
@@ -5,7 +5,7 @@ A Ruby on Rails application which automates an installation and initial configur
|
|
5
5
|
|
6
6
|
For Debian based servers. CentOs, Fedora and Gentoo support will be added in near future.
|
7
7
|
|
8
|
-
|
8
|
+
It is using fork of AutomateIt library [Automate-It](https://github.com/fanda/automateit).
|
9
9
|
|
10
10
|
|
11
11
|
Requirements
|
@@ -16,8 +16,6 @@ Tested with ruby 1.8.7 and 1.9.3.
|
|
16
16
|
|
17
17
|
Rubygems required.
|
18
18
|
|
19
|
-
Git required (for [AutomateIt dependency](https://github.com/fanda/automateit))
|
20
|
-
|
21
19
|
|
22
20
|
Project Maturity
|
23
21
|
----------------
|
@@ -33,23 +31,56 @@ Via rubygems.org:
|
|
33
31
|
gem install rmails
|
34
32
|
|
35
33
|
|
36
|
-
Using git
|
34
|
+
Using git (recommended as in development)
|
37
35
|
|
38
|
-
https://github.com/fanda/rmails.git
|
36
|
+
git clone https://github.com/fanda/rmails.git
|
39
37
|
|
40
38
|
|
41
39
|
Getting Started
|
42
40
|
---------------
|
43
41
|
|
44
|
-
|
42
|
+
### GIT (recommended)
|
43
|
+
|
44
|
+
|
45
|
+
Use git for installation:
|
46
|
+
|
47
|
+
git clone https://github.com/fanda/rmails.git
|
48
|
+
|
49
|
+
Then install all dependencies with bundler
|
45
50
|
|
46
|
-
rmails
|
51
|
+
cd rmails; bundle install
|
52
|
+
|
53
|
+
|
54
|
+
And finally run rake task as the root or with sudo
|
55
|
+
|
56
|
+
sudo rake system:install
|
47
57
|
|
48
58
|
|
49
59
|
to install all necessary programs, make initial configuration and start system services.
|
50
60
|
|
51
61
|
Web application for administration can be started with
|
52
62
|
|
53
|
-
rmails --start-app
|
63
|
+
bin/rmails --start-app
|
64
|
+
|
65
|
+
or
|
66
|
+
|
67
|
+
rails server
|
68
|
+
|
69
|
+
|
70
|
+
### Rubygems
|
71
|
+
|
72
|
+
There may still be some errors with install script, but *rmails* script would be added in your PATH, so all you have to do is:
|
73
|
+
|
74
|
+
sudo rmails --install
|
75
|
+
|
76
|
+
to install all necessary programs, make initial configuration and start system services.
|
77
|
+
|
78
|
+
Web application for administration can be started with
|
79
|
+
|
80
|
+
bin/rmails --start-app
|
81
|
+
|
54
82
|
|
83
|
+
License
|
84
|
+
-------
|
55
85
|
|
86
|
+
Rmails is released under the [MIT License](https://github.com/fanda/rmails/blob/devel/LICENSE.txt)
|
data/lib/rmails/version.rb
CHANGED
data/rmails.gemspec
CHANGED
@@ -8,10 +8,10 @@ Gem::Specification.new do |s|
|
|
8
8
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
10
10
|
s.authors = ["Pavel Novotny"]
|
11
|
-
s.date =
|
11
|
+
s.date = Rmails::RELEASE
|
12
12
|
s.description = %q{Setup for e-mail server and its admin application}
|
13
13
|
s.email = %q{fandisek@gmail.com}
|
14
|
-
s.homepage = %q{
|
14
|
+
s.homepage = %q{https://github.com/fanda/rmails}
|
15
15
|
s.rubygems_version = %q{1.6.2}
|
16
16
|
s.summary = %q{Autoinstall e-mail server and configure it with Ruby on Rails}
|
17
17
|
s.bindir = 'bin'
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= mailname %>
|
@@ -32,7 +32,7 @@ service_manager.restart("postgresql")
|
|
32
32
|
# get password for database connection
|
33
33
|
password = lookup('postfix#database#password')
|
34
34
|
|
35
|
-
if 1
|
35
|
+
#if '1'==`sudo -u postgres psql -l | grep -w rmails | wc -l`.to_s.chomp
|
36
36
|
# create roles and application database
|
37
37
|
shell_manager.sh "sudo -u postgres psql << EOF
|
38
38
|
CREATE USER postfix ENCRYPTED password '#{password}';
|
@@ -40,7 +40,7 @@ if 1 ==`sudo -u postgres psql -l | grep -w rmails | wc -l`
|
|
40
40
|
CREATE ROLE rmails_app WITH USER postfix, dovecot LOGIN PASSWORD '#{password}';
|
41
41
|
CREATE DATABASE rmails OWNER rmails_app;
|
42
42
|
EOF", :quiet => true
|
43
|
-
end
|
43
|
+
#end
|
44
44
|
|
45
45
|
# render rails database definition
|
46
46
|
locals = {
|
@@ -85,6 +85,16 @@ edit :file => "#{etc_postfix}/main.cf" do
|
|
85
85
|
end
|
86
86
|
=end
|
87
87
|
|
88
|
+
locals = {
|
89
|
+
:mailname => lookup("postfix#mydomain")
|
90
|
+
}
|
91
|
+
render(
|
92
|
+
:file => "#{dist}postfix/mailname.erb",
|
93
|
+
:to => "/etc/mailname",
|
94
|
+
:mode => 0660,
|
95
|
+
:locals => locals
|
96
|
+
)
|
97
|
+
|
88
98
|
#
|
89
99
|
# Set DKIM
|
90
100
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Novotny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -432,6 +432,7 @@ files:
|
|
432
432
|
- system/dist/nginx/awstats.erb
|
433
433
|
- system/dist/nginx/rmails.erb
|
434
434
|
- system/dist/postfix/email2email.cf.erb
|
435
|
+
- system/dist/postfix/mailname.erb
|
435
436
|
- system/dist/postfix/main.cf.erb
|
436
437
|
- system/dist/postfix/master.cf.erb
|
437
438
|
- system/dist/postfix/sasl.conf.erb
|
@@ -508,7 +509,7 @@ files:
|
|
508
509
|
- vendor/assets/javascripts/twitter/bootstrap-typeahead.js
|
509
510
|
- vendor/assets/javascripts/twitter/my/bootstrap-typeahead.js
|
510
511
|
- vendor/assets/stylesheets/.gitkeep
|
511
|
-
homepage:
|
512
|
+
homepage: https://github.com/fanda/rmails
|
512
513
|
licenses:
|
513
514
|
- MIT
|
514
515
|
metadata: {}
|