Setup postfix for taiga.cloud.fp.o.
This commit is contained in:
parent
b25b536629
commit
6d4527e3c8
3 changed files with 111 additions and 10 deletions
91
roles/taiga/files/aliases
Normal file
91
roles/taiga/files/aliases
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
#
|
||||||
|
# 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 sendmail.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Basic system aliases -- these MUST be present.
|
||||||
|
mailer-daemon: postmaster
|
||||||
|
postmaster: sysadmin-main
|
||||||
|
|
||||||
|
# General redirections for pseudo accounts.
|
||||||
|
bin: root
|
||||||
|
daemon: root
|
||||||
|
adm: root
|
||||||
|
lp: root
|
||||||
|
sync: root
|
||||||
|
shutdown: root
|
||||||
|
halt: root
|
||||||
|
mail: root
|
||||||
|
#news: root
|
||||||
|
uucp: root
|
||||||
|
operator: root
|
||||||
|
games: root
|
||||||
|
gopher: root
|
||||||
|
ftp: root
|
||||||
|
#nobody: root
|
||||||
|
radiusd: root
|
||||||
|
nut: root
|
||||||
|
dbus: root
|
||||||
|
vcsa: root
|
||||||
|
canna: root
|
||||||
|
wnn: root
|
||||||
|
rpm: root
|
||||||
|
nscd: root
|
||||||
|
pcap: root
|
||||||
|
apache: root
|
||||||
|
webalizer: root
|
||||||
|
dovecot: root
|
||||||
|
fax: root
|
||||||
|
quagga: root
|
||||||
|
radvd: root
|
||||||
|
pvm: root
|
||||||
|
amanda: root
|
||||||
|
privoxy: root
|
||||||
|
ident: root
|
||||||
|
named: root
|
||||||
|
xfs: root
|
||||||
|
gdm: root
|
||||||
|
mailnull: root
|
||||||
|
postgres: root
|
||||||
|
sshd: root
|
||||||
|
smmsp: root
|
||||||
|
postfix: root
|
||||||
|
netdump: root
|
||||||
|
ldap: root
|
||||||
|
squid: root
|
||||||
|
ntp: root
|
||||||
|
mysql: root
|
||||||
|
desktop: root
|
||||||
|
rpcuser: root
|
||||||
|
rpc: root
|
||||||
|
nfsnobody: root
|
||||||
|
notifications: root
|
||||||
|
|
||||||
|
ingres: root
|
||||||
|
system: root
|
||||||
|
toor: root
|
||||||
|
manager: root
|
||||||
|
dumper: root
|
||||||
|
abuse: root
|
||||||
|
nagios: root
|
||||||
|
|
||||||
|
newsadm: news
|
||||||
|
newsadmin: news
|
||||||
|
usenet: news
|
||||||
|
ftpadm: ftp
|
||||||
|
ftpadmin: ftp
|
||||||
|
ftp-adm: ftp
|
||||||
|
ftp-admin: ftp
|
||||||
|
|
||||||
|
# trap decode to catch security attacks
|
||||||
|
decode: root
|
||||||
|
|
||||||
|
# Person who should get root's mail
|
||||||
|
root: sysadmin-main
|
||||||
|
|
||||||
|
pagure: /dev/null
|
||||||
|
reply: /dev/null
|
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
- yum: name={{item}} state=present
|
- yum: name={{item}} state=present
|
||||||
with_items:
|
with_items:
|
||||||
|
- postfix
|
||||||
|
|
||||||
- nginx
|
- nginx
|
||||||
- libsemanage-python
|
- libsemanage-python
|
||||||
- postgresql-server
|
- postgresql-server
|
||||||
|
@ -27,6 +29,16 @@
|
||||||
- user: name=taiga comment="Taiga System Account"
|
- user: name=taiga comment="Taiga System Account"
|
||||||
tags: taiga
|
tags: taiga
|
||||||
|
|
||||||
|
### Real quick, let's setup postfix for mail on the side.
|
||||||
|
### if we ever move this internally, we'll just use bastion.
|
||||||
|
- name: Add the /etc/aliases file
|
||||||
|
copy: src=aliases dest=/etc/aliases owner=root mode=644
|
||||||
|
notify: restart postfix
|
||||||
|
tags: taiga
|
||||||
|
- name: Set postfix to run on boot
|
||||||
|
service: name=postfix state=running enabled=yes
|
||||||
|
tags: taiga
|
||||||
|
|
||||||
### FIRST, there is a lot of postgres db stuff to setup ###
|
### FIRST, there is a lot of postgres db stuff to setup ###
|
||||||
- name: Initialize postgres if necessary
|
- name: Initialize postgres if necessary
|
||||||
command: /usr/bin/postgresql-setup initdb
|
command: /usr/bin/postgresql-setup initdb
|
||||||
|
@ -65,8 +77,6 @@
|
||||||
|
|
||||||
- name: Set postgresql-server to run on boot
|
- name: Set postgresql-server to run on boot
|
||||||
service: name=postgresql state=running enabled=yes
|
service: name=postgresql state=running enabled=yes
|
||||||
ignore_errors: true
|
|
||||||
notify: restart postgresql
|
|
||||||
tags: taiga
|
tags: taiga
|
||||||
|
|
||||||
# Make sure we have db users
|
# Make sure we have db users
|
||||||
|
|
|
@ -31,11 +31,11 @@ REST_FRAMEWORK['EXCEPTION_HANDLER'] = "taiga_contrib_fas_openid_auth.services.ex
|
||||||
#CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
|
#CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
|
||||||
#CELERY_ENABLED = True
|
#CELERY_ENABLED = True
|
||||||
|
|
||||||
## Uncomment and populate with proper connection parameters
|
# Uncomment and populate with proper connection parameters
|
||||||
## for enable email sending.
|
# for enable email sending.
|
||||||
#EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
||||||
#EMAIL_USE_TLS = False
|
EMAIL_USE_TLS = False
|
||||||
#EMAIL_HOST = "localhost"
|
EMAIL_HOST = "localhost"
|
||||||
#EMAIL_HOST_USER = ""
|
EMAIL_HOST_USER = ""
|
||||||
#EMAIL_HOST_PASSWORD = ""
|
EMAIL_HOST_PASSWORD = ""
|
||||||
#EMAIL_PORT = 25
|
EMAIL_PORT = 25
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue