Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
postfix
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
postfix
Commits
8dba27bc
Commit
8dba27bc
authored
Jan 10, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added systemd unit file
parent
4318a6ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
Makefile
Makefile
+21
-1
No files found.
Makefile
View file @
8dba27bc
all
:
all
:
postfix-service
rm
/etc/passwd
mv
-v
/data/etc/passwd /etc/passwd
rm
/etc/group
...
...
@@ -27,4 +27,24 @@ all:
$(MAKE)
-C
postfix-3.5.4
CCARGS
=
"-DUSE_TLS -I/usr/include/openssl/ -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_LDAP"
AUXLIBS
=
"-lssl -lcrypto -lsasl2 -lldap -llber"
makefiles
$(MAKE)
-C
postfix-3.5.4
cd
postfix-3.5.4
&&
sh postfix-install
-non-interactive
daemon_directory
=
/usr/lib/postfix
manpage_directory
=
/usr/share/man
html_directory
=
/usr/share/doc/postfix-3.5.4/html
readme_directory
=
/usr/share/doc/postfix-3.5.4/readme
@
echo
"
$$
POSTFIX_SERVICE"
>
/lib/systemd/system/postfix.service
systemctl
enable
postfix.service
rm
-rf
postfix-3.5.4
postfix-service
:
define
POSTFIX_SERVICE
[Unit]
Description
=
Postfix Mail Transport Agent
After
=
network.target
[Service]
Type
=
forking
PIDFile
=
/var/spool/postfix/pid/master.pid
ExecStart
=
/usr/sbin/postfix start
ExecStop
=
/usr/sbin/postfix stop
ExecReload
=
/usr/sbin/postfix reload
Restart
=
always
[Install]
WantedBy
=
multi-user.target
export
POSTFIX_SERVICE
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment