[Frugalware-darcs] frugalware-current: cyrus-sasl-2.1.22-9-i686

VMiklos vmiklos at frugalware.org
Tue Jun 5 23:24:36 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalware-current;a=darcs_commitdiff;h=20070605212239-e2957-90778fa8a88c887980f17c48396afffd2ebd0973.gz;

[cyrus-sasl-2.1.22-9-i686
VMiklos <vmiklos at frugalware.org>**20070605212239
 added a README.Frugalware
 fixed initscript's stop action
] {
hunk ./source/network/cyrus-sasl/FrugalBuild 6
-pkgrel=3D8
+pkgrel=3D9
hunk ./source/network/cyrus-sasl/FrugalBuild 14
-	$pkgname-2.1.21-checkpw.patch psql.patch rc.saslauthd saslauthd)
+	$pkgname-2.1.21-checkpw.patch psql.patch rc.saslauthd saslauthd \
+	README.Frugalware)
hunk ./source/network/cyrus-sasl/FrugalBuild 19
-          'b4eeaf03a4b672f3153e0b5ef2eec59802d0214d'
-	  '244d0aa46685256c66ec6d1c10b051c795f5533b'
-	  'f3c648fa7e5d9047bd051abbf70e3532abaa0fad')
+          'b4eeaf03a4b672f3153e0b5ef2eec59802d0214d' \
+          'f98b0c07893ac46c17f100c515f495bbfbeecca6' \
+          'f3c648fa7e5d9047bd051abbf70e3532abaa0fad' \
+          '50150f268a1c3fd6de37ed88606ba8937f6f2b34')
hunk ./source/network/cyrus-sasl/FrugalBuild 48
-	## daemon =

-	## NOTE: this daemon need an init script (never worked).
-	## See 'man saslauthd' - crazy -
hunk ./source/network/cyrus-sasl/FrugalBuild 55
+	Fdoc README.Frugalware
addfile ./source/network/cyrus-sasl/README.Frugalware
hunk ./source/network/cyrus-sasl/README.Frugalware 1
+=3D=3D=3D Configuring
+
+This mini-howto helps you to install the saslauthd server using postfix wh=
ich
+will authenticate using users and passwords from `/etc/{passwd,shadow}`.
+
+First install the necessary packages:
+
+--------------
+# pacman-g2 -S postfix saslauthd
+--------------
+
+Enable sasl in postfix's config by appending the following lines to
+`/etc/postfix/main.cf`:
+
+--------------
+smtpd_sasl_auth_enable =3D yes
+smtpd_sasl_local_domain =3D $myhostname
+smtpd_sasl_security_options =3D noanonymous
+--------------
+
+You may want to append
+
+--------------
+broken_sasl_auth_clients =3D yes
+--------------
+
+as well.
+
+Put the following lines to `/usr/lib/sasl2/smtpd.conf`:
+
+--------------
+pwcheck_method: saslauthd
+mech_list: PLAIN LOGIN
+--------------
+
+Edit `/etc/sysconfig/saslauthd` by changing the following lines:
+
+--------------
+SASL_DIE=3D1
+--------------
+
+to
+
+--------------
+SASL_DIE=3D0
+--------------
+
+and
+
+--------------
+auth_mechanism=3D""
+--------------
+
+to
+
+--------------
+auth_mechanism=3D"shadow"
+--------------
+
+Now you can start saslauthd by
+
+--------------
+service saslauthd start
+--------------
+
+as well as enabled in by default on startup:
+
+--------------
+service saslauthd add
+--------------
+
+Issue `id postfix` and see if the `daemon` group is listed. If not, then a=
dd
+`postfix` to the `daemon` group:
+
+--------------
+usermod -G daemon postfix
+--------------
+
+Finally restart postfix:
+
+--------------
+service postfix restart
+--------------
+
+Compeleted!
+
+=3D=3D=3D Verifying
+
+We test it using telnet. We need perl to generate the string for the SASL
+authentication:
+
+--------------
+$ perl -MMIME::Base64 -e 'print encode_base64("vmiklos\0vmiklos\0secret");=
'
+dm1pa2xvcwB2bWlrbG9zAHNlY3JldA=3D=3D
+--------------
+
+Then use telnet:
+
+--------------
+$ telnet host.com 25
+Trying ip...
+Connected to host.com.
+Escape character is '^]'.
+220 host.com ESMTP Postfix
+ehlo my.dhcp
+250-host.com
+250-PIPELINING
+250-SIZE 10240000
+250-VRFY
+250-ETRN
+250-AUTH LOGIN PLAIN
+250-ENHANCEDSTATUSCODES
+250-8BITMIME
+250 DSN
+AUTH PLAIN dm1pa2xvcwB2bWlrbG9zAHNlY3JldA=3D=3D
+235 2.0.0 Authentication successful
+quit
+221 2.0.0 Bye
+Connection closed by foreign host.
+--------------
hunk ./source/network/cyrus-sasl/rc.saslauthd 42
-		kill `cat /var/run/saslauthd.pid`
+		kill `cat /var/run/courier/saslauthd.pid`
}


More information about the Frugalware-darcs mailing list