[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim: Lebensdauer von acl_variablen?



Hallo Maik,

Maik Derstappen <info@profi-internetseiten.de> (Mo 15 Jan 2007 13:42:04 CET):
> Hallo zusammen,
...
> In den Variablen acl_m0 und acl_m1 werden local_part und domain zur
> acl_rcpt Zeit gespeichert. Da sie zur acl_data Zeit nicht verfügbar sind
> aber hier für eine Datenbankabfrage benötigt werden.
> 
> Hat jemand einen Tipp für mich?
> Bis zu welchem Zeitpunkt genau existiert eine solche acl-variable?
> Das geht nicht wirklich aus Doku hervor. :-(

    acl_mX für die Message
    acl_CX für die Connection

soweit ich das verstanden habe, hier zum Selbstudium ein Auszug aus dem
SPEC-File:

    $acl_c0 - $acl_c19

	Values can be placed in these variables by the set modifier in an ACL. The
	values persist throughout the lifetime of an SMTP connection. They can be
	used to pass information between ACLs and between different invocations of
	the same ACL. When a message is received, the values of these variables are
	saved with the message, and can be accessed by filters, routers, and
	transports during subsequent delivery.

    $acl_m0 - $acl_m19

	Values can be placed in these variables by the set modifier in an ACL. They
	retain their values while a message is being received, but are reset
	afterwards. They are also reset by MAIL, RSET, EHLO, HELO, and after
	starting a TLS session. When a message is received, the values of these
	variables are saved with the message, and can be accessed by filters,
	routers, and transports during subsequent delivery.

Was ist da nicht klar?


Aber zu Deinem Problem: Warum soll in der DATA-ACL der local_part und
die Domain bekannt sein?  (Spec 39.5.: ... For both of these (DATA,
PRE-DATA; .hs) ACLs, it is not possible to reject individual recipients)

Was erwartest Du in $local_part und $domain, wenn die Mail mehrere
Empfänger hat?

Auch noch mal aus dem SPEC:

    $local_part

	When an address is being routed, or delivered on its own, this variable
	contains the local part. When a number of addresses are being delivered
	together (for example, multiple RCPT commands in an SMTP session),
	$local_part is not set.


Du müsstest also vorher verhindern, daß eine Message an mehr als einen
Empfänger eingeliefert wird.


    Best regards from Dresden
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -

Attachment: signature.asc
Description: Digital signature


Reply to: