forked from Fivium/DMDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdmda.spec
60 lines (43 loc) · 1.64 KB
/
dmda.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Name: dmda
Version: 1.0
Release: 1
Summary: Database Mail Delivery Agent - A simple mail delivery agent designed to store email in a database backend
License: BSD
URL: fivium.co.uk
Source0: fivium.co.uk/dmda
#BuildRequires:
#Requires:
%description
Database Mail Delivery Agent
==================================================
DMDA is a Java application used to store email in a database. It is designed to sit behind a Mail Transfer Agent such as postfix and will store emails in the configured databases based on the recipient's email address's domain.
This application was developed as an alternative for Apache James. James is a large POP3/IMAP server that does a lot of things including storing email in the database however it is very heavy weight.
The main goals of this tool were:
- Reliability: The server uses HikariCP to manage the database connection pool and will reconnect should the connection drop
- Data integrity: The tool will either reject an email or store it. There will be no dropped emails.
- Light weight: The tool is small, fast and easy to configure.
%prep
cd %_builddir
mkdir %_sourcedir/dmda
tar -xzf %_sourcedir/dmda.tar.gz
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/opt/dmda
cp -p %_builddir/* %{buildroot}/opt/dmda
%clean
#rm -rf %{_builddir}/%{source}/dmda
%files
%defattr(-,root,root,-)
%dir /opt
%dir /opt/dmda
/opt/dmda/dmdad
/opt/dmda/dmda.jar
/opt/dmda/LICENCE
/opt/dmda/config.xml.example
%post
ln -s /opt/dmda/dmdad /etc/init.d/dmdad
%doc
%changelog
* Thu Jul 07 2011 Jonathan Poole <[email protected]> - 1.0
- Initial version of the package