Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd September 2011, 12:29
r_s r_s is offline
Junior Member
 
Join Date: Feb 2011
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default SASL PLAIN authentication failed: no mechanism available

Hello.

Yesterday I've updated my Debian Squeeze to Wheezy. Since then, I can't send emails anymore. (At least I assume it has something to do with the update to Wheezy, because that's the only thing I changed. Everything worked well before the update)

Quote:
Originally Posted by /var/log/syslog
Sep 3 09:10:20 grind postfix/smtpd[29754]: warning: unknown[x.x.x.x]: SASL PLAIN authentication failed: no mechanism available
Sep 3 09:10:21 grind postfix/smtpd[29754]: warning: unknown[x.x.x.x]: SASL LOGIN authentication failed: no mechanism available
Code:
$ cat /etc/default/saslauthd
START=yes
DESC="SASL Authentication Daemon"
NAME="saslauthd"
MECHANISMS="pam"
MECH_OPTIONS=""
THREADS=5
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
Code:
$ cat /etc/postfix/sasl/smtpd.conf 
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: ispconfig
sql_passwd: *****
sql_database: dbispconfig
sql_select: select password from mail_user where email = '%u'
Sasalauthd starts without errors, but the userlist is empty (I don't know if intentionally):

Code:
$ /etc/init.d/saslauthd restart
Stopping SASL Authentication Daemon: saslauthd.
Starting SASL Authentication Daemon: saslauthd.
$ sasldblistusers2 
$
Any ideas? Thank you in advance!
Reply With Quote
Sponsored Links
  #2  
Old 3rd September 2011, 16:09
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default

Quote:
Originally Posted by r_s View Post
Yesterday I've updated my Debian Squeeze to Wheezy.
Why?

Wheezy is for testing and development purposes and is entirely unsupported at production level

Your system is probably broken - who knows how badly.

You may need to try to downgrade to the stable Debian version and run an ISPConfig 3 update somehow - at least you must downgrade Dovecot because Dovecot v.2 is not yet supported.
Reply With Quote
  #3  
Old 3rd September 2011, 16:20
r_s r_s is offline
Junior Member
 
Join Date: Feb 2011
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by CSsab View Post
Why?
Exactly because of this:

Quote:
Wheezy is for testing and development purposes and is entirely unsupported at production level
Quote:
You may need to try to downgrade somehow - at least you must downgrade Dovecot because Dovecot v.2 is not yet supported.
I don't have dovecot, but courier. My ISPConfig-installation has 'grown' since Lenny (installation is according to http://www.howtoforge.com/perfect-se...-ispconfig3-p3).

Last edited by r_s; 3rd September 2011 at 16:33.
Reply With Quote
  #4  
Old 3rd September 2011, 16:46
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default

Okay.

I am not sure about courier but as a troubleshooting start point you could look here:

http://www.courier-mta.org/authlib/R...authmysql.html

I had a similar problem with Dovecot and it was solved by installing package dovecot-mysql.

I hope your problem is as easily fixed.

Reply With Quote
The Following User Says Thank You to CSsab For This Useful Post:
r_s (3rd September 2011)
  #5  
Old 3rd September 2011, 17:02
r_s r_s is offline
Junior Member
 
Join Date: Feb 2011
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by CSsab View Post
I am not sure about courier but as a troubleshooting start point you could look here:
Thanks, but I don't assume that my problem is caused by courier, but by postfix. It happens when I try to send an email via smtp. Checking emails works without problems.

But since you mentioned dovecot: Is there any advantage of dovecot over courier? Further I still (?) use MyDNS.
Reply With Quote
  #6  
Old 3rd September 2011, 17:25
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default

Quote:
Originally Posted by r_s View Post
Is there any advantage of dovecot over courier?
Till sums it up here:
http://www.howtoforge.com/forums/showthread.php?t=53538

Quote:
Further I still (?) use MyDNS.
MyDNS is still supported as far as I know.

I use bind9 and it works fine - i think to change over would be fairly easy on a new system.
Reply With Quote
  #7  
Old 4th September 2011, 15:40
r_s r_s is offline
Junior Member
 
Join Date: Feb 2011
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by CSsab View Post
Thanks, as I assumed, nothing critical.

Quote:
MyDNS is still supported as far as I know.

I use bind9 and it works fine - i think to change over would be fairly easy on a new system.
By time, I will see if it is possible to switch over, MyDNS' insserv errors are a little bit annoying, although not critical either.

But so far, my postfix problem remains unsolved... :-(
Reply With Quote
  #8  
Old 4th September 2011, 19:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you check if there's another smtpd.conf on your system?
Code:
updatedb
locate smtpd.conf
Did your main.cf change?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 4th September 2011, 19:50
r_s r_s is offline
Junior Member
 
Join Date: Feb 2011
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
Can you check if there's another smtpd.conf on your system?
Code:
updatedb
locate smtpd.conf
Only one:

Code:
$ locate smtpd.conf
/etc/postfix/sasl/smtpd.conf
$
Quote:
Did your main.cf change?
Yes, acutally it did. But I copied back the main.cf~ from July 6, same result.

This is the diff:
Code:
$ diff main.cf main.cf~
66,70d65
< content_filter = amavis:[127.0.0.1]:10024
< receive_override_options = no_address_mappings
< message_size_limit = 0
< mailbox_command = procmail -a "$EXTENSION"
< inet_protocols = ipv4
This is the complete (new) main.cf (comments stripped):

Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

append_dot_mydomain = no

readme_directory = /usr/share/doc/postfix

smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = grind.***.***
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = grind.***.***, localhost, localhost.localdomain
relayhost = 
mynetworks = 127.0.0.0/8 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_tls_security_level = may
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
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
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = maildrop
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
message_size_limit = 0
mailbox_command = procmail -a "$EXTENSION"
inet_protocols = ipv4
Reply With Quote
  #10  
Old 5th September 2011, 10:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Have you tried to restart saslauthd?

Can you post your master.cf as well?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail2ban + sasl problem and Solution pititis General 1 2nd March 2011 07:02
Cannot login to SquirrelMail sellotape Installation/Configuration 13 26th October 2010 11:03
Need some Hints to "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]" wahid HOWTO-Related Questions 10 25th August 2010 15:18
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


All times are GMT +2. The time now is 14:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.