[Exim] HELP ME PLEASE! EXIM + Courier IMAP + Maildrop ?????…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Andrew S
Data:  
Para: exim-users
Assunto: [Exim] HELP ME PLEASE! EXIM + Courier IMAP + Maildrop ?????!!!!!!
Hello dear exim-users.

I`m first using any MTA, IMAP etc.
I try to use EXIM + Courier IMAP (Userdb at first, then MySQL) + Maildrop.
I want to tuning VIRTUAL DOMAIN.

So, my system is Linux Debian (at home)
Linux version 2.2.17 (herbert@arnor) (gcc version 2.95.2 20000313 (Debian GNU/Linux))

EXIM version 3.12-10.2
Courier-IMAP 0.31-1
Maildrop 0.75-2.1

============================================
my configuration next:

file: /etc/exim.conf

for exim aliases i use
dir: /etc/exim/tables
file: /etc/exim/tables/local_domains
file: /etc/exim/tables/pupkin1.loc/aliases
file: /etc/exim/tables/pupkin2.loc/aliases

system user in /etc/passwd
root ...
mail:x:8:8:mail:/var/spool/mail:/bin/false
courier:x:1004:8::/var/spool/courier:/bin/bash

into DNS 2 domains:
pupkin1.loc
pupkin2.loc

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

    /etc/exim.conf


$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

EXIM_TABLES = /etc/exim/tables
######################################################################
#                    MAIN CONFIGURATION SETTINGS                     #
######################################################################


qualify_domain = mama
# qualify_recipient =
#|-------------------------------
#|
#|      LOCAL_DOMAINS
#|
#local_domains = localhost:mama:web-media.loc:logger.loc:host-lux.loc:pupkin1.loc:pupkin2.loc
local_domains = [127.0.0.1]:localhost:mama:partial-lsearch;EXIM_TABLES/local_domains


local_domains_include_host = true
local_domains_include_host_literals = true
#relay_domains =
relay_domains_include_local_mx = true
never_users = root
host_lookup = 0.0.0.0/0
forbid_domain_literals
# headers_check_syntax
#rbl_domains = rbl.maps.vix.com
#rbl_reject_recipients = false
#rbl_warn_header = true
host_accept_relay = localhost
# percent_hack_domains=*
trusted_users = mail:courier
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>}}"



######################################################################
#                      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
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 = ""
# maildir_format

address_reply:
driver = autoreply

# This transport is used for procmail
procmail_pipe:
driver = pipe
command = "/usr/bin/procmail -d ${local_part}"
return_path_add
delivery_date_add
envelope_to_add
check_string = "From "
escape_string = ">From "
user = $local_part
group = mail


#| CYRUS
#|
#cyrus_pipe:
#    driver = pipe
#    command = "/usr/sbin/cyrdeliver -m ${substr_1:${local_part_suffix}} -- ${local_part}"
#    return_path_add         = true
#    delivery_date_add       = true
#    envelope_to_add         = true
#    from_hack               = false
#    prefix                  = ""
#    suffix                  = ""
#    user                    = cyrus
#    group                   = mail
#    return_output
#    log_output
#
#|-----------------------------------------
#|
#| maildrop
#|
maildrop_pipe:
    driver = pipe
#    command = "/usr/bin/maildrop -d ${local_part}@${domain}"
#    command = "/usr/bin/maildrop -d courier"
#    command = "/usr/bin/maildrop -d root"
    command = "/usr/bin/maildrop -d post@???"
    return_path_add         = true
    delivery_date_add       = true
    envelope_to_add         = true
    from_hack               = false
    prefix                  = ""
    suffix                  = ""
#    user                    = courier
#    group                   = mail
    return_output
    log_output
#
#
#----------------------------------------
#|
#| Maildir_delivery for
#|
maildir_delivery:
    driver = appendfile
    no_from_hack
    prefix = ""
    suffix = ""
    maildir_format
#    directory = $home/maildir
#    directory = $home/maildir/${domain}/${local_part}
    directory = /var/spool/courier/domains/${domain}/${local_part}/Maildir
    create_directory


# This transport is used for delivering messages over SMTP connections.

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.  #
######################################################################


#cyrus:
#    driver                  = localuser
#    transport               = cyrus_pipe
#    condition               = "${if exists{/var/spool/cyrus/mail/user/${local_part}} {1}{0}}"
#   require_files           = /var/spool/cyrus/mail/user/${local_part}
#    suffix                  = .*
#    suffix_optional         = true
#    verify                  = false
#    user                    = cyrus
#
#|------------------------------------------
#|
#|
#|
maildrop:
    driver                  = localuser
    transport               = maildrop_pipe
    condition               = "${if exists{/var/spool/courier/domains/${domain}/${local_part}/Maildir} {1}{0}}"
#   require_files           = /var/spool/cyrus/mail/user/${local_part}
    suffix                  = .*
    suffix_optional         = true
    verify                  = false
#    user                    = cyrus
#
#
#
local_domains_aliases:
    driver      = aliasfile
    domains     = partial-lsearch;EXIM_TABLES/local_domains
    require_files = EXIM_TABLES/$domain/aliases
    file        = EXIM_TABLES/$domain/aliases
    search_type = lsearch
    user        = mail
#
#
#
local_domains_forward:
    driver      = smartuser
    domains     = partial-lsearch;EXIM_TABLES/local_domains
    new_address = "${expand:${lookup {$domain} partial-lsearch {EXIM_TABLES/local_domains} {$value}}}"


#
#
# This allows local delivery to be forced, avoiding alias files and
# forwarding.

real_local:
prefix = real-
driver = localuser
transport = local_delivery
# transport = maildir_delivery
# This director handles aliasing using a traditional /etc/aliases file.
# If any of your aliases expand to pipes or files, you will need to set
# up a user and a group for these deliveries to run under. You can do
# this by uncommenting the "user" option below (changing the user name
# as appropriate) and adding a "group" option if necessary.

system_aliases:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
file = /etc/aliases
search_type = lsearch
# user = list
# Uncomment the above line if you are running smartlist


# This director runs procmail for users who have a .procmailrc file

procmail:
driver = localuser
transport = procmail_pipe
require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
no_verify

userforward:
driver = forwardfile
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
no_verify
check_ancestor
file = .forward
modemask = 002
filter

# This director matches local user mailboxes.

localuser:
driver = localuser
transport = local_delivery
# transport = maildir_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                         #
######################################################################



*@mama    ${lookup{$1}lsearch{/etc/email-addresses}\
                                                {$value}fail} bcfrF


# End of Exim configuration file








$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

    /etc/exim/tables/local_domains


$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

File: local_domains     Col 0              107 bytes                                                                                         100%
*.pupkin1.loc:  post@???
*.pupkin2.loc:  post@???
*.web-media.loc: postmaster@???





$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

    /etc/exim/tables/pupkin1.loc/aliases


$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$


File: aliases           Col 0              24 bytes                                                                                          100%
post: post@???







then i send message to post@??? from PC (IP=192.168.0.10) into my local net
Server IP=192.168.0.1

after that into /var/log/exim/mainlog

2002-02-04 05:52:55 16XZFW-00006q-00 == j8@??? T=remote_smtp defer (-44): retry time not reached for any host
2002-02-04 06:04:58 16XZRC-000079-00 <= j8@??? H=first (fisrt) [192.168.0.10] P=esmtp S=809 id=6854450786.200202
!!!>>>2002-02-04 06:04:58 16XZRC-000079-00 ** post@??? <post@???>: unknown local-part "post" in domain "pupkin
2002-02-04 06:04:58 16XZRC-00007B-00 <= <> R=16XZRC-000079-00 U=mail P=local S=1559
2002-02-04 06:04:58 16XZRC-000079-00 Error message sent to j8@???
2002-02-04 06:04:58 16XZRC-000079-00 Completed

!!!>>> -my comment ...
i don`t undertand what options i need use with Maildrop or what i need use
else ?


HELP ME PLEASE!


4 Feb 2002 г. 5:26                  Andrew B. Sokov
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
me@???  |  ICQ UIN 16793554
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈