[Pkg-exim4-users] Re: exim4-configuration

Andreas Barth aba@not.so.argh.org
Sun, 1 May 2005 12:12:58 +0200


* Marc Haber (mh+pkg-exim4-users@zugschlus.de) [050501 11:20]:
> On Sat, Apr 30, 2005 at 07:17:50PM +0200, Andreas Barth wrote:
> > * Marc Haber (mh+mail0513@zugschlus.de) [050430 12:40]:
> > > On Sat, Apr 30, 2005 at 11:23:56AM +0200, Andreas Barth wrote:
> > > > Konfiguration ist folgende: Es gibt mehrere Domains, fuer die Mai=
ls in
> > > > maildirs ausgeliefert werden sollen; die entsprechenden Directori=
es sind
> > > > u.U. nicht vorhanden.
> > > >=20
> > > > Es gibt Account-Daten im Passwort-Format, wobei der Domainname ni=
cht
> > > > immer matched. Beispiel:
> > > >=20
> > > > test@turmzimmer.net:x:1000:1000:Andreas Barth,,,,:/org/imap/turmz=
immer.net/aba/::
> > > > (diese Datei wird per cron erzeugt)
> > > >=20
> > > > In das als Home-directory angegebene Verzeichnis soll mail an
> > > > test@imap.turmzimmer.net ausgeliefert werden.
> >=20
> > >> [translated: there are multiple domains that should accept mail to
> > >> mailsdirs; the required maildir directories may be missing
> > >>
> > >> There are account data as passwd-file - however, the domainname ne=
eds
> > >> to be translated
> > >>
> > >> in the specified dir there should be mail delivered from the addre=
ss
> > >> test@imap.turmzimmer.net]
> >=20
> > >> [quote-completion:
> > >> the password-file is created by a cron script, so there are two
> > >> possibilities
> > >> 1. add something to the cron script to create mail
> > >> address -> directory, mail address -> uid and mail address -> gid
> > >> mapping
> > >> 2. get some exim4-conf-file that reads data from the passwd-file
> > >> ]
> >=20
> > > Gib nochmal ein paar mehr Beispiele.
> > >=20
> > > So, wie Du das schreibst, interpretier ich das so, als dass, wenn
> > > foo@bar.org in der passwd steht, die Mailadresse foo@imap.bar.org
> > > existieren soll und dorthin zugestellt werden soll.
> > >=20
> > > Gibt es eine Liste der Domains an anderer Stelle? Kann foo@bar.org =
und
> > > foo@baz.org unabh=E4ngig voneinander existieren?
>=20
> [translated: Please give more examples. I interpret your message that
> if foo@bar.org is written in the passwd file, the mail address
> foo@imap.bar.org should exist and mail should be delivered to the home
> dir of the appropriate account.
>=20
> Is there a list of domains at some other place? Can foo@bar.org and
> foo@baz.org exist independently?]
>=20
> > Well, it is not always imap that's added, that is domain-depended.
> > There is a list for the mapping between domain and authentication dat=
a.
>=20
> Is that list hidden in the passwd file (for example as the directory
> between /org and the domain, or did you omit that list? In what format
> is the list?

There is an explizit list which maps each mail domain to one
authentication domain, like:
imap.turmzimmer.net: turmzimmer.net
foo.baz.example: baz


> > Also, foo@bar and foo@baz is not the same.
>=20
> Ok.
>=20
> So the problem basically boils down to two issues:
>=20
> (1) How to verify whether an address actually exists. This is an issue
>     of the router. Information needed to determine that is the passwd f=
ile
>     and the domain translation list.
>=20
> (2) Where to deliver e-mail for any existing address. This is an issue
>     of the transport, possibly making use of data determined in the
>     router. Maybe, the passwd file is enough information.
>=20
> Can you please come up with a mocked up domain list and passwd file
> together with a list where messages would have to be delivered, and
> a complete list of which addresses should exist.

domain list like above, please.

test@turmzimmer.net:x:1000:1000::/org/imap/turmzimmer.net/aba/::
foo@baz:x:5000:5000::/org/imap/baz/foo/::
xxx@baz:x:5000:5000::/org/imap/baz/xxx/::

ok, now:
Mails to                   should go into
test@imap.turmzimmer.net   /org/imap/turmzimmer.net/aba/
foo@foo.baz.example        /org/imap/baz/foo/
xxx@foo.baz.example        /org/imap/baz/xxx/

Only the addresses shown here should exist (plus some role accounts,
but they're handled different).


Cheers,
Andi
--=20
   http://home.arcor.de/andreas-barth/
   PGP 1024/89FB5CE5  DC F1 85 6D A6 45 9C 0F  3B BE F1 D0 C5 D1 D9 0C