Re: [Exim] mysql - unknown user

Inizio della pagina
Delete this message
Reply to this message
Autore: Dennis Skinner
Data:  
To: Nicolas
CC: exim-users
Oggetto: Re: [Exim] mysql - unknown user
On Wed, 2004-02-04 at 16:04, Nicolas wrote:

> 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/*


That's exactly what you told it to do. The extracts return nothing in
your transport, so the dir is /var/data///Maildir/new/* which translates
to the above.

> 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

# try something like this line
     local_parts = ${extract {login}{MD_RCPT_USER_DATA}}


If that syntax is correct, then the router should fail for non-existent
users. As long as no other router accepts it, your server should not
accept the message (provided you haven't removed the verify=recipients
line in the acl).

If you want to accept the mail, but send an auto-reply to non-existent
users, try using an identical router with a ! (not) in the local_parts
line above and send it to an auto-reply transport.

--
Dennis Skinner
Systems Administrator
BlueFrog Internet
http://www.bluefrog.com