I have sendmail running successfully on a Debian 10 derivative,
8.15.2, and have installed sendmail to my Debian 12, 8.17.1, virtual
server. I copied the configuration files from my Debian 10 server to
the Debian 12 server. I can send mail to the server using a
Thunderbird client or telnet from anywhere. What I can't do is
connect to the submision port and relay mail. The error I'm getting
from Thunderbird is: "Sending of the message failed.
An error occurred while sending mail. The mail server responded: Authentication required. Please verify that your email address is
correct in your account settings and try again."
Any ideas greatly appreciated.
If I try to connect to the Debian 12 server with telnet from home I
get this:
knute@knute-XPS-8700:~$ telnet domain.com 25
Trying 176.126.240.209...
Connected to domain.com.
Escape character is '^]'.
ehlo knute
554 domain.com ESMTP not accepting messages
250-domain.com Hello [216.24.32.226], pleased to meet you
250 ENHANCEDSTATUSCODES
I get the same on port 587. If I use HELO instead of EHLO it looks
like it is going to go but when I enter the mail from: I get 550
5.0.0 Command rejected.
define(`confAUTH_OPTIONS',`A p y')dnl
Am 07.10.2023 um 13:35:38 Uhr schrieb Knute Johnson:
I have sendmail running successfully on a Debian 10 derivative,
8.15.2, and have installed sendmail to my Debian 12, 8.17.1, virtual
server. I copied the configuration files from my Debian 10 server to
the Debian 12 server. I can send mail to the server using a
Thunderbird client or telnet from anywhere. What I can't do is
connect to the submision port and relay mail. The error I'm getting
from Thunderbird is: "Sending of the message failed.
An error occurred while sending mail. The mail server responded:
Authentication required. Please verify that your email address is
correct in your account settings and try again."
Any ideas greatly appreciated.
If I try to connect to the Debian 12 server with telnet from home I
get this:
knute@knute-XPS-8700:~$ telnet domain.com 25
Trying 176.126.240.209...
Connected to domain.com.
Escape character is '^]'.
ehlo knute
554 domain.com ESMTP not accepting messages
250-domain.com Hello [216.24.32.226], pleased to meet you
250 ENHANCEDSTATUSCODES
I get the same on port 587. If I use HELO instead of EHLO it looks
like it is going to go but when I enter the mail from: I get 550
5.0.0 Command rejected.
If you have "a" in your DAEMON_OPTIONS, it will require authentication
and auth needs ESMTP, so EHLO is mandatory.
Use that and try manual PLAIN authentication.
You can also use a client like Claws Mail that give you the full
network log, so you can exactly see what is being sent and received.
define(`confAUTH_OPTIONS',`A p y')dnl
https://docstore.mik.ua/orelly/other/Sendmail_3rd/1565928393_ch24-50956.html
p will make the use of TLS (port 465) or STARTTLS mandatory for using
PLAIN.
I found the problem. When Debian installed sendmail or sasl2-bin it
left off one of the dependencies: libsasl2-modules. It's working
fine now.
Am 08.10.2023 um 10:48:50 Uhr schrieb Knute Johnson:
I found the problem. When Debian installed sendmail or sasl2-bin it
left off one of the dependencies: libsasl2-modules. It's working
fine now.
m@srv1:~$ apt -s remove libsasl2-modules
[...]
The following packages will be REMOVED:
cyrus-admin cyrus-common cyrus-imapd libsasl2-modules
Seems only the Cyrus stuff depends on it.
Do you think it should be a hard dependency for sasl2-bin or at least recommended?
When I installed sendmail and sasl2-bin the package
libsasl2-modules-db was installed but not libsasl2-modules. I don't
know if it should have been but sendmail doesn't work right without
it. This was a couple of days work to figure out what was missing.
Am 08.10.2023 um 17:50:19 Uhr schrieb Knute Johnson:
When I installed sendmail and sasl2-bin the package
libsasl2-modules-db was installed but not libsasl2-modules. I don't
know if it should have been but sendmail doesn't work right without
it. This was a couple of days work to figure out what was missing.
Do you think it should be listed in recommended in the Debian package
system?
Then you should file a report here: https://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&src=cyrus-sasl2
It turns out that my other Debian computers all had libsasl2-modules installed and so I never came accross this problem before.
Am 09.10.2023 um 11:43:05 Uhr schrieb Knute Johnson:
It turns out that my other Debian computers all had libsasl2-modules
installed and so I never came accross this problem before.
Did you use --no-install-recommends?
No I didn't. I didn't know that option existed.
Am 09.10.2023 um 14:37:59 Uhr schrieb Knute Johnson:
No I didn't. I didn't know that option existed.
Please check if any file in /etc/apt contains
APT::Install-Recommends "0";
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 51:48:41 |
Calls: | 6,712 |
Calls today: | 5 |
Files: | 12,243 |
Messages: | 5,355,044 |
Posted today: | 1 |