[Exim] mysql - unknown user

Top Page
Delete this message
Reply to this message
Author: Nicolas
Date:  
To: exim-users
Subject: [Exim] mysql - unknown user
hi

it's me again
http://www.kowee.com/exim/exim002-eng.html - exim with mysql
SMTP AUTH no works fine.

another problem. if i send a mail to a user which doesn't exists exim
saves the mail to
/var/data/Maildir/new/*
usually mail is delivered to
/var/data/domain/user/Maildir/new/*

how can i deliver mail to users that don't exist to postmaster. Or
better how can i send an auto reply which says that the account doesent
exist.


here config cuts.

begin routers

mydomain:
driver = accept
domains = +local_domains
transport = mydomain_delivery

localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user

gen_auto_reply:
    driver    = accept
    transport = auto_reply
    senders   = !^.*-request@.* : !^owner-.*@.* : !^postmaster@.* : \
                ! ^listmaster@.* : !^mailer-daemon@.*
    condition = ${if eq {${extract {replytext}{MD_RCPT_USER_DATA} }}{}
{no}{yes}}
    unseen



auto_reply:
    driver  = autoreply
    from    = $local_part@$domain
    to      = $sender_address
    subject = "AR: $h_subject"
    text    = ${extract {replytext}{MD_RCPT_USER_DATA}}


#domain in local_domains
mydomain_delivery:
    driver = appendfile
    create_directory = true
    mode = 0700
    maildir_format = true
    directory = /var/data/mail/${extract {domain}{MD_RCPT_USER_DATA}}\
                 /${extract {login}{MD_RCPT_USER_DATA}}/Maildir
    quota = ${extract {qtasize}{MD_RCPT_USER_DATA} {$value} {QUOTA_SIZE}}
    quota_filecount = ${extract {qtacount}{MD_RCPT_USER_DATA} {$value}
{QUOTA_FILE_COUNT}}



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

remote_smtp:
driver = smtp