Re: [Exim] Probrlem with .forward file in exim3

Top Pagina
Delete this message
Reply to this message
Auteur: B .Schulte
Datum:  
Aan: exim-users
Onderwerp: Re: [Exim] Probrlem with .forward file in exim3
Hi,

I guess this is not a problem in your exim configuration but maybe your PAM
config.
Otherwise if you don't use PAM , you maybe should use it, because it probably
makes your exim-config a bit more simple.
I think exim has to change its uid to access the .forward. This might a the
problem ...



On Saturday 24 April 2004 08:27, Kai Riasol Gonzalez wrote:
> hello
>
> i have runnig a debian system with exim 3.35. this package is selfcompiled
> because i need mysql support. all mail user are in a mysql database.
> if i create a .forward file in the $home of a user exim don´t use this
> file.
>
> i don´t understand why.
>
> thx
>
> kai
>
>
> here my configfile
> ######################################################################
> #                    MAIN CONFIGURATION SETTINGS                     #
> ######################################################################

>
> hide mysql_servers = /////
>
> qualify_domain = foo.de
>
> local_domains = localhost:mysql;SELECT userid FROM domains WHERE
> userid='$key'; local_domains_include_host = true
> local_domains_include_host_literals = true
>
> never_users = root
> host_lookup = *
>
>
> host_accept_relay = 127.0.0.1 : ::::1
> host_auth_accept_relay = *
>
> trusted_users = mail:www-data
>
> smtp_verify = true
>
> gecos_pattern = ^([^,:]*)
> gecos_name = $1
>
> smtp_accept_queue_per_connection = 100
>
> freeze_tell_mailmaster = true
> received_header_text = "Received: \
>          ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
>          {${if def:sender_ident {from ${sender_ident} }}\
>          ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
>          by ${primary_hostname} \
>          ${if def:received_protocol {with ${received_protocol}}} \
>          (Exim ${version_number} #${compile_number} (Debian))\n\t\
>          id ${message_id}\
>          ${if def:received_for {\n\tfor <$received_for>}}"

>
> receiver_try_verify = true
>
>
>
> ######################################################################
> #                      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
> envelope_to_add = true
> return_path_add = true
> no_from_hack
> # file = /var/spool/mail/${local_part}
> directory = /home/${local_part}/Maildir
> maildir_format
>
> address_pipe:
> driver = pipe
> path = /usr/bin:/bin:/usr/local/bin
> return_output
>
> address_file:
> driver = appendfile
> envelope_to_add = true
> return_path_add = true
>
> address_directory:
> driver = appendfile
> no_from_hack
> prefix = ""
> suffix = ""
> maildir_format
>
> address_reply:
> driver = autoreply
>
>
> procmail_pipe:
> driver = pipe
> command = "/usr/bin/procmail"
> return_path_add
> delivery_date_add
> envelope_to_add
> # check_string = "From "
> # escape_string = ">From "
> suffix = ""
>
>
> remote_smtp:
> driver = smtp
>
>
>
> ######################################################################
> #                      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_transport = address_file
> pipe_transport = address_pipe
> file = /etc/aliases
> search_type = lsearch
>
> userforward:
> driver = forwardfile
> file_transport = address_file
> pipe_transport = address_pipe
> reply_transport = address_reply
> directory_transport = address_directory
> no_verify
> check_ancestor
> check_local_user
> file = .forward
> modemask = 002
> filter
>
> procmail:
> driver = localuser
> transport = procmail_pipe
> require_files =
> ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail no_verify
>
> virtual_user:
> driver = aliasfile
> search_type = mysql
> file_transport = address_file
> directory_transport = address_directory
> query = "select target from alias where alias_user='${local_part}' and
> (alias_domain='${domain}' or alias_domain IS NULL)"
> include_domain = true
>
> mysql_aliases:
> driver = aliasfile
> file_transport = address_file
> directory_transport = address_directory
> pipe_transport = address_pipe
> search_type = mysql
> query = "SELECT maildir FROM users where id = '$local_part@$domain';"
> user = mail
> group = mail
>
>
>
> localuser:
> driver = localuser
> transport = local_delivery
>
>
>
> ######################################################################
> #                      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
>
>
>
> ######################################################################
> #                      RETRY CONFIGURATION                           #
> ######################################################################

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

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

>
>
>
> ######################################################################
> #                      REWRITE CONFIGURATION                         #
> ######################################################################

>
>
> *@foo.de    ${lookup{$1}lsearch{/etc/email-addresses}\
>                                                 {$value}fail} frFs

>
>
> ######################################################################
> #                   AUTHENTICATION CONFIGURATION                     #
> ######################################################################

>
>
> plain:
>    driver = plaintext
>    public_name = PLAIN
>    server_condition = "${if crypteq {$3} {${lookup mysql {SELECT crypt FROM
> users  WHERE id = '${sg {$2}{'}{}}' AND LOCKED = 'N';}}} {1}{0
> }}"
>    server_set_id = $2

>
> login:
>    driver = plaintext
>    public_name = LOGIN
>    server_prompts = "Username:: : Password::"
>    server_condition = "${if crypteq {$2} {${lookup mysql {SELECT crypt FROM
> users WHERE id = '${sg {$1}{'}{}}' AND LOCKED = 'N' ;}}} {1}{0
> }}"
>    server_set_id = $1

>
> #cram:
> # driver = cram_md5
> # public_name = CRAM-MD5
> # server_secret = "${lookup mysql {SELECT clear FROM users WHERE id =
> '${sg {$1}{'}{}}' AND LOCKED = 'N' ;} {$value} fail}"
> # server_set_id = $1
>
>
> # End of Exim configuration file
> (END)
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
> details at http://www.exim.org/ ##


--
------------------------------
B. Schulte
------------------------------