Fwd: Re: [afnog] Re:Problem with mail server "Exim Configuration"

Brian Candler B.Candler at pobox.com
Wed May 18 14:59:41 EAT 2005


On Wed, May 18, 2005 at 02:21:09AM -0700, anyuru francis wrote:
> >  exim -d -bt user at domain

You have complicated things by blanking out some of the data and replacing
it with "user at domain". Please don't. I can see that the address you were
testing is "francis at csluganda.com", so it makes it easier if that is
consistent everywhere. I'll assume wherever I see "local_part=user" that
actually it is "local_part=francis".

...
> > --------> dnslookup router <--------
> > local_part=user domain=domain
> > checking domains
> > domain "@ : domain"? yes (matched "@")
> > domain in "! +local_domains"? no (matched "!
> > +local_domains")
> > dnslookup router skipped: domains mismatch

Correct - this is a local domain

> > --------> system_aliases router <--------
> > file lookup required for francis
> >   in /etc/aliases
> > lookup failed

OK, he's not in your aliases file

> > --------> vacation_director router <--------
> > local_part=francis domain=csluganda.com
> > checking require_files
> > file check: /usr/mail/domain/${local_part}/.vacation
> > expanded file: /usr/mail/domain/user/.vacation
> > stat() yielded -1
> > errno = 2
> > vacation_director router skipped: file check

The errno is in /usr/include/errno.h; 2 is ENOENT (no such file or
directory). In other words, a file with that name doesn't exist.

> > --------> userforward router <--------
> > local_part=user domain=domain
> > checking for local user
> > userforward router skipped: user is not a local user

There is no user called 'francis' in your /etc/passwd file

> > --------> virtual_user router <--------
> > local_part=user domain=domain
> > calling virtual_user router
> > rda_interpret (string): ${lookup mysql{ SELECT
> > maildir
> > FROM users WHERE id = '${local_part}@${domain}' }}
> > search_open: mysql "NULL"
> > search_find: file="NULL"
> >   key=" SELECT maildir FROM users WHERE id =
> > 'francis at csluganda.com' " partial=-1 affix=NULL
> > starflags=0
> > LRU list:
> >   :/etc/aliases
> >   End
> > internal_search_find: file="NULL"
> >   type=mysql key=" SELECT maildir FROM users WHERE
> > id
> > = 'francis at csluganda.com' "
> > database lookup required for  SELECT maildir FROM
> > users WHERE id = 'francis at csluganda.com'
> > MYSQL query:  SELECT maildir FROM users WHERE id =
> > 'User at Domain'
> > MYSQL new connection: host=localhost port=0
> > socket=NULL database=maildb user=mail
> > lookup yielded: /usr/mail/domain/users/user/Maildir/

OK, that's the directory you get from the lookup, so it's what's in the
database.

> > virtual_user router generated
> > /usr/mail/domain/users/user/Maildir/
> >   pipe, file, or autoreply
> >   errors_to=NULL transport=address_directory
> >   uid=unset gid=unset home=NULL
> > routed by virtual_user router
> >   envelope to: user at domain
> >   transport: <none>

Successful match. You have forwarded to a file address,
"/usr/mail/domain/users/user/Maildir/".

> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> > Considering /usr/mail/domain/users/user/Maildir/
> > user at domain -> /usr/mail/domain/users/user/Maildir/
> >   transport = address_directory
> > search_tidyup called
> > close MYSQL connection: localhost/maildb/mail
> > >>>>>>>>>>>>>>>> Exim pid=535 terminating with rc=0

OK, then the transport is found too.

Aside: Personally I don't use forwarding to deliver into a /path/like/this/
any more because it's not very flexible (you can't carry information about
uids or quotas along), but it works. These days I record information in
$address_data and the transport extracts the bits out of that it needs.

So now try:

# exim -odf -d user at domain
... type a mail message here
.

to actually perform a delivery to this user; this will exercise the
transport.

If this works OK, then can you be more specific as to *exactly* under which
circumstances mail delivery does not work?

> > >>>>>>>>>>>>>>>>
> > Well and when I do a 
> > dns check with domain I get"Loop detected! Probable
> > cause is lame delegation to server with cached NS
> > data"
> > and "
> > 0.2% of queries will end in failure at 192.5.6.30
> > (A.GTLD-SERVERS.NET) - nameserver loop detected
> > 
> > 26.0% of queries will end in failure at 81.199.88.10
> > (ns.one2net.co.ug) - no such record
> > 
> > 24.1% of queries will end in failure at 62.8.64.3
> > (ns1.wananchi.com) - nameserver loop detected
> > 
> > 26.0% of queries will end in failure at 81.199.88.11
> > (ns2.one2net.co.ug) - no such record
> > 
> > 23.6% of queries will end in failure at 62.8.64.4
> > (ns2.wananchi.com) - nameserver loop detected
> > 
> > 
> > and I get this error too "
> > "Domain exists but there is no such record"

OK, well problems with your domain are a separate issue, but will affect
incoming mail from other systems. If you insist on hiding the domain, we
won't be able to help you...

Regards,

Brian.



More information about the afnog mailing list