SMTP autentifikacia

Martin Hudec corwin at aeternal.net
Mon Oct 31 18:48:25 CET 2005


Ahoj Roman,


On Mon, Oct 31, 2005 at 09:58:52AM +0100 or thereabouts, Roman Kubis wrote:
> Zdravim,
> chcel by som sa opytat machrov na FreeBSD ako maju vyriesenu autentifikaciu
> na smtp server ak su pouzite virtualne domeny pomocou MySQL. Jedna sa mi o
> FreeBSD 5.4. Mam spusteny saslauthd, spolupracuje to s databazou ale do 5
> minut kernel "zhodi" saslauthdemona.

  Cez saslauthd, ktory si riesi overovanie cez pam_mysql, ktore si pyta
  udaje z databazy. Teraz to riesim na novom serveri.

  Akurat, ze mam jeden problem :). Saslauthd je v /etc/rc.d a mysql je v
  /usr/local/etc/rc.d, a tak sa mysqld spusti neskor nez saslauthd. A
  saslauthd je z toho na vetvi a vypise:


  Oct 31 18:40:41 server postfix/smtpd[623]: sql_select option missing
  Oct 31 18:40:41 server postfix/smtpd[623]: auxpropfunc error no
  mechanism available
  Oct 31 18:40:41 server saslauthd[396]: in openpam_load_module(): no
  pam_mysql.so found
  Oct 31 18:40:41 server saslauthd[396]: do_auth         : auth failure:
  [user=test at domena.test] [service=smtp] [realm=domena.test] [mech=pam]
  [reason=PAM start error]
  

  Ta prva dvojica (sql_select a auxpropfunc) sa objavuje vzdy, suvisi to
  s tym, ze nemam prislusne nastavenia v /usr/local/lib/sasl2/smtp.conf,
  mam tam len tieto dva riadky:

  pwcheck_method: saslauthd
  mech_list: plain login

  sql_select mu je zbytocne davat, pokial som spravne pochopil, ten si
  vyzaduje v tomto pripade heslo v plaintext formate a to ja nemam (je
  iba v md5). Neviem ako sa tych dvoch hlasok zbavit :/.

  Pokial ide o zvysne (openpam_load_module a do_auth), tak tie
  predpokladam suvisia s poradim startovania sluzieb, lebo restart
  saslauthd to vyriesi.

  Cestou je mozno hodit mysql do /etc/rc.d, nakolko aj postfix na nom
  zavisi (postfix mam enabled v mailer.conf).
  


-- 
Martin Hudec


   * 421 907 303 393
   * corwin at aeternal.net
   * https://aeternal.net

"Nothing travels faster than the speed of light with the possible 
exception of bad news, which obeys its own special laws."

   Douglas Adams, "The Hitchhiker's Guide to the Galaxy"



More information about the Users-l mailing list