source: trunk/INSTALL/arquivos/scripts/smtp.sh @ 5836

Revision 5836, 915 bytes checked in by wmerlotto, 12 years ago (diff)

Ticket #2557 - Adcionado o suporte para Ubuntu Server 11.10

Line 
1
2# Servico SMTP (Postfix)
3
4# Parametro 1: Diretorio onde estao os arquivos de configuracao (modelo)
5smtp () {
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
14        postmap /etc/postfix/expresso-dominios
15        postmap /etc/postfix/transport
16}
17
18smtp_rhel ()
19{
20        yum -y install postfix
21
22        smtp $1
23
24        service postfix restart
25        chkconfig postfix on
26}
27
28smtp_rhel6 ()
29{
30        RHEL6="rhel/6/etc/postfix"
31        smtp_rhel $RHEL6
32}
33
34smtp_debian ()
35{
36        apt-get -y install postfix
37
38        smtp $1
39
40        /etc/init.d/postfix restart
41}
42
43smtp_debian-squeeze ()
44{
45        SQUEEZE="debian/squeeze/etc/postfix"
46        smtp_debian $SQUEEZE
47}
48
49smtp_ubuntu-11.10 ()
50{
51        smtp_debian-squeeze
52}
53
Note: See TracBrowser for help on using the repository browser.