<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Apéndice A. Archivo de configuración
	/etc/postfix/main.cf</title><link rel="stylesheet" href="http://guepardo.dyndns.org:8080/sergio-gonzalez/doc/08-postfix-ldap/html/estilo.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.64.1" /><link rel="home" href="index.html" title="Sistema de correo con Postfix, OpenLDAP, Courier ((POP3&amp;&amp;IMAP) + SSL), SASL, Spamassassin, Amavis-new y SquirrelMail" /><link rel="up" href="apendice-de-archivos-configuracion.html" title="Parte VII. Archivos de configuración" /><link rel="previous" href="apendice-de-archivos-configuracion.html" title="Parte VII. Archivos de configuración" /><link rel="next" href="postfix-master_cf.html" title="Apéndice B. Archivo de configuración&#10;&#9;/etc/postfix/master.cf" /><meta name="generator" content="Experimental LDP.XSL $Revision: 1.3 $" />
  <!-- Generated by LDP XSLT customization layer
      based on Norman Walsh's DocBook XSL stylesheets.
      More information at http://www.linuxdoc.org/ -->
  </head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Apéndice A. Archivo de configuración
	/etc/postfix/main.cf</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apendice-de-archivos-configuracion.html">Anterior</a> </td><th width="60%" align="center">Parte VII. Archivos de configuración</th><td width="20%" align="right"> <a accesskey="n" href="postfix-master_cf.html">Siguiente</a></td></tr></table><hr /></div><div class="appendix" lang="es" xml:lang="es"><div class="titlepage"><div><div><h2 class="title"><a id="postfix-main_cf"></a>Apéndice A. Archivo de configuración
	<tt class="filename">/etc/postfix/main.cf</tt></h2></div></div><div></div></div><table border="0" bgcolor="#E0E0E0" width="90%"><tr><td><pre class="programlisting">
# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# NOMBRE, DOMINIO(S) y RED(ES)
myhostname = todoscsi
mydomain   = gsr.pt
myorigin   = /etc/mailname
#relay     =


# DIRECCION QUE APARECE EN EL FROM 
#myorigin = $myhostname 
#myorigin = $mydomain


# CONFIGURACION TLS
smtp_use_tls            = yes
smtpd_use_tls           = yes
smtp_tls_note_starttls  = yes
smtpd_tls_note_starttls = yes
smtpd_tls_key_file      = /etc/postfix/ssl/smtpd-key.pem
smtpd_tls_cert_file     = /etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel      = 1


## CONFIGURACION SASL 
#broken_sasl_auth_clients  = yes
#smtpd_sasl_local_domain   = $myhostname
#smtpd_sasl_auth_enable    = yes
#smtpd_sasl_security_options = noanonymous


# UBICACION DE DIRECTORIOS
#
# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory  = /usr/lib/postfix
program_directory = /usr/lib/postfix


# PROPIETARIO DE COLAS Y PROCESOS
mail_owner   = postfix
setgid_group = postdrop


# TRATAMIENTO DE ALIAS
alias_maps     = hash:/etc/aliases
alias_database = hash:/etc/aliases

# Alias virtuales
virtual_maps          = ldap:valiases
valiases_server_host  = gsr.pt
valiases_search_base  = ou=alias,ou=postfix,dc=gsr,dc=pt
valiases_query_filter = (&amp;(mail=%s)(objectClass=CourierMailAlias))
valiases_result_attribute = maildrop
valiases_bind         = no


# IDENTIFICACION DE USUARIOS LOCALES
local_recipient_maps = unix:passwd.byname $alias_maps


# ENVIO EN PARALELO A UN MISMO DESTINO 
local_destination_concurrency_limit   = 2 
default_destination_concurrency_limit = 10


# OTROS PARAMETROS DE CONFIGURACION
notify_classes       = resource, software, policy 
disable_vrfy_command = yes 
disable_dns_lookups  = no 
#relayhost           = [$relay] 
message_size_limit   = 10485760 
mailbox_size_limit   = 0 
maximal_queue_lifetime = 5d
recipient_delimiter  = +
append_dot_mydomain  = no
biff                 = no

# CONTROL DE CORREO ENTRANTE / SALIENTE
mynetworks    = 127.0.0.0/8 192.168.2.0/24
mydestination = todoscsi.gsr.pt localhost.gsr.pt gsr.pt todoscsi.chets.lan, \
                localhost.chets.lan, localhost, todoscsi
#relay_domains       = 
#smtpd_client_restrictions = reject_rbl_client relays.ordb.org \
#                    reject_rhsbl_client relays.ordb.org reject_unknown_client
#smtpd_helo_required       = yes 
#smtpd_helo_restrictions   = reject_invalid_hostname reject_unknown_hostname \
#                            reject_non_fqdn_hostname 
##smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks \
#                                reject_unauth_destination 
##smtpd_data_restrictions    = reject_unauth_pipelining 
##header_checks              = regexp:/etc/postfix/header_checks 
##body_checks                = regexp:/etc/postfix/body_checks
local_transport = local
mailbox_command = procmail -a "$EXTENSION"
content_filter  = smtp-amavis:[localhost]:10024

# VERSION
mail_name = Postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)</pre></td></tr></table></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apendice-de-archivos-configuracion.html">Anterior</a> </td><td width="20%" align="center"><a accesskey="u" href="apendice-de-archivos-configuracion.html">Subir</a></td><td width="40%" align="right"> <a accesskey="n" href="postfix-master_cf.html">Siguiente</a></td></tr><tr><td width="40%" align="left" valign="top">Parte VII. Archivos de configuración </td><td width="20%" align="center"><a accesskey="h" href="index.html">Inicio</a></td><td width="40%" align="right" valign="top"> Apéndice B. Archivo de configuración
	/etc/postfix/master.cf</td></tr></table></div></body></html>

