[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sobre Exim



Guenas

On Wed, Jan 26, 2000 at 11:40:16PM +0100, Antonio Beamud Montero wrote:
> Ahora ya puedo enviar, pero tengo un problema cuando recojo el correo
>con fetchmail, todo ok, pero exim no me reparte el correo a los
>usuarios... He retocado casi todo, pero nada. 
> Alguien me puede mandar su fichero de configuración para ver en que me
>equivoco, o si no, envio el mio a quien me lo solicite para ver si esta
>correcto. OK?

Ante problemas de ese tipo, yo lo que he hecho (asi en plan cutre, porque es
cutre :-)) es:

1. Por un lado eliminar cualquier restriccion en exim, de modo que admita
relays "por los cuatro costados".

2. Para evitar problemas al bajar correo, el fetchmail se lo pasa al procmail
y de ahi a las carpetas, pero sin pasar por el exim local.

Un exim.conf sin relay, y casi sin configurar (quito los comentarios):


######################################################################
#                    MAIN CONFIGURATION SETTINGS                     #
######################################################################

qualify_domain = tudominio.com
# qualify_recipient =
local_domains = tudominio.com
local_domains_include_host = true
local_domains_include_host_literals = true
#relay_domains = 0.0.0.0/0
#relay_domains_include_local_mx = true
never_users = root
#host_lookup_nets = 0.0.0.0/0
#rbl_domains = rbl.maps.vix.com
#rbl_reject_recipients = false
#rbl_warn_header = true
#sender_host_reject_relay = *
# percent_hack_domains=*
trusted_users = mail
smtp_verify = true
gecos_pattern = ^([^,:]*)
gecos_name = $1
received_header_text = "Received: \
          ${if def:sender_fullhost {from ${sender_fullhost} \
          ${if def:sender_ident {(${sender_ident})}}\n\t}\
          {${if def:sender_ident {from ${sender_ident} }}}}\
          by ${primary_hostname} \
          ${if def:received_protocol {with ${received_protocol}}} \
          (Exim ${version_number} #${compile_number} (Debian))\n\t\
          id ${message_id}"
end


######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
#                       ORDER DOES NOT MATTER                        #
#     Only one appropriate transport is called for each delivery.    #
######################################################################

local_delivery:
  driver = appendfile
  group = mail
  mode = 0660
  mode_fail_narrower = false
  file = /var/spool/mail/${local_part}

address_pipe:
  driver = pipe
  return_output

address_file:
  driver = appendfile

address_directory:
  driver = appendfile
  no_from_hack
  prefix = ""
  suffix = ""

address_reply:
  driver = autoreply

remote_smtp:
  driver = smtp

end


######################################################################
#                      DIRECTORS CONFIGURATION                       #
#             Specifies how local addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#   A local address is passed to each in turn until it is accepted.  #
######################################################################

real_local:
  prefix = real-
  driver = localuser
  transport = local_delivery

system_aliases:
  driver = aliasfile
  file = /etc/aliases
  search_type = lsearch

userforward:
  driver = forwardfile
  no_verify
  check_ancestor
  file = .forward
  modemask = 002
  filter

localuser:
  driver = localuser
  transport = local_delivery

end


######################################################################
#                      ROUTERS CONFIGURATION                         #
#            Specifies how remote addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#  A remote address is passed to each in turn until it is accepted.  #
######################################################################

lookuphost:
  driver = lookuphost
  transport = remote_smtp

literal:
  driver = ipliteral
  transport = remote_smtp

end


######################################################################
#                      RETRY CONFIGURATION                           #
######################################################################

# Domain               Error       Retries
# ------               -----       -------

*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h

end


######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################


# *@tudominio.com    ${lookup{$1}lsearch{/etc/email-addresses}\
#						{$value}fail} bcfrF

# End of Exim configuration file



Y para bajar el correo:


#! /bin/bash

fetchmail -v --mda "/usr/bin/formail -s /usr/bin/procmail"



Saludines
-- 
 --------------------------------------
 POWERED BY Debian 2.1 - Kernel 2.2.14| Andres Herrera
 User Reg. N.66054         aherrer@clientes.unicaja.es
 Grupo LIMA              http://iaeste.cie.uma.es/lima
 -----------------------------------------------

Attachment: pgppybjdQ196B.pgp
Description: PGP signature


Reply to: