Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 13:54:40 +0300 (WET)
From:      Evren Yurtesen <eyurtese@tekniikka.turkuamk.fi>
To:        ports@freebsd.org
Cc:        lioux@freebsd.org
Subject:   Re:(2) qmail-tls + qmail auth port ?
Message-ID:  <Pine.A41.4.10.10307101354170.17858-200000@bessel.tekniikka.turkuamk.fi>
In-Reply-To: <Pine.A41.4.10.10307101321030.31734-201000@bessel.tekniikka.turkuamk.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---1046051574-419774514-1057834480=:17858
Content-Type: TEXT/PLAIN; charset=US-ASCII

sorry the previous patch was not correct :)

On Thu, 10 Jul 2003, Evren Yurtesen wrote:

> Hi,
> There is no port for qmail-auth-tls in FreeBSD. Also the qmail-auth
> patches fromm
> http://members.elysium.pl/brush/qmail-smtpd-auth/
> do not apply to qmail-tls port of FreeBSD because some files are
> already patched with tls pathes.
> I made diffs for FreeBSD's qmail-tls port that auth-patch can be applied
> So there can be a FreeBSD qmail-auth-tls port perhaps :)
> I attach it.
> Did you get my point? :) 
> Evren
> 
> 

---1046051574-419774514-1057834480=:17858
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="auth.patch.tls"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.A41.4.10.10307101354400.17858@bessel.tekniikka.turkuamk.fi>
Content-Description: 
Content-Disposition: attachment; filename="auth.patch.tls"

KioqIE1ha2VmaWxlLm9yaWcJRnJpIEp1bCAxMSAxMDoyODo0MiAyMDAzDQot
LS0gTWFrZWZpbGUJCVdlZCBPY3QgIDkgMjI6NTU6MDEgMjAwMg0KKioqKioq
KioqKioqKioqDQoqKiogMTM2LDE0MSAqKioqDQotLS0gMTM2LDE0NSAtLS0t
DQogIGNvbXBpbGUgYXV0b191c2VyYS5jDQogIAkuL2NvbXBpbGUgYXV0b191
c2V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S43LjApXHJcbiIpOw0KKyAgIH0NCisgfQ0KKyANCiAgc3RydWN0
IGNvbW1hbmRzIHNtdHBjb21tYW5kc1tdID0gew0KICAgIHsgInJjcHQiLCBz
bXRwX3JjcHQsIDAgfQ0KICAsIHsgIm1haWwiLCBzbXRwX21haWwsIDAgfQ0K
ICAsIHsgImRhdGEiLCBzbXRwX2RhdGEsIGZsdXNoIH0NCisgLCB7ICJhdXRo
Iiwgc210cF9hdXRoLCBmbHVzaCB9DQogICwgeyAicXVpdCIsIHNtdHBfcXVp
dCwgZmx1c2ggfQ0KICAsIHsgImhlbG8iLCBzbXRwX2hlbG8sIGZsdXNoIH0N
CiAgLCB7ICJlaGxvIiwgc210cF9laGxvLCBmbHVzaCB9DQoqKioqKioqKioq
KioqKioNCioqKiA2MzcsNjQ0ICoqKioNCiAgLCB7IDAsIGVycl91bmltcGws
IGZsdXNoIH0NCiAgfSA7DQogIA0KISB2b2lkIG1haW4oKQ0KICB7DQogICAg
c2lnX3BpcGVpZ25vcmUoKTsNCiAgICBpZiAoY2hkaXIoYXV0b19xbWFpbCkg
PT0gLTEpIGRpZV9jb250cm9sKCk7DQogICAgc2V0dXAoKTsNCi0tLSA4NzIs
ODg0IC0tLS0NCiAgLCB7IDAsIGVycl91bmltcGwsIGZsdXNoIH0NCiAgfSA7
DQogIA0KISB2b2lkIG1haW4oYXJnYyxhcmd2KQ0KISBpbnQgYXJnYzsNCiEg
Y2hhciAqKmFyZ3Y7DQogIHsNCisgICBob3N0bmFtZSA9IGFyZ3ZbMV07DQor
ICAgY2hpbGRhcmdzID0gYXJndiArIDI7DQorIA0KICAgIHNpZ19waXBlaWdu
b3JlKCk7DQogICAgaWYgKGNoZGlyKGF1dG9fcW1haWwpID09IC0xKSBkaWVf
Y29udHJvbCgpOw0KICAgIHNldHVwKCk7DQo=
---1046051574-419774514-1057834480=:17858--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.A41.4.10.10307101354170.17858-200000>