Postfix Vs My server Requires Authentication

Discussion in 'HOWTO-Related Questions' started by MonoSwim, Oct 30, 2006.

  1. MonoSwim

    MonoSwim New Member

    I have a centos 4.4 installed in a 32 bits PC, I configured DNS, apache, FTP, I follow this tutorial

    http://www.howtoforge.com/linux_postfix_virtual_hosting part 1 and 2

    And everithing is fine...

    BUT I neet that the postfix only send email IF the "outlook express" has the option MY SERVER REQUIRES AUTHENTICATION checked on...And if not has this checked out it has to give an error...

    I have been trying and trying and trying but nothing :-(

    my main.cf has

    smtp_sasl_auth_enable = no
    smtpd_sasl_auth_enable = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes

    what im I doing wrong ?

    THANKS !!!
    EDIT: my messages file says this...postfix/smtpd[5056]: auxpropfunc error no mechanism available, how can I put auxproc available? I cant use auxprox ? ut width de saslauthd it didn't work neither...
     
    Last edited: Oct 30, 2006
  2. MonoSwim

    MonoSwim New Member

    If I don't click in MY SERVER REQUIRES AUTHENTICATION the mail doesn't go, thats is OK, but wuen I click it and put a WRONG PASSWORD the mail is sent :mad:

    what is goin on ?
     
  3. falko

    falko Super Moderator Howtoforge Staff

  4. MonoSwim

    MonoSwim New Member

    Now is working (I don't know how I did it) but I have de same problem my problem...In my log:

    auxpropfunc error no mechanism available

    THANX
     
  5. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/postfix/sasl/smtpd.conf?
     
  6. MonoSwim

    MonoSwim New Member

    I don't have that file, I'm using CENTOS server 4.4...

    In my /usr/lib/sasl/smtpd.conf

    pwcheck_method: saslauthd
    saslauthd_version: 2

    and in my /usr/lib/sasl2.smtpd.conf

    pwcheck_method: saslauthd

    And in my /etc/sysconfig/saslauthd

    # Directory in which to place saslauthd's listening socket, pid file, and so
    # on. This directory must already exist.
    SOCKETDIR=/var/run/saslauthd

    # Mechanism to use when checking passwords. Run "saslauthd -v" to get a list
    # of which mechanism your installation was compiled to use.
    #MECH=shadow
    MECH=shadow

    # Additional flags to pass to saslauthd on the command line. See saslauthd(8)
    # for the list of accepted flags.
    FLAGS=

    I'm getting crazy, reguards and thanxs
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Then have a look here: http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier
    It should apply to CentOS as well.

    Try this in /usr/lib/sasl2/smtpd.conf:

    Code:
    pwcheck_method: authdaemond
    log_level: 3
    mech_list: PLAIN LOGIN
    authdaemond_path:/var/spool/authdaemon/socket
     
  8. MonoSwim

    MonoSwim New Member

    Pero con ese sistema de donde saca las contraseñas para autenticar ?

    porque yo las tengo en el sasldb, pero cambié lo que me dijiste y no me toma las contraseñas, ninguna...

    Saludos
    PD: Yo en /var/spool no tenti ningún directorio authdeamon, ni con find o locate me aparece...
     
    Last edited: Nov 7, 2006
  9. falko

    falko Super Moderator Howtoforge Staff

    Your chances of getting an answer are much higher if you post in English...
     
  10. MonoSwim

    MonoSwim New Member

    jajajajajajajaja, I'm sorry, I'm from Argentina...We speack in spanish...I Forget it...

    The question is, where does the authdaemond take the passwords from ?

    Becouse I'm using the sasldb, and when I change what you said IT didn't take me any password, every password was not taken

    Reguards
    PD: In my centos I dont have a authdeamon dir, I look for it width FIND, WHEREIS AND LOCATE, and nothing...
     
    Last edited: Nov 8, 2006
  11. falko

    falko Super Moderator Howtoforge Staff

    Normally from /etc/shadow, but if you use sasldb then the passwords are stored in there.
     

Share This Page