On 05/25/2017 06:20 PM, Daniel Bareiro wrote:
> Hi!
>
> On 24/05/17 21:18, Daniel Bareiro wrote:
>
>> Hi again.
>>
>> On 24/05/17 17:46, Daniel Bareiro wrote:
>>
>>> Maybe this question is not 100% about Postfix, but it is related. I am
>>> configuring a Postifx server with SASL authentication.
>>>
>>> When I do a test to authenticate, I get an error:
>>>
>>> ------------------------------------------------------------------
>>> root@server2:~# saslpasswd2 -c daniel
>>> ------------------------------------------------------------------
>>> root@server2:~# testsaslauthd -u daniel -p password
>>> 0: NO "authentication failed"
>>> ------------------------------------------------------------------
>>>
>>> However it works when I provide the realm:
>>>
>>> ------------------------------------------------------------------
>>> root@server2:~# testsaslauthd -u daniel -r server2 -p password
>>> 0: OK "Success."
>>> ------------------------------------------------------------------
>>>
>>> It's strange because I have another mail server where it works without
>>> problems:
>>>
>>> ------------------------------------------------------------------
>>> root@mail:~# testsaslauthd -u daniel -p password
>>> 0: OK "Success."
>>> ------------------------------------------------------------------
>>>
>>> Both hosts have Debian Jessie and the SASL configuration is the same:
>>>
>>> ------------------------------------------------------------------
>>> root@mail:~# grep ^[^#] /etc/default/saslauthd
>>> START=yes
>>> DESC="SASL Authentication Daemon"
>>> NAME="saslauthd"
>>> MECHANISMS="sasldb"
>>> MECH_OPTIONS=""
>>> THREADS=5
>>> OPTIONS="-c -m /var/run/saslauthd"
>>> ------------------------------------------------------------------
>>> root@server2:~# grep ^[^#] /etc/default/saslauthd
>>> START=yes
>>> DESC="SASL Authentication Daemon"
>>> NAME="saslauthd"
>>> MECHANISMS="sasldb"
>>> MECH_OPTIONS=""
>>> THREADS=5
>>> OPTIONS="-c -m /var/run/saslauthd"
>>> ------------------------------------------------------------------
>>>
>>> "
Is the contents of the file containing the sasl users and passwords the
same between the two hosts?
John

Reply via email to