HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Virtual Users And Domains HowTo saslauthd problem (http://www.howtoforge.com/forums/showthread.php?t=3917)

laser144 25th April 2006 21:16

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

till 25th April 2006 23:07

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.

Hans 25th April 2006 23:29

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

laser144 26th April 2006 11:56

Works like a charm: thanks Hans!

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

Grt,

Andy

nenad 7th May 2006 19:06

@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 7th May 2006 19:40

This works until reboot.

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

/etc/init.d/saslauthd start

failed again

falko 8th May 2006 01:41

Not if you modify the saslauthd init script appropriately...

chrno 9th May 2006 18:22

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!

falko 9th May 2006 18:54

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

nenad 9th May 2006 22:19

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. :confused:

Please confirm.


All times are GMT +2. The time now is 21:05.

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