Subversion Repositories ALCASAR

Rev

Rev 3021 | Rev 3037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3021 Rev 3035
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 3021 2022-06-06 21:24:25Z rexy $
2
#  $Id: alcasar.sh 3035 2022-07-07 22:49:04Z rexy $
3
 
3
 
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, dnsmasq, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, dnsmasq, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
6
# contact : info@alcasar.net
6
# contact : info@alcasar.net
7
 
7
 
Line 2137... Line 2137...
2137
	[ -e /etc/postfix/main.cf.orig ] || cp /etc/postfix/main.cf /etc/postfix/main.cf.orig
2137
	[ -e /etc/postfix/main.cf.orig ] || cp /etc/postfix/main.cf /etc/postfix/main.cf.orig
2138
	cat << EOT >> /etc/postfix/main.cf
2138
	cat << EOT >> /etc/postfix/main.cf
2139
smtp_sasl_auth_enable = yes
2139
smtp_sasl_auth_enable = yes
2140
smtp_sasl_security_options = noanonymous
2140
smtp_sasl_security_options = noanonymous
2141
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
2141
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
2142
smtpd_banner = \$myhostname ESMTP
-
 
2143
relayhost =
2142
relayhost =
2144
myhostname = $HOSTNAME.$DOMAIN
2143
myhostname = $HOSTNAME.$DOMAIN
2145
EOT
2144
EOT
2146
	chown -R postfix:postfix /var/lib/postfix
2145
	chown -R postfix:postfix /var/lib/postfix
2147
} # end of mail_service
2146
} # end of mail_service