[Pkg-exim4-users] accept all mail for examination

Marc Haber mh+pkg-exim4-users at zugschlus.de
Thu Dec 29 10:34:45 UTC 2005

On Wed, Dec 28, 2005 at 04:15:31PM -0600, exim wrote:
> I have the latest Debian stable installed.  I am trying to setup an
> SMTP server for use with my windows box where I am testing some
> automatic email generation ASP scripts.
> I want exim to accept all email from the windows box and dump it all
> into a single file so that I can examine it, in order to test that
> the scripts are doing the right thing.
> >From the exim 'dash' users 'at' exim 'dot' org mailing list, I leared that I
> need
> to have an
> accept hosts =
> in near the top of acl_check_rcpt in order to accept all email.

On Debian, you can simply enter that IP address into dc_relay_nets
variable in /etc/exim4/update-exim4.conf.conf.

> I also learned that I needed a router to move the mail to the repository.
> I placed this:
> catch_all:
>   driver = redirect
>   data = /var/mail/catchall
>   transport = address_file

That's wrong. Probably use an accept router like this (untested!):

  driver = accept
  transport = your_file_transport

If your system transports other mail, you'd need a condition that
makes this router only accept mail delivered from your Windows Box' IP

Then you'll need a transport writing the message away, like this

  driver = appendfile
  file = /var/mail/catchall

If you want to see the envelope that your system generated, have your
transport write in BSMTP format.


Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835

More information about the Pkg-exim4-users mailing list