Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit fe710b5

Browse files
author
Rustam Aliyev
committed
Line termination adjusted
1 parent dfad8e6 commit fe710b5

File tree

11 files changed

+324
-324
lines changed

11 files changed

+324
-324
lines changed

config/elasticinbox.cml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
# ElasticInbox Schema v1.2
2-
#
3-
# To create schema, first you will need to create keyspace:
4-
#
5-
# create keyspace ElasticInbox
6-
# with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'
7-
# and strategy_options = [{replication_factor:3}];
8-
#
9-
# After keyspace created you can copy paste text below, or simply run:
10-
#
11-
# % cassandra-cli --host 10.0.1.1 < elasticinbox.cml
12-
#
13-
14-
USE ElasticInbox;
15-
16-
CREATE COLUMN FAMILY Accounts WITH
17-
key_validation_class = UTF8Type AND
18-
caching = all AND
19-
comment = 'Basic information about accounts';
20-
21-
CREATE COLUMN FAMILY MessageMetadata WITH
22-
column_type = Super AND
23-
key_validation_class = UTF8Type AND
24-
comparator = TimeUUIDType AND
25-
subcomparator = BytesType AND
26-
caching = keys_only AND
27-
comment='Message metadata including headers, labels, markers, physical location, etc.';
28-
29-
CREATE COLUMN FAMILY MessageBlob WITH
30-
key_validation_class = 'CompositeType(TimeUUIDType, Int32Type)' AND
31-
comparator = Int32Type AND
32-
caching = keys_only AND
33-
comment='Chunked message blobs';
34-
35-
CREATE COLUMN FAMILY IndexLabels WITH
36-
key_validation_class = UTF8Type AND
37-
comparator = TimeUUIDType AND
38-
caching = all AND
39-
comment = 'Message ID indexes grouped by labels and ordered by time';
40-
41-
CREATE COLUMN FAMILY Counters WITH
42-
comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)' AND
43-
key_validation_class = UTF8Type AND
44-
default_validation_class = CounterColumnType AND
45-
replicate_on_write = true AND
46-
caching = all AND
1+
# ElasticInbox Schema v1.2
2+
#
3+
# To create schema, first you will need to create keyspace:
4+
#
5+
# create keyspace ElasticInbox
6+
# with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'
7+
# and strategy_options = [{replication_factor:3}];
8+
#
9+
# After keyspace created you can copy paste text below, or simply run:
10+
#
11+
# % cassandra-cli --host 10.0.1.1 < elasticinbox.cml
12+
#
13+
14+
USE ElasticInbox;
15+
16+
CREATE COLUMN FAMILY Accounts WITH
17+
key_validation_class = UTF8Type AND
18+
caching = all AND
19+
comment = 'Basic information about accounts';
20+
21+
CREATE COLUMN FAMILY MessageMetadata WITH
22+
column_type = Super AND
23+
key_validation_class = UTF8Type AND
24+
comparator = TimeUUIDType AND
25+
subcomparator = BytesType AND
26+
caching = keys_only AND
27+
comment='Message metadata including headers, labels, markers, physical location, etc.';
28+
29+
CREATE COLUMN FAMILY MessageBlob WITH
30+
key_validation_class = 'CompositeType(TimeUUIDType, Int32Type)' AND
31+
comparator = Int32Type AND
32+
caching = keys_only AND
33+
comment='Chunked message blobs';
34+
35+
CREATE COLUMN FAMILY IndexLabels WITH
36+
key_validation_class = UTF8Type AND
37+
comparator = TimeUUIDType AND
38+
caching = all AND
39+
comment = 'Message ID indexes grouped by labels and ordered by time';
40+
41+
CREATE COLUMN FAMILY Counters WITH
42+
comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)' AND
43+
key_validation_class = UTF8Type AND
44+
default_validation_class = CounterColumnType AND
45+
replicate_on_write = true AND
46+
caching = all AND
4747
comment = 'All counters for an account';

config/elasticinbox.yaml

Lines changed: 106 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
1-
### ElasticInbox config file
2-
3-
### Mailbox settings
4-
# Mailbox quota can be set by total bytes and/or message count.
5-
# To disable quota parameter set it to 0.
6-
mailbox_quota_bytes: 1073741824
7-
mailbox_quota_count: 50000
8-
9-
### Monitoring settings
10-
# Enabling performance counters will allow monitoring of various stats
11-
# (e.g. LMTP, Hector) through the JMX interface.
12-
#
13-
# Stats are collected and aggregated for the given interval (in seconds).
14-
enable_performance_counters: true
15-
performance_counters_interval: 180
16-
17-
### LMTP settings
18-
# Set port number and maximum concurrent connections.
19-
lmtp_port: 2400
20-
lmtp_max_connections: 20
21-
# if enabled, messages received via LMTP will be available from POP3
22-
lmtp_enable_pop3: true
23-
24-
### POP3 settings
25-
# Set port number and maximum concurrent connections.
26-
pop3_port: 2110
27-
pop3_max_connections: 20
28-
29-
### Database settings
30-
# Database used for storing metadata of accounts, labels and messages.
31-
# Optionally, it is possible to store blobs in the database (see database_blob_max_threshold).
32-
# Currently only "cassandra" is supported.
33-
database_driver: cassandra
34-
35-
# If you want to store parsed HTML and/or PLAIN text of the message body
36-
# in the metadata storage, enable below.
37-
#
38-
# Note: When no HTML message body available in HTML store mode, ElasticInbox
39-
# will automatically fallback to PLAIN text mode and store available PLAIN text.
40-
store_html_message: true
41-
store_plain_message: false
42-
43-
# Maximum blob size in bytes which can be stored in the database.
44-
# Blobs larger than this value will be stored with the deafult blob profile (blobstore_write_profile).
45-
# If compression enabled, this threshold will be applied to a compressed blob size.
46-
# Set to 0 to disable using database as a blob storage. Maximum allowed value 128K.
47-
database_blob_max_size: 32768
48-
49-
### Cassandra settings
50-
# Specify Cassandra hosts (multiple for LB), cluster name, keyspace
51-
# and auto discovery
52-
cassandra_hosts:
53-
- 127.0.0.1:9160
54-
# - 127.0.0.2:9160
55-
# - 127.0.0.3:9160
56-
cassandra_autodiscovery: false
57-
cassandra_cluster_name: 'TestCluster'
58-
cassandra_keyspace: 'ElasticInbox'
59-
60-
### Blob storage settings
61-
#
62-
# Following public and private blob store providers are supported:
63-
# aws-s3, cloudfiles-us, cloudfiles-uk, filesystem,
64-
# azureblob, atmos (generic), synaptic-storage, scaleup-storage,
65-
# cloudonestorage, walrus(generic), googlestorage, ninefold-storage,
66-
# scality-rs2 (generic), hosteurope-storage, tiscali-storage,
67-
# eucalyptus-partnercloud-s3, swift (generic)
68-
#
69-
# IMPORTANT: Blob store profile names should never be changed and should be
70-
# identical on all ElasticInbox nodes. Profile names are stored in
71-
# metadata. ElasticInbox does not verify profile configurations.
72-
#
73-
blobstore_profiles:
74-
openstack-example:
75-
provider: swift
76-
endpoint: http://10.0.0.1:8066/auth/
77-
container: elasticinbox
78-
identity: admin:admin
79-
credential: secret
80-
apiversion: 1.0
81-
aws-example:
82-
provider: aws-s3
83-
endpoint: https://s3-eu-west-1.amazonaws.com
84-
container: mybucket.myaws.tld
85-
identity: AWSGENERATEDID
86-
credential: myverylongawssecret
87-
fs-local:
88-
provider: filesystem
89-
endpoint: /u02/domains
90-
container: elasticinbox
91-
92-
# Deafult profile to use for writing messages to blob storage
93-
# only one profile can be used for writing at the same time.
94-
blobstore_write_profile: fs-local
95-
96-
# Compress objects written to the blob store (including database blobs)
97-
blobstore_enable_compression: true
98-
99-
# Encrypt objects written to the blob store. Blobs stored in database are
100-
# never encrypted.
101-
blobstore_enable_encryption: false
102-
#blobstore_default_encryption_key: mykey1
103-
104-
### Encryption settings
105-
#encryption:
106-
# keystore: "elasticinbox.ks"
1+
### ElasticInbox config file
2+
3+
### Mailbox settings
4+
# Mailbox quota can be set by total bytes and/or message count.
5+
# To disable quota parameter set it to 0.
6+
mailbox_quota_bytes: 1073741824
7+
mailbox_quota_count: 50000
8+
9+
### Monitoring settings
10+
# Enabling performance counters will allow monitoring of various stats
11+
# (e.g. LMTP, Hector) through the JMX interface.
12+
#
13+
# Stats are collected and aggregated for the given interval (in seconds).
14+
enable_performance_counters: true
15+
performance_counters_interval: 180
16+
17+
### LMTP settings
18+
# Set port number and maximum concurrent connections.
19+
lmtp_port: 2400
20+
lmtp_max_connections: 20
21+
# if enabled, messages received via LMTP will be available from POP3
22+
lmtp_enable_pop3: true
23+
24+
### POP3 settings
25+
# Set port number and maximum concurrent connections.
26+
pop3_port: 2110
27+
pop3_max_connections: 20
28+
29+
### Database settings
30+
# Database used for storing metadata of accounts, labels and messages.
31+
# Optionally, it is possible to store blobs in the database (see database_blob_max_threshold).
32+
# Currently only "cassandra" is supported.
33+
database_driver: cassandra
34+
35+
# If you want to store parsed HTML and/or PLAIN text of the message body
36+
# in the metadata storage, enable below.
37+
#
38+
# Note: When no HTML message body available in HTML store mode, ElasticInbox
39+
# will automatically fallback to PLAIN text mode and store available PLAIN text.
40+
store_html_message: true
41+
store_plain_message: false
42+
43+
# Maximum blob size in bytes which can be stored in the database.
44+
# Blobs larger than this value will be stored with the deafult blob profile (blobstore_write_profile).
45+
# If compression enabled, this threshold will be applied to a compressed blob size.
46+
# Set to 0 to disable using database as a blob storage. Maximum allowed value 128K.
47+
database_blob_max_size: 32768
48+
49+
### Cassandra settings
50+
# Specify Cassandra hosts (multiple for LB), cluster name, keyspace
51+
# and auto discovery
52+
cassandra_hosts:
53+
- 127.0.0.1:9160
54+
# - 127.0.0.2:9160
55+
# - 127.0.0.3:9160
56+
cassandra_autodiscovery: false
57+
cassandra_cluster_name: 'TestCluster'
58+
cassandra_keyspace: 'ElasticInbox'
59+
60+
### Blob storage settings
61+
#
62+
# Following public and private blob store providers are supported:
63+
# aws-s3, cloudfiles-us, cloudfiles-uk, filesystem,
64+
# azureblob, atmos (generic), synaptic-storage, scaleup-storage,
65+
# cloudonestorage, walrus(generic), googlestorage, ninefold-storage,
66+
# scality-rs2 (generic), hosteurope-storage, tiscali-storage,
67+
# eucalyptus-partnercloud-s3, swift (generic)
68+
#
69+
# IMPORTANT: Blob store profile names should never be changed and should be
70+
# identical on all ElasticInbox nodes. Profile names are stored in
71+
# metadata. ElasticInbox does not verify profile configurations.
72+
#
73+
blobstore_profiles:
74+
openstack-example:
75+
provider: swift
76+
endpoint: http://10.0.0.1:8066/auth/
77+
container: elasticinbox
78+
identity: admin:admin
79+
credential: secret
80+
apiversion: 1.0
81+
aws-example:
82+
provider: aws-s3
83+
endpoint: https://s3-eu-west-1.amazonaws.com
84+
container: mybucket.myaws.tld
85+
identity: AWSGENERATEDID
86+
credential: myverylongawssecret
87+
fs-local:
88+
provider: filesystem
89+
endpoint: /u02/domains
90+
container: elasticinbox
91+
92+
# Deafult profile to use for writing messages to blob storage
93+
# only one profile can be used for writing at the same time.
94+
blobstore_write_profile: fs-local
95+
96+
# Compress objects written to the blob store (including database blobs)
97+
blobstore_enable_compression: true
98+
99+
# Encrypt objects written to the blob store. Blobs stored in database are
100+
# never encrypted.
101+
blobstore_enable_encryption: false
102+
#blobstore_default_encryption_key: mykey1
103+
104+
### Encryption settings
105+
#encryption:
106+
# keystore: "elasticinbox.ks"
107107
# keystore_password: qweqwe
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
Received: by 10.194.242.74 with HTTP; Sat, 2 Mar 2013 16:48:26 -0800 (PST)
2-
Date: Sun, 3 Mar 2013 00:48:26 +0000
3-
Message-ID: <vL9dkiwWS77yPKXjjCnTQmhBxTQptHonnDQWJbUjwEnYbQ@mail.elasticinbox.com>
4-
Subject: Simple email
5-
From: Test User <[email protected]>
6-
To: Test User <[email protected]>
7-
MIME-Version: 1.0
8-
Content-Type: multipart/alternative; boundary=047d7bb04a0627b11304d6fa9919
9-
10-
--047d7bb04a0627b11304d6fa9919
11-
Content-Type: text/plain; charset=UTF-8
12-
13-
Hi,
14-
15-
This is really simple email.
16-
17-
That's it.
18-
19-
--
20-
EI
21-
22-
--047d7bb04a0627b11304d6fa9919
23-
Content-Type: text/html; charset=UTF-8
24-
25-
<div dir="ltr"><div><div>Hi,<br><br>This is really simple email.<br><br></div>That&#39;s it.<br><br>--<br></div>EI<br></div>
26-
27-
--047d7bb04a0627b11304d6fa9919--
1+
Received: by 10.194.242.74 with HTTP; Sat, 2 Mar 2013 16:48:26 -0800 (PST)
2+
Date: Sun, 3 Mar 2013 00:48:26 +0000
3+
Message-ID: <vL9dkiwWS77yPKXjjCnTQmhBxTQptHonnDQWJbUjwEnYbQ@mail.elasticinbox.com>
4+
Subject: Simple email
5+
From: Test User <[email protected]>
6+
To: Test User <[email protected]>
7+
MIME-Version: 1.0
8+
Content-Type: multipart/alternative; boundary=047d7bb04a0627b11304d6fa9919
9+
10+
--047d7bb04a0627b11304d6fa9919
11+
Content-Type: text/plain; charset=UTF-8
12+
13+
Hi,
14+
15+
This is really simple email.
16+
17+
That's it.
18+
19+
--
20+
EI
21+
22+
--047d7bb04a0627b11304d6fa9919
23+
Content-Type: text/html; charset=UTF-8
24+
25+
<div dir="ltr"><div><div>Hi,<br><br>This is really simple email.<br><br></div>That&#39;s it.<br><br>--<br></div>EI<br></div>
26+
27+
--047d7bb04a0627b11304d6fa9919--

0 commit comments

Comments
 (0)