Skip to content

Commit

Permalink
Add postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed Aug 22, 2019
1 parent 50d1aff commit ee1ef34
Show file tree
Hide file tree
Showing 3 changed files with 570 additions and 7 deletions.
18 changes: 11 additions & 7 deletions openqa/server.sls
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ server.packages:
- ntp
- vsftpd
- samba
- postfix

/etc/openqa/openqa.ini:
ini.options_present:
Expand Down Expand Up @@ -150,17 +151,20 @@ vsftpd:
- watch:
- file: /etc/vsftpd.conf

/etc/samba/smb.conf:
/etc/sysconfig/mail
file.managed:
- source:
- salt://samba/smb.conf
- user: root
- group: root
- mode: 644
- salt://postfix/sysconfig/mail
- require:
- pkg: server.packages

smb:
/etc/sysconfig/postfix
file.managed:
- source:
- salt://postfix/sysconfig/postfix

postfix:
service.running:
- watch:
- file: /etc/samba/smb.conf
- file: /etc/sysconfig/mail
- file: /etc/sysconfig/postfix
47 changes: 47 additions & 0 deletions postfix/sysconfig/mail
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
## Path: Network/Mail/General
## Description: Basic general MTA configuration
## Type: yesno
## Default: yes
## Config: postfix,sendmail
#
# If you don't want to let SuSEconfig generate your
# configuration file, set this to no
#
MAIL_CREATE_CONFIG="yes"
## Path: Network/Mail/General
## Description:
## Type: string
## Default: ""
## Config: postfix
## ServiceReload: sendmail,postfix
#
# From:-Line in email and News postings
# (otherwise the FQDN is used)
FROM_HEADER=""

## Type: yesno
## Default: no
## Config: postfix
#
# Set this to "yes" if mail from remote should be accepted
# this is necessary for any mail server.
# If set to "no" or empty then only mail from localhost
# will be accepted.
#
SMTPD_LISTEN_REMOTE="no"

## Type: yesno
## Default: no
#
# Set this to "yes" if the yast2 mail module must not
# start with the with the vizard for asking the
# configuration type of the mail server.
#
SKIP_ASK="no"

## Type: string(standard,advanced,undef)
## Default: undef
#
# This variable contains the type of the mail server configuration.
#
CONFIG_TYPE="undef"
Loading

0 comments on commit ee1ef34

Please sign in to comment.