Merge lp:~jorge/charms/precise/postfix/fix-readme into lp:charms/postfix

Proposed by Jorge Castro
Status: Merged
Merged at revision: 17
Proposed branch: lp:~jorge/charms/precise/postfix/fix-readme
Merge into: lp:charms/postfix
Diff against target: 128 lines (+23/-38)
1 file modified
README.md (+23/-38)
To merge this branch: bzr merge lp:~jorge/charms/precise/postfix/fix-readme
Reviewer Review Type Date Requested Status
José Antonio Rey (community) Approve
Review via email: mp+204910@code.launchpad.net
To post a comment you must log in.
Revision history for this message
José Antonio Rey (jose) wrote :

I'm curious about what the difference between # and ## (used in line 110 of the diff) is.

review: Needs Information
Revision history for this message
José Antonio Rey (jose) wrote :

As I expected, it was an h2 tag compared to an h1 tag. Let's go for it.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file 'README' => 'README.md'
--- README 2014-01-29 17:43:25 +0000
+++ README.md 2014-02-05 13:34:27 +0000
@@ -1,5 +1,4 @@
1Overview1# Overview
2--------
32
4Postfix is Wietse Venema's mail transport agent that started life as an3Postfix is Wietse Venema's mail transport agent that started life as an
5alternative to the widely-used Sendmail program. Postfix attempts to be fast,4alternative to the widely-used Sendmail program. Postfix attempts to be fast,
@@ -14,8 +13,7 @@
14REMINDER: This charm does not include a configuration for a web interface.13REMINDER: This charm does not include a configuration for a web interface.
1514
1615
17Usage16# Usage
18-----
1917
20To deploy Postfix, you first need to edit the config.yaml with your own18To deploy Postfix, you first need to edit the config.yaml with your own
21configuration options. This is because some certificates will be created once19configuration options. This is because some certificates will be created once
@@ -31,36 +29,31 @@
3129
32once the service has finished deploying.30once the service has finished deploying.
3331
3432# Configuration
35Configuration
36-------------
3733
38To configure the charm, you need to edit the config.yaml file that comes here,34To configure the charm, you need to edit the config.yaml file that comes here,
39setting the values to your current values. More information on the add-ssl and35setting the values to your current values. More information on the add-ssl and
40options can be found on the config.yaml file itself.36options can be found on the config.yaml file itself.
4137
42hostname: This is the hostname you assigned for the server, not the rDNS38`hostname`: This is the hostname you assigned for the server, not the rDNS
4339
44domain: This is the domain you will be using for the server (what, in the email40`domain`: This is the domain you will be using for the server (what, in the email address, goes after the @)
45address, goes after the @)41
4642`rootuser`: The root username (it is usually root or ubuntu)
47rootuser: The root username (it is usually root or ubuntu)43
4844`ssl-key`: The SSL key on your system, which should be stated as `cat
49ssl-key: The SSL key on your system, which should be stated as `cat
50~/smtpd.key`45~/smtpd.key`
5146
52ssl-cert: The SSL certificate on your system, which should be stated as `cat47`ssl-cert`: The SSL certificate on your system, which should be stated as `cat
53~/smtpd.crt`48~/smtpd.crt`
5449
55cacert: The cacert.pem file you generated on your system, which should be50`cacert`: The cacert.pem file you generated on your system, which should be
56stated as `cat ~/cacert.pem`51stated as `cat ~/cacert.pem`
5752
58cakey: The cakey.pem file you generated on your system, which should be53`cakey`: The cakey.pem file you generated on your system, which should be
59stated as `cat ~/cakey.pem`54stated as `cat ~/cakey.pem`
6055
6156## Adding TLS/SSL support
62Adding TLS/SSL support
63----------------------
6457
65This charm has Transport Socket Layer (TLS) and Secure Socket Layer (SSL)58This charm has Transport Socket Layer (TLS) and Secure Socket Layer (SSL)
66support. Even though this option is not necessary, it is highly recommended. To59support. Even though this option is not necessary, it is highly recommended. To
@@ -68,8 +61,7 @@
68will have to follow the instructions below for generating keys/certificates (in61will have to follow the instructions below for generating keys/certificates (in
69case you do not have them yet) and placing them in the correct directories.62case you do not have them yet) and placing them in the correct directories.
7063
71Generating the keys and certificates64## Generating the keys and certificates
72------------------------------------
7365
74In case you want to add TLS/SSL to this charm you will need to use keys and SSL66In case you want to add TLS/SSL to this charm you will need to use keys and SSL
75certificates. If you already have those done, please skip to the bottom of this67certificates. If you already have those done, please skip to the bottom of this
@@ -78,14 +70,11 @@
78To generate self-signed certificates, you need to issue the following commands70To generate self-signed certificates, you need to issue the following commands
79on a Terminal:71on a Terminal:
8072
81 touch smtpd.key73 touch smtpd.key
8274 chmod 600 smtpd.key
83 chmod 600 smtpd.key75 openssl genrsa 1024 > smtpd.key openssl req -new -key smtpd.key -x509 -days
84
85 openssl genrsa 1024 > smtpd.key openssl req -new -key smtpd.key -x509 -days
86 3650 -out smtpd.crt76 3650 -out smtpd.crt
8777 openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem
88 openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem
89 -days 365078 -days 3650
9079
91Please, note that the third and fourth commands have prompts you have to fill80Please, note that the third and fourth commands have prompts you have to fill
@@ -94,25 +83,21 @@
94Once you have generated the certificates, you can go ahead and execute the83Once you have generated the certificates, you can go ahead and execute the
95following command:84following command:
9685
97 juju set postfix ssl-key="`cat ~/smtpd.key`" ssl-cert="`cat ~/smtpd.crt`"86 juju set postfix ssl-key="`cat ~/smtpd.key`" ssl-cert="`cat ~/smtpd.crt`"
98 cacert="`cat ~/cacert.pem`" cakey="`~/cakey.pem`"87 cacert="`cat ~/cacert.pem`" cakey="`~/cakey.pem`"
9988
10089## Renewing the keys and certificates
101Renewing the keys and certificates
102----------------------------------
10390
104The renewal of keys and SSL certificates can be done in the same way that you91The renewal of keys and SSL certificates can be done in the same way that you
105added SSL support. Just re-run the following command, specifying the new92added SSL support. Just re-run the following command, specifying the new
106certificates and keys locations instead of the old ones:93certificates and keys locations instead of the old ones:
10794
108 juju set postfix ssl-key="`cat ~/smtpd.key`" ssl-cert="`cat ~/smtpd.crt`"95 juju set postfix ssl-key="`cat ~/smtpd.key`" ssl-cert="`cat ~/smtpd.crt`"
109 cacert="`cat ~/cacert.pem`" cakey="`~/cakey.pem`"96 cacert="`cat ~/cacert.pem`" cakey="`~/cakey.pem`"
11097
111Once you do that, your keys and SSL certificates should be updated.98Once you do that, your keys and SSL certificates should be updated.
11299
113100# Contact Information
114Contact Information
115-------------------
116101
117Author: José Antonio Rey <jose@ubuntu.com>102Author: José Antonio Rey <jose@ubuntu.com>
118Report bugs at: http://bugs.launchpad.net/charms103Report bugs at: http://bugs.launchpad.net/charms

Subscribers

People subscribed via source and target branches