Revision 8260,
1.1 KB
checked in by wmerlotto, 11 years ago
(diff) |
Ticket #3503 - Instalador e scripts alterados para permitir o uso do controle de envio de listas (SCL).
|
Line | |
---|
1 | |
---|
2 | # Servico SMTP (Postfix) |
---|
3 | |
---|
4 | # Parametro 1: Diretorio onde estao os arquivos de configuracao (modelo) |
---|
5 | smtp () { |
---|
6 | get_org |
---|
7 | |
---|
8 | DIR_POSTFIX="$1" |
---|
9 | sed -e "s/LDAP_DN/$LDAP_DN/g" -e "s/DOMAIN/$DOMAIN/g" $DIR_POSTFIX/main.cf > /etc/postfix/main.cf |
---|
10 | sed -e "s/DOMAIN/$DOMAIN/g" $DIR_POSTFIX/expresso-dominios > /etc/postfix/expresso-dominios |
---|
11 | sed -e "s/DOMAIN/$DOMAIN/g" $DIR_POSTFIX/transport > /etc/postfix/transport |
---|
12 | cp $DIR_POSTFIX/master.cf /etc/postfix/ |
---|
13 | sed -e "s/LDAP_DN/$LDAP_DN/g" $ARQS/scl.pl > /etc/postfix/scl.pl |
---|
14 | chmod a+x /etc/postfix/scl.pl |
---|
15 | |
---|
16 | postmap /etc/postfix/expresso-dominios |
---|
17 | postmap /etc/postfix/transport |
---|
18 | # Adiciona o grupo mail ao usuarios postfix |
---|
19 | usermod -a -G mail postfix |
---|
20 | } |
---|
21 | |
---|
22 | smtp_rhel () |
---|
23 | { |
---|
24 | yum -y install postfix perl-LDAP |
---|
25 | |
---|
26 | smtp $1 |
---|
27 | |
---|
28 | service postfix restart |
---|
29 | chkconfig postfix on |
---|
30 | } |
---|
31 | |
---|
32 | smtp_rhel_6 () |
---|
33 | { |
---|
34 | RHEL6="rhel/6/etc/postfix" |
---|
35 | smtp_rhel $RHEL6 |
---|
36 | } |
---|
37 | |
---|
38 | smtp_debian () |
---|
39 | { |
---|
40 | apt-get -y install postfix postfix-ldap libnet-ldap-perl |
---|
41 | |
---|
42 | smtp $1 |
---|
43 | |
---|
44 | /etc/init.d/postfix restart |
---|
45 | } |
---|
46 | |
---|
47 | smtp_debian_6 () |
---|
48 | { |
---|
49 | SQUEEZE="debian/squeeze/etc/postfix" |
---|
50 | smtp_debian $SQUEEZE |
---|
51 | } |
---|
52 | |
---|
53 | smtp_ubuntu_1204 () |
---|
54 | { |
---|
55 | smtp_debian_6 |
---|
56 | } |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.