On Thu, Dec 19, 2002 at 11:18:48AM +0530, Michael Fuller wrote: > Hello all, > > I am testing qmail + qmail ldap + sqwebmail for the two weeks with good > results. I have the following query. > > I need to verify that users configure their SMTP Email clients with the > correct reply address. I want to use smtp-after-pop or some > other form of SMTP authentication. After this, is it possible to look > into the relayed mail and compare the reply address with that user's > LDAP mail attribute ? If there is no match, I want to reject that message. >
It is not possible without patching. If you use the pop-befor-smtp tools included in qmail-ldap you could pass a env-var from auth_pop to qmail-smtp (via the pbs tools). Afterwards you could check if the MAIL FROM entry is correct. The sollution with SMTP AUTH is a bit more complicated because until now only the exit status of auth_smtp is used for access control. -- :wq Claudio
