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

Re: exim: Lebensdauer von acl_variablen?



Heiko Schlittermann wrote:
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.
Hallo Heiko,

vielen Dank für die ausführlichen Hinweise.
Darf ich fragen wie Du/Ihr Nutzerbezogen Spamwerte realisiert?
Das ist nämlich der Grund für diese Spielchen.

Anforderung ist:

Markieren der Spam-Mails im Header und Betreff nach Benutzer bezogenen Spam-Schwellen.
Oder realisiert Ihr die Markierung usw in den Routern?


freundliche Grüße aus Leipzig
Maik Derstappen



Reply to: