Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix 2.2.5 + smtpd_sasl_local_domain. [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kutte128
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 173

PostPosted: Thu Dec 22, 2005 10:32 am    Post subject: Postfix 2.2.5 + smtpd_sasl_local_domain. [solved] Reply with quote

hi there,

after upgrading to postfix 2.2.5 (fom 2.0.x) my [b]smtpd_sasl_local_domain = $myhostname isn't working anymore.
it doesn't put the $myhostname behind the username anymore.

Code:

myhostname = host.domain.tld
[...]
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_local_domain = $myhostname


login with name@host.domain.tld as username works just fine.
can anybody help ?

best regards,
kutte128


Last edited by kutte128 on Fri Dec 23, 2005 9:09 am; edited 1 time in total
Back to top
View user's profile Send private message
kadeux
Tux's lil' helper
Tux's lil' helper


Joined: 21 Nov 2005
Posts: 103

PostPosted: Thu Dec 22, 2005 1:19 pm    Post subject: Reply with quote

Have you checked the settings for "SASLAUTHD_OPTS" in /etc/conf.d/saslauthd ?
Code:

# Config file for /etc/init.d/saslauthd

<snip>

# From 2.1.19, add "-r" to options for old behavior
# ie. reassemble user and realm to user@realm form.
# SASLAUTHD_OPTS="${SASLAUTH_MECH} -a pam -r"
SASLAUTHD_OPTS="${SASLAUTH_MECH} -a pam"


Enable the appropriate line according to your version of saslauthd.
Back to top
View user's profile Send private message
kutte128
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 173

PostPosted: Thu Dec 22, 2005 1:39 pm    Post subject: Reply with quote

hi,

yes i've added the -r option
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Dec 22, 2005 2:14 pm    Post subject: Reply with quote

Check here:-

http://postfix.state-of-mind.de/patrick.koetter/smtpauth/sasldb_configuration.html

It's in one of the big, brightly coloured boxes.
Back to top
View user's profile Send private message
kutte128
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 173

PostPosted: Thu Dec 22, 2005 2:54 pm    Post subject: Reply with quote

i'm not using the sasldb but a mysql-table - so my pwcheck_method should be saslauth.
my understandins of the sasl_local_domain = $myhostname is that if i don't send a realm, the realm should be automatically
named $myhostname. or did i get it wrong ? thats exactly what i need
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Dec 22, 2005 4:19 pm    Post subject: Reply with quote

This is the bit I think applies here:

Quote:
Important

Cyrus-SASL-2.x users!

If you set smtpd_sasl_local_domain = $myhostname, then you will always have to submit the REALM that equals $myhostname when you pass the username to SASL.

If you don't want to pass a REALM, then you must leave this parameter empty, but still you need to set it:

smtpd_sasl_local_domain =

Back to top
View user's profile Send private message
kutte128
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 173

PostPosted: Thu Dec 22, 2005 6:22 pm    Post subject: Reply with quote

hi,

hmm it doesn't work either.
it makes no difference if smtpd_sasl_local_domain is empty or not.
Back to top
View user's profile Send private message
kadeux
Tux's lil' helper
Tux's lil' helper


Joined: 21 Nov 2005
Posts: 103

PostPosted: Thu Dec 22, 2005 9:29 pm    Post subject: Reply with quote

kutte128 wrote:
yes i've added the -r option

Have you test it without the -r option, too ?

I ask because the comment in the config file may be too generalizing. I think it's really depending on the SASL versions and if you have defined a realm during creation of the SASL database.

If I remember it right only the part after the rightmost @ is interpreted as a realm. Old versions of saslauthd have ignored the realm submitted by a client. So maybe the parts of the username/realm in the submitted string are now interpreted by saslauthd in a different way and therefore didn't match the database entries. :?

But that's only guesswork as I could not check it at the moment. :(

If it not works as expected with or without the "-r" option with different settings for "smtpd_sasl_local_domain", you should consider to submit the exact versions of all packages which are concerned before/after you have updated (eg. cyrus-sasl, pam, mysql,..) and maybe the database entries of a test user. Thus someone else with a similar setup could help you better. :wink:
Back to top
View user's profile Send private message
kutte128
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 173

PostPosted: Fri Dec 23, 2005 8:50 am    Post subject: Reply with quote

i tried it without the -r option and it didin't worked.

i also tried it with postfix 2.1.5 but it didn't worked also - so it's not a postfix-bug.
i have another mailserver running exactly like it should - with the same cyrus-sasl and mysql versions an the same use-flags and i cannot find any differences in the conf-files.
Back to top
View user's profile Send private message
kutte128
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 173

PostPosted: Fri Dec 23, 2005 9:09 am    Post subject: Reply with quote

i found the error.

it wasn't sasl or postfix, it was a missing default_domain in authmysqlrc.
thanks for the help !

best regards,
kutte128
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum