Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th April 2006, 20:16
laser144 laser144 is offline
Member
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default Virtual Users And Domains HowTo saslauthd problem

Hi,

Being relatively new to Linux (Debian Sarge), I followed Falko Timme's 'How To Virtual Users And Domains With Postfix, Courier

And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV)' to the letter.

Unfortunately my saslauthd won't start. I subsequently tried apt-get update and apt-get upgrade, which resulted in this message:


invoke-rc.d: initscript saslauthd, action "start" failed

Any help or hints on how to get this daemon working or how to configure saslauth are most welcome!

Regards,

Andy
Reply With Quote
Sponsored Links
  #2  
Old 25th April 2006, 22:07
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,434
Thanks: 813
Thanked 5,209 Times in 4,085 Posts
Default

Did you copy and paste the saslauthd script to your server with an SSH client like putty on windows? Its really easy to make a mistake if you type it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th April 2006, 22:29
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default Starting up saslauthd

Hello there, i had the same problem with my Debian system.
This worked for me, maybe it is also helpful to you:

Edit /etc/default/saslauthd:

START=yes
MECHANISMS=''pam''

saslauthd is not started after package installation (we’ll do it later)!
Next file to edit is /etc/postfix/sasl/smtpd.conf:

pwcheck_method: saslauthd

Add the next few lines in /etc/postfix/main.cf to enable SASL:

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

postfix does a chroot so it can’t communicate with saslauthd. This is the tricky part:

rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl

Now restart postfix and start saslauthd

/etc/init.d/postfix restart
/etc/init.d/saslauthd start


Hans
Reply With Quote
  #4  
Old 26th April 2006, 10:56
laser144 laser144 is offline
Member
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Works like a charm: thanks Hans!

@Till: I did use Putty as my typing skills are deplorable...

Grt,

Andy
Reply With Quote
  #5  
Old 7th May 2006, 18:06
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

@Hans
Quote:
Edit /etc/default/saslauthd:

START=yes
MECHANISMS=''pam''
And what about:

Quote:
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
Did you deleted that line ?
-----------------------------------------
Quote:
Next file to edit is /etc/postfix/sasl/smtpd.conf:

pwcheck_method: saslauthd
What about:

mech_list: plain login

Did you deleted that line?
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 7th May 2006 at 18:09.
Reply With Quote
  #6  
Old 7th May 2006, 18:40
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

This works until reboot.

After reboot /var/run/saslauthd/ is created again

/etc/init.d/saslauthd start

failed again
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Reply With Quote
  #7  
Old 8th May 2006, 00:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Not if you modify the saslauthd init script appropriately...
__________________
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
  #8  
Old 9th May 2006, 17:22
chrno chrno is offline
Member
 
Join Date: Apr 2006
Posts: 70
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
Not if you modify the saslauthd init script appropriately...

sorry ... where's the isaslauthd's init script located? Will it be in /etc/init.d/ ?

Thanks!
Reply With Quote
  #9  
Old 9th May 2006, 17:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Sorry, you don't have to modify the saslauthd init script, but you must configure saslauthd exactly as outlined in section 5 here: http://www.howtoforge.com/virtual_po...ota_courier_p2
__________________
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 9th May 2006, 21:19
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
 
Default

Quote:
Originally Posted by falko
Sorry, you don't have to modify the saslauthd init script, but you must configure saslauthd exactly as outlined in section 5 here: http://www.howtoforge.com/virtual_po...ota_courier_p2
Great! Is that final & all-in-one & all-that-you-need solutions for saslauthd problems described all over this forums?

I hope so, my firefox is full of bookmarks pointing to various solutions and "solutions" to this annoying problem.

Please confirm.
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
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
Virtual Users + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) brianwc HOWTO-Related Questions 6 9th May 2007 02:44
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto fenix Server Operation 4 11th March 2006 02:53
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs Rocky Installation/Configuration 24 9th February 2006 11:08
Virtual Users And Domains With Postfix, etc, problem with SMTP/Auth wrong password ggere HOWTO-Related Questions 15 14th November 2005 16:08


All times are GMT +2. The time now is 12:53.


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