Op zaterdag 4 maart 2023 23:32:34 CET schreef joe a:
On 3/3/2023 6:11 PM, Freek de Kruijf wrote:
My new provider offers on port 587 "250-AUTH GSSAPI NTLM" I am trying to configure my postfix using as relayhost this smtp server. Using kmail I am able to simply provide the username, an email address, and a password. However I have a script that has to send an email. I use mailx to do that, which sends the message to postfix and postfix should send it to the server of my provider.
My previous provider offered LOGIN an PLAIN, for which it apparently was easy to configure Postfix.
I configured both NTLM and GSSAPI as mechanisms in Postfix. In /etc/postfix/ sasl_passwd the username and password are configured.
Error messages in /var/log/mail: postfix/smtp[14307]: warning: SASL authentication failure: GSSAPI Error: No credentials were supplied, or the credentials were unavailable or inaccessible (No Kerberos credentials available (default cache: KEYRING:persistent:51))
postfix/smtp[14307]: 92C8D101152: to=<xxxxx@yyyyy.nl>, relay=smtp.yyyyy.nl[212.113.64.zz]:587, delay=16453, delays=16453/0.02/0.14/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.delta.nl[212.113.64.82]: generic failure)
There is a postfix specific user list "postfix-users@postfix.org". One may subscribe by means specified at "http://www.postfix.org/lists.html"
I found the following page https://www.unix.com/shell-programming-and-scripting/191309-configure-cyrus-... describing how to use NTLM. I found out I did have the configuration right: the sasl plugin for ntlm was present and works and the required smtp_* parameters in main.cf present. However I used the wrong server name of my provider. So the problem was authentication; that server did not know my credentials. After changing the server name I have it working. -- fr.gr. member openSUSE Freek de Kruijf