Changeset 8260


Ignore:
Timestamp:
11/25/13 09:40:29 (10 years ago)
Author:
wmerlotto
Message:

Ticket #3503 - Instalador e scripts alterados para permitir o uso do controle de envio de listas (SCL).

Location:
trunk/INSTALL
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/INSTALL/arquivos/expresso-cron

    r8137 r8260  
    55 
    66# Utilizado para verificar se ha algum alarme, por e-mail, do modulo ExpressoCalendar 
    7 #CENTOS*/1 *    * * *   apache   php    EXPRESSO_DIR/prototype/modules/calendar/alarms.php 1>& /dev/null 
    8 #DEBIAN*/1 *    * * *   www-data php5   EXPRESSO_DIR/prototype/modules/calendar/alarms.php 1>& /dev/null 
     7#CENTOS*/1 *    * * *   apache      php  EXPRESSO_DIR/prototype/modules/calendar/alarms.php 1>& /dev/null 
     8#DEBIAN*/1 *    * * *   www-data    php5 EXPRESSO_DIR/prototype/modules/calendar/alarms.php 1>& /dev/null 
    99 
    1010# Utilizado para limpar a tabela, temporaria, que contem os e-mails (rascunhos) antes de 
    1111#  serem salvos no IMAP. 
    12 #CENTOS00 02    * * *   apache          php     EXPRESSO_DIR/prototype/modules/mail/cleanMailAttachments.php  
    13 #DEBIAN00 02    * * *   www-data        php5    EXPRESSO_DIR/prototype/modules/mail/cleanMailAttachments.php  
     12#CENTOS00 02    * * *   apache          php      EXPRESSO_DIR/prototype/modules/mail/cleanMailAttachments.php  
     13#DEBIAN00 02    * * *   www-data        php5 EXPRESSO_DIR/prototype/modules/mail/cleanMailAttachments.php  
    1414 
    1515# Utilizado para limpar a tabela de registros de acesso, sessoes, do Expresso (phpgw_access_log) 
    16 #CENTOS00 22    * * *   apache          php     EXPRESSO_DIR/phpgwapi/cron/clean_phpgw_tables.php 
    17 #DEBIAN00 22    * * *   www-data        php5    EXPRESSO_DIR/phpgwapi/cron/clean_phpgw_tables.php 
     16#CENTOS00 22    * * *   apache          php      EXPRESSO_DIR/phpgwapi/cron/clean_phpgw_tables.php 
     17#DEBIAN00 22    * * *   www-data        php5 EXPRESSO_DIR/phpgwapi/cron/clean_phpgw_tables.php 
    1818 
    1919# Utilizado para limpar os arquivos de sessao do PHP 
    20 #*/31 *  * * *   root                    find /dev/shm -type f -name "sess_*" -cmin 240 -print0 | xargs -n 200 -r -0 rm 
    21 */31 *  * * *   root                    find /dev/shm -type f -name "sess_*" -cmin +240 -delete 
     20#*/31 *         * * *   root        find /dev/shm -type f -name "sess_*" -cmin 240 -print0 | xargs -n 200 -r -0 rm 
     21*/31 *          * * *   root        find /dev/shm -type f -name "sess_*" -cmin +240 -delete 
    2222 
    2323# Utilizado para limpar os arquivos, eml, criados ao exportar mensagens 
    24 #13 */4 * * * root                      find /tmp/ -iname "*.eml" -amin +60 -exec rm -f '{}' \; 
    25 13 */4  * * * root                      find /tmp/ -iname "*.eml" -cmin +60 -delete 
     24#13 */4         * * *   root            find /tmp/ -iname "*.eml" -amin +60 -exec rm -f '{}' \; 
     2513 */4          * * *   root            find /tmp/ -iname "*.eml" -cmin +60 -delete 
     26 
     27# Para o DSPAM 
     28#*/15 *         * * *   root        pidof dspam 1&> /dev/null ; [ $? -ne 0 ] && service dspam restart 
    2629 
    2730# 
  • trunk/INSTALL/arquivos/scripts/smtp.sh

    r7503 r8260  
    1111        sed -e "s/DOMAIN/$DOMAIN/g" $DIR_POSTFIX/transport > /etc/postfix/transport 
    1212        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 
    1315 
    1416        postmap /etc/postfix/expresso-dominios 
     
    2022smtp_rhel () 
    2123{ 
    22         yum -y install postfix 
     24        yum -y install postfix perl-LDAP 
    2325 
    2426        smtp $1  
     
    3638smtp_debian () 
    3739{ 
    38         apt-get -y install postfix postfix-ldap 
     40        apt-get -y install postfix postfix-ldap libnet-ldap-perl 
    3941 
    4042        smtp $1 
  • trunk/INSTALL/debian/squeeze/etc/postfix/main.cf

    r8137 r8260  
    108108cra_maillists_chase_referral = 0 
    109109cra_maillists_search_base = $ldapbase 
    110 cra_maillists_query_filter = (&(mail=%s)(phpgwAccountType=l)(accountRestrictive=mailListRestriction)) 
     110cra_maillists_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(phpgwAccountType=l)(accountRestrictive=mailListRestriction)) 
    111111cra_maillists_result_attribute = accountRestrictive 
    112112cra_maillists_domain = hash:/etc/postfix/expresso-dominios 
     
    166166#SCL - Sender Control List - Restricoes para envio nas listas 
    167167smtpd_restriction_classes = mailListRestriction 
    168 mailListRestriction = check_sender_access ldap:csa_maillists, 
    169                         reject 
     168mailListRestriction = check_policy_service unix:private/scl 
    170169 
    171  
  • trunk/INSTALL/debian/squeeze/etc/postfix/master.cf

    r5797 r8260  
    7575  ${nexthop} ${user} 
    7676 
     77# Script para controle de envio nas listas de discussão 
     78scl  unix    -       n       n       -       0       spawn 
     79        user=nobody argv=/usr/bin/perl /etc/postfix/scl.pl 
     80 
  • trunk/INSTALL/rhel/6/etc/postfix/main.cf

    r8137 r8260  
    166166#SCL - Sender Control List - Restricoes para envio nas listas 
    167167smtpd_restriction_classes = mailListRestriction 
    168 mailListRestriction = check_sender_access ldap:csa_maillists, 
    169                         reject 
     168mailListRestriction = check_policy_service unix:private/scl 
    170169 
    171170# LOCAL PATHNAME INFORMATION 
  • trunk/INSTALL/rhel/6/etc/postfix/master.cf

    r5797 r8260  
    7878bsmtp     unix  -       n       n       -       -       pipe 
    7979  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient 
     80 
     81# Script para controle de envio nas listas de discussão 
     82scl  unix    -       n       n       -       0       spawn 
     83        user=nobody argv=/usr/bin/perl /etc/postfix/scl.pl 
     84 
Note: See TracChangeset for help on using the changeset viewer.