Loading ...
Sorry, an error occurred while loading the content.

292294sasl authention refused

Expand Messages
  • Mohsen Pahlevanzadeh
    Apr 1, 2013
    • 0 Attachment
      Dear all
      My master.cf:
      ////////////////////////////////////////////////////
      smtp inet n - n - - smtpd
      submission inet n - n - - smtpd -o
      smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o
      smtpd_client_restrictions=permit_sasl_authenticated,reject_unauth_destination,reject -o smtpd_sasl_security_options=noanonymous,noplaintext -o smtpd_sasl_tls_security_options=noanonymous
      smtps inet n - n - - smtpd -o
      smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o
      smtpd_client_restrictions=permit_sasl_authenticated,reject -o
      smtpd_tls_auth_only=yes -o
      smtpd_sasl_security_options=noanonymous,noplaintext -o
      smtpd_sasl_tls_security_options=noanonymous
      pickup fifo n - n 60 1 pickup
      cleanup unix n - n - 0 cleanup
      qmgr fifo n - n 300 1 qmgr
      tlsmgr unix - - n 1000? 1 tlsmgr
      rewrite unix - - n - - trivial-rewrite
      bounce unix - - n - 0 bounce
      defer unix - - n - 0 bounce
      trace unix - - n - 0 bounce
      verify unix - - n - 1 verify
      flush unix n - n 1000? 0 flush
      proxymap unix - - n - - proxymap
      proxywrite unix - - n - 1 proxymap
      smtp unix - - n - - smtp
      relay unix - - n - - smtp
      showq unix n - n - - showq
      error unix - - n - - error
      retry unix - - n - - error
      discard unix - - n - - discard
      local unix - n n - - local
      virtual unix - n n - - virtual
      lmtp unix - - n - - lmtp
      anvil unix - - n - 1 anvil
      scache unix - - n - 1 scache
      ////////////////////////////////////////////////////////

      my main.cf :

      //////////////////////
      broken_sasl_auth_clients = yes
      command_directory = /opt/postfix/usr/sbin
      config_directory = /opt/postfix/etc/postfix
      daemon_directory = /opt/postfix/usr/libexec/postfix
      data_directory = /opt/postfix/var/lib/postfix
      debug_peer_level = 2
      debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
      $daemon_directory/$process_name $process_id & sleep 5
      html_directory = no
      inet_protocols = ipv4
      mail_owner = postfix
      mailq_path = /opt/postfix/usr/bin/mailq
      manpage_directory = /opt/postfix/usr/local/man
      message_size_limit = 30720000
      mydestination = mail.pahlevanzadeh.info , loalhost,
      localhost.localdomain
      myhostname = mail.pahlevanzadeh.info
      mynetworks = 127.0.0.0/8
      newaliases_path = /opt/postfix/usr/bin/newaliases
      proxy_read_maps = $local_recipient_maps $mydestination
      $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps
      $virtual_mailbox_domains $relay_recipient_maps $relay_domains
      $canonical_maps $sender_canonical_maps $recipient_canonical_maps
      $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
      queue_directory = /opt/postfix/var/spool/postfix
      readme_directory = no
      sample_directory = /opt/postfix/etc/postfix
      sendmail_path = /opt/postfix/usr/sbin/sendmail
      setgid_group = postdrop
      smtpd_recipient_restrictions = permit_mynetworks,
      permit_sasl_authenticated, reject_unauth_destination
      smtpd_sasl_auth_enable = yes
      smtpd_sasl_authenticated_header = yes
      smtpd_sasl_path = /opt/postfix/etc/postfix/smtpd.conf
      smtpd_sasl_type = dovecot
      smtpd_tls_cert_file = /opt/postfix/etc/postfix/smtpd.cert
      smtpd_tls_key_file = /opt/postfix/etc/postfix/smtpd.key
      smtpd_use_tls = yes
      unknown_local_recipient_reject_code = 550
      virtual_alias_domains =
      virtual_alias_maps =
      proxy:mysql:/opt/postfix/etc/postfix/mysql-virtual_forwardings.cf,
      mysql:/opt/postfix/etc/postfix/mysql-virtual_email2email.cf
      virtual_gid_maps = static:5000
      virtual_mailbox_base = /home/vmail
      virtual_mailbox_domains =
      proxy:mysql:/opt/postfix/etc/postfix/mysql-virtual_domains.cf
      virtual_mailbox_maps =
      proxy:mysql:/opt/postfix/etc/postfix/mysql-virtual_mailboxes.cf
      virtual_transport = dovecot
      virtual_uid_maps = static:5000
      postconf: warning: /opt/postfix/etc/postfix/main.cf: unused parameter:
      virtual_create_maildirsize=yes
      postconf: warning: /opt/postfix/etc/postfix/main.cf: unused parameter:
      virtual_maildir_extended=yes
      postconf: warning: /opt/postfix/etc/postfix/main.cf: unused parameter:
      dovecot_destination_recipient_limit=1
      /////////////////////////

      my smtpd.conf:

      //////////////////////////
      pwcheck_method: saslauthd
      mech_list: plain login
      allow_plaintext: true
      auxprop_plugin: mysql
      sql_hostnames: 127.0.0.1
      sql_user: mail_admin
      sql_passwd: mail_admin_password
      sql_database: mail
      sql_select: select password from users where email = '%u'
      ///////////////////////////////

      then i use postfix stop; postfix start and i get the following log after
      telnet 0 25:
      ////////////////////////////////////////////////////////////////////////
      Apr 1 04:18:43 mail postfix/postfix-script[8312]: starting the Postfix
      mail system
      Apr 1 04:18:43 mail postfix/master[8313]: daemon started -- version
      2.9.5, configuration /opt/postfix/etc/postfix/
      Apr 1 04:18:52 mail postfix/smtpd[8317]: warning: dict_nis_init: NIS
      domain name not set - NIS lookups disabled
      Apr 1 04:18:52 mail postfix/smtpd[8317]: connect from
      localhost[127.0.0.1]
      Apr 1 04:18:52 mail postfix/smtpd[8317]: warning: SASL: Connect
      to /opt/postfix/etc/postfix/smtpd.conf failed: Connection refused
      Apr 1 04:18:52 mail postfix/smtpd[8317]: fatal: no SASL authentication
      mechanisms
      Apr 1 04:18:53 mail postfix/master[8313]: warning:
      process /opt/postfix/usr/libexec/postfix/smtpd pid 8317 exit status 1
      Apr 1 04:18:53 mail postfix/master[8313]:
      warning: /opt/postfix/usr/libexec/postfix/smtpd: bad command startup --
      throttling
      ////////////////////////////////////////////////////////////////////

      I don't know about my sasl. i read guide of postfix. and change perform
      postfix binary installation to compile...

      Yours,
      Mohsen
    • Show all 2 messages in this topic