[Exim] Forwarding Problem

Top Pagina
Delete this message
Reply to this message
Auteur: Ralf Becker
Datum:  
Aan: Exim User Mailingliste
Onderwerp: [Exim] Forwarding Problem
Hello,

--- sorry, LONG ---

All Mail in your network is received by one Mailgate,
and local mails are saved to /var/mail.
But Mail for some hosts in your network should be delivered to this
hosts directly and not saved to /var/mail.
To get Alias-Expanding and .forward files to work (the NIS is not
available at this hosts) we configured our Mailgate-Exim (3.20)
like this:

#########################
local_domains = localhost:its.uni-karlsruhe.de:*.its.uni-karlsruhe.de
.
.
#### Transports ####

direct_delivery:
driver = smtp
hosts = ${domain}
gethostbyname = true

#### Directors ####
localuser:
.
## skip transport local_delivery for special hosts
  condition = ${if or { {eq{$domain}{itstsv19.its.uni-karlsruhe.de}}\
                        {eq{$domain}{itspc53.its.uni-karlsruhe.de}}\
                        {eq{$domain}{itstsv9.its.uni-karlsruhe.de}}\
                      } {0} {1} }


localuser_with_own_mail:
driver = localuser
transport = direct_delivery

###########################

This works fine, it does the .forwardfile director, alias-director
for all host, and skip the localuser director for our special
host.

But, we get some weired behavior. Writing mail direct to eg.

becker@???, exim reads the .forward- file,
an sends the Mail to becker@???
with the direct_delivery transport,no problems.

But sending to an alias, eg. mitarbeiter@???,
it expands this alias to becker, reads the .forward-file,
gets becker@???, skip localuser director,
goes to direct-delivery and fails with :
-- > all IP addresses skipped or deferred at least one address
(see debugging output).

Does anyone could explain this behavior or give some hints to
fix the configuration ??

Thanks in advance

Ralf Becker

### debugging output ####
----------------------------------
direct_delivery transport entered
\becker@???
using the transport's hosts: ${domain}
Expanded host list ${domain} to itstsv9.its.uni-karlsruhe.de
getting address for itstsv9.its.uni-karlsruhe.de
Actual local interface address is 127.0.0.1 (lo0)
Actual local interface address is 172.22.128.200 (elxl0)
fully qualified name = itstsv9.its.uni-karlsruhe.de
itstsv9.its.uni-karlsruhe.de 172.22.128.8 mx=-1
itstsv9.its.uni-karlsruhe.de in queue_smtp_domains? no (end of list)
checking status of itstsv9.its.uni-karlsruhe.de
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
dbfn_read: key=T:itstsv9.its.uni-karlsruhe.de:172.22.128.8
dbfn_read: key=T:itstsv9.its.uni-karlsruhe.de:172.22.128.8:14Tkw6-0003l2-00
no host retry record
no message retry record
itstsv9.its.uni-karlsruhe.de [172.22.128.8] status = usable
host in ? no (option unset)
delivering 14Tkw6-0003l2-00 to itstsv9.its.uni-karlsruhe.de [172.22.128.8] (\becker@???)
----------------------------------
direct_delivery transport entered
\becker@???
using the transport's hosts: ${domain}
Expanded host list ${domain} to
all IP addresses skipped or deferred at least one address
locked /var/spool/exim/db/wait-direct_delivery.lockfile
opened DB file /var/spool/exim/db/wait-direct_delivery: flags=102
Leaving direct_delivery transport
set_process_info: 14883 delivering 14Tmq8-0003s2-00 (just run direct_delivery for \becker@???, ...)
post-process \becker@??? (7)
LOG: 0 MAIN
** \becker@??? <\becker@???> D=local_user_with_own_mailhost T=direct_delivery: retry time not reached for any host after a long failure period

--
Ralf Becker <ralf.becker@???>
Institut fuer Therm. Stroemungsmaschinen
Universitaet Karlsruhe
Kaiserstr. 12    76128 Karlsruhe
Tel: +49 721 608 4292   Fax: +49 721 699 222
--------------------------------------------