[packages/opensmtpd] add default aliases (copied from postfix)

glen glen at pld-linux.org
Sun Nov 3 00:02:55 CET 2013


commit 8adbe1e96ec53f9faf9dffd83dd3bef5583c4bd0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 3 01:02:35 2013 +0200

    add default aliases (copied from postfix)

 aliases        | 38 ++++++++++++++++++++++++++++++++++++++
 opensmtpd.spec |  4 ++++
 2 files changed, 42 insertions(+)
---
diff --git a/opensmtpd.spec b/opensmtpd.spec
index ea11e1a..dd61e04 100644
--- a/opensmtpd.spec
+++ b/opensmtpd.spec
@@ -19,6 +19,7 @@ Source0:	http://www.opensmtpd.org/archives/%{name}-%{prerelease}p1.tar.gz
 Source1:	%{name}.service
 Source2:	%{name}.init
 Source3:	%{name}.pam
+Source4:	aliases
 URL:		http://www.opensmtpd.org/
 BuildRequires:	automake
 BuildRequires:	bison
@@ -73,6 +74,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/etc/{rc.d/init.d,pam.d}}
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/opensmtpd.service
 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/opensmtpd
+cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/mail
 %if %{with pam}
 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/smtp
 %endif
@@ -110,7 +112,9 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README.md THANKS
+%dir %{_sysconfdir}/mail
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/smtpd.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/aliases
 %if %{with pam}
 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp
 %endif
diff --git a/aliases b/aliases
new file mode 100644
index 0000000..a33ccf5
--- /dev/null
+++ b/aliases
@@ -0,0 +1,38 @@
+#
+#	@(#)aliases	8.2 (Berkeley) 3/5/94
+#
+#  Aliases in this file will NOT be expanded in the header from
+#  Mail, but WILL be visible over networks or from /bin/mail.
+#
+#	>>>>>>>>>>	The program "newaliases" must be run after
+#	>> NOTE >>	this file is updated for any changes to
+#	>>>>>>>>>>	show through to postfix.
+#
+
+# Basic system aliases -- these MUST be present.
+MAILER-DAEMON:	postmaster
+postmaster:	root
+
+# General redirections for pseudo accounts.
+bin:		root
+daemon:		root
+games:		root
+ingres:		root
+nobody:		root
+system:		root
+toor:		root
+uucp:		root
+
+# Well-known aliases.
+manager:	root
+dumper:		root
+operator:	root
+
+# trap decode to catch security attacks
+decode:		root
+
+# Standard users added by PLD:
+stats:		root
+
+# Person who should get root's mail
+#root:		marc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opensmtpd.git/commitdiff/8adbe1e96ec53f9faf9dffd83dd3bef5583c4bd0



More information about the pld-cvs-commit mailing list