Diferencia entre revisiones de «GOsa»

De gacq wiki
Saltar a: navegación, buscar
(Packages installation)
Línea 19: Línea 19:
 
apt-get install mailman
 
apt-get install mailman
 
</pre>
 
</pre>
 +
 +
= Configuration files =
 +
 +
/etc/postfix/main.cf
 +
/etc/postfix/master.cf
 +
/etc/postfix/virtualaliases.cf
 +
 +
/etc/imapd.conf
 +
/etc/cyrus.conf
 +
 +
/etc/default/saslauthd
 +
/etc/saslauthd.conf
  
 
= GOsa =
 
= GOsa =
Línea 29: Línea 41:
 
= TLS =
 
= TLS =
 
openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/server.crt -keyout /etc/ssl/certs/server.key
 
openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/server.crt -keyout /etc/ssl/certs/server.key
 +
 +
;/etc/postfix/sasl/smtpd.conf (VALIDAR)
 +
<pre>
 +
pwcheck_method: saslauthd
 +
mech_list: plain login
 +
allow_plaintext: true
 +
##############
 +
# Esta siguiente linea no es necesaria, pero evita que aparezcan errores de tipo:
 +
# Mar 29 18:59:12 calculin postfix/smtpd[14647]: auxpropfunc error invalid parameter supplied
 +
# Mar 29 18:59:12 calculin postfix/smtpd[14647]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
 +
# en /var/log/auth.log
 +
ldapdb_uri: ldap://localhost
 +
##############
 +
</pre>
 +
 +
  
 
=OpenLDAP setup=
 
=OpenLDAP setup=
Línea 44: Línea 72:
 
include        /etc/ldap/schema/goto-mime.schema
 
include        /etc/ldap/schema/goto-mime.schema
 
</pre>
 
</pre>
 
= Postfix =
 
  
 
= SASL =
 
= SASL =
;vi /etc/default/saslauthd
 
<pre>
 
START=yes
 
MECHANISMS="ldap"
 
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
 
</pre>
 
 
 
<pre>
 
<pre>
 
rm -r /var/run/saslauthd/
 
rm -r /var/run/saslauthd/
Línea 61: Línea 80:
 
chgrp sasl /var/spool/postfix/var/run/saslauthd
 
chgrp sasl /var/spool/postfix/var/run/saslauthd
 
adduser postfix sasl
 
adduser postfix sasl
</pre>
 
 
;vi /etc/saslauthd.conf
 
<pre>
 
ldap_servers: ldap://127.0.0.1/
 
ldap_version: 3
 
ldap_timeout: 10
 
ldap_time_limit: 10
 
ldap_cache_ttl: 30
 
ldap_cache_mem: 32768
 
ldap_scope: sub
 
ldap_search_base: ou=people,dc=cafelug,dc=org,dc=ar
 
ldap_auth_method: bind
 
ldap_bind_dn: cn=System Administrator,ou=people,dc=cafelug,dc=org,dc=ar
 
ldap_password: ldappasswd
 
ldap_filter: uid=%U
 
ldap_password_attr: sambaLMPassword
 
</pre>
 
 
=Cyrus IMAP=
 
;vi /etc/imapd.conf
 
<pre>
 
admins: cyrus
 
allowanonymouslogin: no
 
allowplaintext: yes
 
altnamespace: no
 
autocreatequota: 0
 
configdirectory: /var/lib/cyrus
 
defaultdomain: gleducar.org.ar
 
defaultpartition: default
 
hashimapspool: true
 
idlemethod: poll
 
idlesocket: /var/run/cyrus/socket/idle
 
lmtp_downcase_rcpt: yes
 
lmtpsocket: /var/run/cyrus/socket/lmtp
 
newsspool: /var/spool/news
 
notifysocket: /var/run/cyrus/socket/notify
 
partition-default: /var/spool/cyrus/mail
 
partition-news: /var/spool/cyrus/news
 
popminpoll: 1
 
sasl_auto_transition: no
 
sasl_mech_list: PLAIN LOGIN
 
sasl_pwcheck_method: saslauthd
 
sievedir: /var/spool/sieve
 
sieveusehomedir: false
 
syslog_prefix: cyrus
 
tls_ca_path: /etc/ssl/certs
 
tls_cipher_list: TLSv1+HIGH:!aNULL:@STRENGTH
 
tls_session_timeout: 1440
 
umask: 077
 
unixhierarchysep: yes
 
virtdomains: userid
 
</pre>
 
 
;/etc/postfix/virtualaliases.cf
 
<pre>
 
server_host = 127.0.0.1
 
server_port = 389
 
bind        = yes
 
bind_dn    = cn=admin,dc=gacq,dc=com,dc=ar
 
bind_pw    = passwd
 
timeout = 5
 
search_base = dc=gacq,dc=com,dc=ar
 
query_filter = (|(mail=%s)(gosaMailAlternateAddress=%s))
 
result_attribute = gosaMailForwardingAddress,uid
 
</pre>
 
 
;/etc/postfix/sasl/smtpd.conf (VALIDAR)
 
<pre>
 
pwcheck_method: saslauthd
 
mech_list: plain login
 
allow_plaintext: true
 
##############
 
# Esta siguiente linea no es necesaria, pero evita que aparezcan errores de tipo:
 
# Mar 29 18:59:12 calculin postfix/smtpd[14647]: auxpropfunc error invalid parameter supplied
 
# Mar 29 18:59:12 calculin postfix/smtpd[14647]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
 
# en /var/log/auth.log
 
ldapdb_uri: ldap://localhost
 
##############
 
 
</pre>
 
</pre>
  

Revisión del 13:50 9 sep 2008

Guide under development

Packages installation

apt-get install apache2 libapache2-mod-php5 php5 php5-cli php5-common php5-dev php5-gd  \
    php5-imagick php5-imap php5-ldap php5-memcache php5-mhash php5-mysql php5-pgsql     \
    php5-recode php5-snmp php5-sqlite mysql-server openssl

apt-get install postfix cyrus-admin-2.2 cyrus-clients-2.2 cyrus-common-2.2 cyrus-doc-2.2 \
    cyrus-imapd-2.2 cyrus-pop3d-2.2 cyrus-sasl2-doc libsasl2-modules libsasl2-2 \
    libsasl2-modules-ldap sasl2-bin

apt-get install amavisd-new spamassassin clamav amavis-stats

apt-get install gosa gosa-schema slapd ldap-utils postfix-ldap

apt-get install squirrelmail phpldapadmin

apt-get install mailman

Configuration files

/etc/postfix/main.cf /etc/postfix/master.cf /etc/postfix/virtualaliases.cf

/etc/imapd.conf /etc/cyrus.conf

/etc/default/saslauthd /etc/saslauthd.conf

GOsa

cp /usr/share/doc/gosa/contrib/openldap/trust.schema /etc/ldap/schema/
cp /usr/share/doc/gosa/contrib/openldap/samba3.schema.gz /etc/ldap/schema/
gunzip /etc/ldap/schema/samba3.schema.gz

TLS

openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/server.crt -keyout /etc/ssl/certs/server.key

/etc/postfix/sasl/smtpd.conf (VALIDAR)
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
##############
# Esta siguiente linea no es necesaria, pero evita que aparezcan errores de tipo:
# Mar 29 18:59:12 calculin postfix/smtpd[14647]: auxpropfunc error invalid parameter supplied
# Mar 29 18:59:12 calculin postfix/smtpd[14647]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
# en /var/log/auth.log
ldapdb_uri: ldap://localhost
##############


OpenLDAP setup

add to /etc/ldap/slapd.conf
allow bind_v2 (?)
include         /etc/ldap/schema/samba3.schema
include         /etc/ldap/schema/trust.schema
include         /etc/ldap/schema/gosystem.schema
include         /etc/ldap/schema/gofon.schema
include         /etc/ldap/schema/goto.schema
include         /etc/ldap/schema/gosa+samba3.schema
include         /etc/ldap/schema/gofax.schema
include         /etc/ldap/schema/goserver.schema
include         /etc/ldap/schema/goto-mime.schema

SASL

rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl

Restart processes

/etc/init.d/saslauthd start
/etc/init.d/slapd restart
/etc/init.d/cyrus2.2 restart
/etc/init.d/postfix restart

SquirrelMail

cambiar los separadores de "." a "/"

squirrelmail-configure
*3.  Folder Defaults
**3.  Trash Folder                  : INBOX/Trash
**4.  Sent Folder                   : INBOX/Sent
**5.  Drafts Folder                 : INBOX/Drafts

Gosa config

http://hostname/gosa

Mail method=

  • Crear servidor con datos de IMAP
  • Crear cuenta de cyrus en LDAP


Packages

References

Documentation

Email server howtos

Cyrus


Courier

Others

Gosa