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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th April 2006, 21:47
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default Postfix authentication error libsasl12 related?

Hi all,

I'm installing the tutorial for debian 3 on one of the virtual machines I built in the xen 3 tutorial, and it won't let me install libsasl2-modules, I get this error:

The following packages have unmet dependencies:
libsasl2-modules: Depends: libsasl2 (= 2.1.19-1.5) but 2.1.19-1.9 is to be installed

I continue to install postfix and then try to run

Telnet localhost 25

And get
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

I less the mail.err file and it says there an SASL authentication error. Does anyone know how to get libsasl2 installed using apt-get, my apt-get sources are stable, not testing?

My /etc/postfix/main.cf looks like this:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

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

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h

myhostname = xen1.logicalwebhost.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = xen1.logicalwebhost.com, localhost.logicalwebhost.com, localhost relayhost = mynetworks = 127.0.0.0/8 mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom

I have checked the Bind config files and they look okay to me.

Thanks,
Cameron
Reply With Quote
Sponsored Links
  #2  
Old 6th April 2006, 23:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

What's in /etc/apt/sources.list?

Quote:
Originally Posted by unclecameron
mydestination = xen1.logicalwebhost.com, localhost.logicalwebhost.com, localhost relayhost = mynetworks = 127.0.0.0/8 mailbox_command = procmail -a "$EXTENSION"
This must go into multiple lines:

Code:
mydestination = xen1.logicalwebhost.com, localhost.logicalwebhost.com, localhost 
relayhost = 
mynetworks = 127.0.0.0/8 
mailbox_command = procmail -a "$EXTENSION"

Quote:
Originally Posted by unclecameron
smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom
This must be

Code:
smtpd_sasl_security_options = noanonymous 
broken_sasl_auth_clients = yes 
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key 
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt 
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem 
smtpd_tls_loglevel = 1 
smtpd_tls_received_header = yes 
smtpd_tls_session_cache_timeout = 3600s 
tls_random_source = dev:/dev/urandom
__________________
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
  #3  
Old 7th April 2006, 07:29
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default apt sources and error log

Thanks,

All of the lines in the main.cf are actually on separate lines and read like the code you posted. The word wrap on this forum changed them. I checked the /etc/apt/sources.list, and here's what it says:
----------------------------------------------
deb http://mirrors.kernel.org/debian/ stable main
deb-src http://mirrors.kernel.org/debian/ stable main

deb http://security.debian.org/ stable/updates main
----------------------------------------------
Is there a way to find out what specific part of the authentication is broken, here is the output from less mail.err (1 line only)
----------------------------------------------
Jul 6 08:00:04 vm01 postfix/smtpd[4576]: fatal: no SASL authentication mechanisms
----------------------------------------------
I ran ps aux|grep sasl and got:
----------------------------------------------
root 4563 0.0 1.2 6868 1648 ? Ss Jul06 0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
----------------------------------------------
any ideas?

Thanks,
Cameron
San Diego
Reply With Quote
  #4  
Old 7th April 2006, 13:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by unclecameron
Is there a way to find out what specific part of the authentication is broken, here is the output from less mail.err (1 line only)
----------------------------------------------
Jul 6 08:00:04 vm01 postfix/smtpd[4576]: fatal: no SASL authentication mechanisms
Please have a look at the Postfix configuration here: http://www.howtoforge.com/perfect_setup_debian_sarge_p4

What's in /etc/postfix/sasl/smtpd.conf?
__________________
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
  #5  
Old 8th April 2006, 21:40
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default

pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true

I redid the steps in the postfix and restarted it, but when I run:

vm01:/etc/postfix/ssl# /etc/init.d/saslauthd start
Starting SASL Authentication Daemon: (failed).

but if libsasl2-modules didn't install, sasl wouldn't run, right?

I tried to reinstall libsasl2 sasl2-bin libsasl2-modules, but I get the same error with the packages, and saslauthd still won't start.

Thanks,
Cameron
San Diego
Reply With Quote
  #6  
Old 9th April 2006, 19:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Did you change your /etc/apt/sources.list recently? Did you have other sources (testing, unstable) in it?
__________________
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
  #7  
Old 9th April 2006, 20:05
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default Xen Debian reinstall?

No, I haven't changed anything, but I'm going to start over, I'm having problems with libapache2-mod-perl2 later on in the install, and my perl config is screwing up for spamassassin config. I essentially have a Xen 3 Debian box (your tutorial) that I turned vm01 into a debian 3.0 per your perfect debian 3 install to drop ISPconfig on. So how do I format this vm01 and start over? If I rm -rf * from / on vm01, then how can I bootstrap in and install debian over in this dom1, it will erase that command? If I boot from CD-ROM, I don't think it will see the xen machine.

Thanks,
Cameron
San Diego
Reply With Quote
  #8  
Old 10th April 2006, 06:17
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default

I started over and am having the same problems, I think the reason is that the Xen 3 install uses debootstrap to configure the dom1, and installs testing packages and libraries, then when you try to install the Debian 3 perfect install, none of the packages work because of dependency issues. I'm trying to figure out how to install a base system on dom1 using stable packages to get around this. If anyone knows how, let me know.

Thanks,
Cameron
San Diego
Reply With Quote
  #9  
Old 10th April 2006, 10:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

http://www.howtoforge.com/forums/sho...90&postcount=2
__________________
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
  #10  
Old 13th April 2006, 08:53
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
 
Default

I've reformatted my sda and installed Xen 3 with Debian 3 now 4 times, and have the same errors, spent days and I still get the error:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

my /etc/apt/sources.list says:

deb http://mirrors.kernel.org/debian/ stable main
deb-src http://mirrors.kernel.org/debian/ stable main

deb http://security.debian.org/ stable/updates main

deb http://mirrors.kernel.org/debian/ stable main
deb-src http://mirrors.kernel.org/debian/ stable main

I also get errors with these libraries:
libdb3++-dev

so I just didn't install that package, and bind9 seems to work

/var/log/mail.err says:
Apr 12 22:29:45 xen1 postfix/smtpd[3353]: fatal: no SASL authentication mechanisms

I ran:
xen1:/# dpkg -l |grep libsasl
ii libsasl2 2.1.19.dfsg1-0.1 Authentication abstraction library

Is there a way to apt-get remove libsasl2-modules?
Is there a way to uninstall and reinstall ONLY libsasl and/or saslauthd?

I've been working on this for days.

Thanks,
Cameron
San Diego
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
smtpd, SASL authentication failure: Steve_P Installation/Configuration 4 6th February 2009 17:26
SASL AUTH with postfix on Sarge keulu Server Operation 6 31st August 2006 23:49
Virtual Users And Domains With Postfix, Courier And MySQL: POP/IMAP authentication SeanG HOWTO-Related Questions 3 1st January 2006 18:08
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 16:20
postfix related to: Undelivered Mail Returned to Sender Ovidiu Server Operation 5 25th November 2005 13:36


All times are GMT +2. The time now is 07:55.


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