• Help with sendmail ?

    From Lars Poulsen@3:633/10 to All on Saturday, January 31, 2026 21:03:09
    Please tell me if there is a better newsgroup that this for this topic.

    I recently needed to reinstall my Linux workstation/server, which runs
    behind a Frontier Fiber Business Service with one static IP, with my
    own edge router behind it. So my mail server has both an internal
    IP address (linux-local.example.com 192.168.1.2) and a
    public IP address (linux.example.com w.x.y.z). There are also aliases
    defined in DNS:
    www.example.com. CNAME linux.example.com.
    mail.example.com. CNAME linux.example.com.

    Everything was working fine in my old setup, but after the new
    install, I can receive mail from the outside relayed from f.x. Gmail
    or my business email (which is hosted on Rackspace, but I cannot submit mail from the Windows machine on my LAN. My IMAP (dovecot) server runs fine.
    I am puzzled.

    Thunderbird on Windows reports that:
    | Sending of the message failed.
    | The sessage could not be sent because connecting to Outgoing server
    | (SMTP) linux-local.example.com failed. The server may be unavailable
    | or is refusing SMTP connections. Please verify that your Outgoing
    | server (SMTP) settings are correct and try again.
    | [OK]

    I have tried many variations in my Thunderbird settings:
    * Specify host by IP address, internal name or public name
    * specify connection security None or STARTTLS
    * Port 25 or 587
    * Authentication None or Password, transmitted insecurely
    ... in every combination I can think of.

    The failed connections do not show up in any of the logfiles
    /var/log/messages
    /var/log/maillog
    /var/log/secure

    I know from previous experience, that I should have STARTTLS
    enabled, because sendmail does not allow passwords to go on
    plain text TCP connections.

    I think it must be a problem related to SSL, but sendmail.mc
    does nbot seem to mention any SSL configuration, and the RedHat
    sendmail deployment documention is very old and does not discuss
    where to specify the .pem files.

    Where should I look next?

    --
    Lars Poulsen - an old geek in Santa Barbara, California

    --- PyGate Linux v1.5.8
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Saturday, January 31, 2026 21:22:20
    On Sat, 31 Jan 2026 21:03:09 -0000 (UTC), Lars Poulsen wrote:

    I know from previous experience, that I should have STARTTLS
    enabled, because sendmail does not allow passwords to go on plain
    text TCP connections.

    Maybe not what you want to hear, but perhaps this is a good time to
    give up on Sendmail, and switch to a more rationally-designed MTA.

    The Debian default MTA is Exim, but speaking personally I have little
    to no experience with that myself; my go-to MTA has mostly been
    Postfix.

    Comparing Sendmail and Postfix, with Sendmail I was never quite sure
    of what I was doing; even after I succeeded in configuring it to do
    something, I had little confidence that I could repeat the feat again.
    With Postfix, all the configuration options made some kind of sense
    (explained in detail in the docs), so after having done something, I
    had good confidence that I could perform the same configuration task
    again.

    --- PyGate Linux v1.5.8
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Carlos E.R.@3:633/10 to All on Saturday, January 31, 2026 23:10:51
    On 2026-01-31 22:03, Lars Poulsen wrote:
    Please tell me if there is a better newsgroup that this for this topic.

    I recently needed to reinstall my Linux workstation/server, which runs
    behind a Frontier Fiber Business Service with one static IP, with my
    own edge router behind it. So my mail server has both an internal
    IP address (linux-local.example.com 192.168.1.2) and a
    public IP address (linux.example.com w.x.y.z). There are also aliases
    defined in DNS:
    www.example.com. CNAME linux.example.com.
    mail.example.com. CNAME linux.example.com.

    Everything was working fine in my old setup, but after the new
    install, I can receive mail from the outside relayed from f.x. Gmail
    or my business email (which is hosted on Rackspace, but I cannot submit mail from the Windows machine on my LAN. My IMAP (dovecot) server runs fine.
    I am puzzled.

    Thunderbird on Windows reports that:
    | Sending of the message failed.
    | The sessage could not be sent because connecting to Outgoing server
    | (SMTP) linux-local.example.com failed. The server may be unavailable
    | or is refusing SMTP connections. Please verify that your Outgoing
    | server (SMTP) settings are correct and try again.
    | [OK]


    You should first look at the mail logs in the server at the same moment
    in time.

    I have tried many variations in my Thunderbird settings:
    * Specify host by IP address, internal name or public name
    * specify connection security None or STARTTLS
    * Port 25 or 587
    * Authentication None or Password, transmitted insecurely
    ... in every combination I can think of.

    The failed connections do not show up in any of the logfiles
    /var/log/messages
    /var/log/maillog
    /var/log/secure

    Firewalls?

    Wireshark?


    I know from previous experience, that I should have STARTTLS
    enabled, because sendmail does not allow passwords to go on
    plain text TCP connections.

    I think it must be a problem related to SSL, but sendmail.mc
    does nbot seem to mention any SSL configuration, and the RedHat
    sendmail deployment documention is very old and does not discuss
    where to specify the .pem files.

    Where should I look next?


    use postfix. +1.

    --
    Cheers, Carlos.
    ES??, EU??;

    --- PyGate Linux v1.5.8
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lars Poulsen@3:633/10 to All on Sunday, February 01, 2026 01:03:30
    On 2026-01-31 22:03, Lars Poulsen wrote:
    I know from previous experience, that I should have STARTTLS
    enabled, because sendmail does not allow passwords to go on
    plain text TCP connections.

    I think it must be a problem related to SSL, but sendmail.mc
    does nbot seem to mention any SSL configuration, and the RedHat
    sendmail deployment documention is very old and does not discuss
    where to specify the .pem files.

    Where should I look next?

    On 2026-01-31, Carlos E.R. <robin_listas@es.invalid> wrote:
    use postfix. +1.

    I have used sendmail since the late 1980s, with sysadmin
    responsibilities since about 1996, and at one time I really understood
    the address rewriting rules. So I was reluctant to switch to Postfix,
    when I know I had a bsasically working sendmail, but might have lost
    some dependency in my upgrade/reinstallation.

    But while there is some learning curve required ... I need to look
    closely at how Postfix and SSL mesh with each other ... I got it up in
    less than an hour, and some of the configuration tables like
    relay-hosts even carried over.

    But it turned out that the worst of the problems was a firewall
    configuration that had gotten broken on the Windows/Thunderbird side
    where I was sending from. The TCP connection to port 25 or 587 never
    got out of the PC, which was obvious when I loaded up Wireshark on
    the PC side.

    I have a lot of experience over many decades, but sometimes I overlook
    really stupid things, because "I did not touch that part at all, at least
    not recently".

    --
    Lars Poulsen - an old geek in Santa Barbara, California

    --- PyGate Linux v1.5.10
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Sunday, February 01, 2026 02:27:28
    On Sun, 1 Feb 2026 01:03:30 -0000 (UTC), Lars Poulsen wrote:

    But while there is some learning curve required ... I need to look
    closely at how Postfix and SSL mesh with each other ... I got it up
    in less than an hour, and some of the configuration tables like
    relay-hosts even carried over.

    That is very gratifying to know. ;)

    But it turned out that the worst of the problems was a firewall
    configuration that had gotten broken on the Windows/Thunderbird side
    where I was sending from. The TCP connection to port 25 or 587 never
    got out of the PC, which was obvious when I loaded up Wireshark on
    the PC side.

    I have a lot of experience over many decades, but sometimes I
    overlook really stupid things, because "I did not touch that part at
    all, at least not recently".

    Presumably this was something in a Registry setting? So no text-based
    config file(s) that you could have done a diff on, to see what had
    changed?

    My point is, the stupidity is not in you, it?s in Windows.

    --- PyGate Linux v1.5.10
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Sunday, February 01, 2026 00:34:59
    On 1/31/26 20:03, Lars Poulsen wrote:
    On 2026-01-31 22:03, Lars Poulsen wrote:
    I know from previous experience, that I should have STARTTLS
    enabled, because sendmail does not allow passwords to go on
    plain text TCP connections.

    I think it must be a problem related to SSL, but sendmail.mc
    does nbot seem to mention any SSL configuration, and the RedHat
    sendmail deployment documention is very old and does not discuss
    where to specify the .pem files.

    Where should I look next?

    On 2026-01-31, Carlos E.R. <robin_listas@es.invalid> wrote:
    use postfix. +1.

    I have used sendmail since the late 1980s, with sysadmin
    responsibilities since about 1996, and at one time I really understood
    the address rewriting rules. So I was reluctant to switch to Postfix,
    when I know I had a bsasically working sendmail, but might have lost
    some dependency in my upgrade/reinstallation.

    But while there is some learning curve required ... I need to look
    closely at how Postfix and SSL mesh with each other ... I got it up in
    less than an hour, and some of the configuration tables like
    relay-hosts even carried over.

    But it turned out that the worst of the problems was a firewall
    configuration that had gotten broken on the Windows/Thunderbird side
    where I was sending from. The TCP connection to port 25 or 587 never
    got out of the PC, which was obvious when I loaded up Wireshark on
    the PC side.

    I have a lot of experience over many decades, but sometimes I overlook
    really stupid things, because "I did not touch that part at all, at least
    not recently".

    I (sort of) got sendmail to work with various
    tries and applications thru the years.

    In the end, bought "Kerio Mailserver/(Connect)".
    It was plenty good enough, easy to admin and
    scaled for the small/medium biz. There was
    actually a re-seller three blocks away too,
    which made support extra easy.

    Mail used to be just POP ... now it's weirder.
    Yes, sendmail CAN be tortured into working, but
    MAYBE consider someone ELSE doing the torture
    instead of you :-)


    --- PyGate Linux v1.5.10
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Marco Moock@3:633/10 to All on Sunday, February 01, 2026 10:53:24
    On 31.01.2026 21:03 Uhr Lars Poulsen wrote:

    Please tell me if there is a better newsgroup that this for this
    topic.

    comp.mail.sendmail.

    --
    kind regards
    Marco

    Send spam to 1769889789muell@stinkedores.dorfdsl.de


    --- PyGate Linux v1.5.10
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Sunday, February 01, 2026 10:58:43
    On 01/02/2026 03:02, rbowman wrote:
    On Sat, 31 Jan 2026 21:22:20 -0000 (UTC), Lawrence D?Oliveiro wrote:

    Maybe not what you want to hear, but perhaps this is a good time to give
    up on Sendmail, and switch to a more rationally-designed MTA.

    My memory of sendmail is it filled one of the thicker O'Reilly books all
    by itself.

    Indeed. And I owned it.
    In the end it got so complicated that I rewrote sendmail.cf from scratch.
    Got it down to about a page.

    All configuration went in half a dozen text files.
    That was before encryption and authentication, though.

    --
    The theory of Communism may be summed up in one sentence: Abolish all
    private property.

    Karl Marx



    --- PyGate Linux v1.5.10
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lars Poulsen@3:633/10 to All on Sunday, February 01, 2026 15:22:44
    On Sat, 31 Jan 2026 21:22:20 -0000 (UTC), Lawrence D?Oliveiro wrote:
    Maybe not what you want to hear, but perhaps this is a good time to give >>> up on Sendmail, and switch to a more rationally-designed MTA.

    On 01/02/2026 03:02, rbowman wrote:
    My memory of sendmail is it filled one of the thicker O'Reilly books all
    by itself.

    On 2026-02-01, The Natural Philosopher <tnp@invalid.invalid> wrote:
    Indeed. And I owned it.
    In the end it got so complicated that I rewrote sendmail.cf from scratch.
    Got it down to about a page.

    All configuration went in half a dozen text files.
    That was before encryption and authentication, though.

    Indeed, the cruft was in the retention of support for long obsolete
    features such as UUCP mail and address source-routing.

    And as sendmail.cf became entirely too unwieldy, they "solved" it
    my adding a completely different "high-level" configuration language
    in the form of M4 with option names that were similar to the ones
    in sendmail itself, but spelled slightly differently.
    I never got the hang of writing in sendmail.mc, preferring to hand
    edit sendmail.cf, but only in areas where I needed to (which
    were very rarely needed and confined to a single line at a time.

    So when I needed to look more closely, I now had to explore the M4
    and rebuild the CF file.

    Postfix also has a lot of possible configuration, but it was
    surprisingly easy to get a basic configuration up and running.

    At this point, I would suggest that anyone still running sendmail
    on a workstation take the tie to bring up postfix at a time when things
    are working well, so that the challenge of learning postfix is not
    layered on to of time-critical debugging when something fails.

    --
    Lars Poulsen - an old geek in Santa Barbara, California

    --- PyGate Linux v1.5.10
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Sunday, February 01, 2026 20:12:12
    On Sun, 1 Feb 2026 15:22:44 -0000 (UTC), Lars Poulsen wrote:

    And as sendmail.cf became entirely too unwieldy, they "solved" it my
    adding a completely different "high-level" configuration language in
    the form of M4 with option names that were similar to the ones in
    sendmail itself, but spelled slightly differently. I never got the
    hang of writing in sendmail.mc, preferring to hand edit sendmail.cf,
    but only in areas where I needed to (which were very rarely needed
    and confined to a single line at a time.

    I bought the Sendmail book. Started out with hand edits of
    sendmail.cf, as you had to do at the time. Then a new version
    introduced the macro system, but I couldn?t figure out how to convert
    our config to the new format, so kept the old one. Then, after many
    more months (possibly a year) of dithering about whether or not to
    switch to a new MTA, one day I bit the bullet and gave Postfix a try.

    Never looked back after that.

    Postfix also has a lot of possible configuration, but it was
    surprisingly easy to get a basic configuration up and running.

    Yeah! A lot of power, nicely organized into lots of config keywords,
    all documented in detail, so you understand pretty clearly what each
    one does, and how they interact.

    --- PyGate Linux v1.5.10
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Sunday, February 01, 2026 20:43:38
    On 01/02/2026 15:22, Lars Poulsen wrote:
    On Sat, 31 Jan 2026 21:22:20 -0000 (UTC), Lawrence D?Oliveiro wrote:
    Maybe not what you want to hear, but perhaps this is a good time to give >>>> up on Sendmail, and switch to a more rationally-designed MTA.

    On 01/02/2026 03:02, rbowman wrote:
    My memory of sendmail is it filled one of the thicker O'Reilly books all >>> by itself.

    On 2026-02-01, The Natural Philosopher <tnp@invalid.invalid> wrote:
    Indeed. And I owned it.
    In the end it got so complicated that I rewrote sendmail.cf from scratch.
    Got it down to about a page.

    All configuration went in half a dozen text files.
    That was before encryption and authentication, though.

    Indeed, the cruft was in the retention of support for long obsolete
    features such as UUCP mail and address source-routing.

    Ahem. We were the UKs biggest UUCP gateway at the time...
    So a lot of that persisted BUT we inisisted on internet style address to
    be used as returns.


    And as sendmail.cf became entirely too unwieldy, they "solved" it
    my adding a completely different "high-level" configuration language
    in the form of M4 with option names that were similar to the ones
    in sendmail itself, but spelled slightly differently.
    I never got the hang of writing in sendmail.mc, preferring to hand
    edit sendmail.cf, but only in areas where I needed to (which
    were very rarely needed and confined to a single line at a time.

    Exactly. Like so many clever solutions its is quicker to rewrite and
    simplify than to learn the new tools...

    So when I needed to look more closely, I now had to explore the M4
    and rebuild the CF file.

    Postfix also has a lot of possible configuration, but it was
    surprisingly easy to get a basic configuration up and running.

    At this point, I would suggest that anyone still running sendmail
    on a workstation take the tie to bring up postfix at a time when things
    are working well, so that the challenge of learning postfix is not
    layered on to of time-critical debugging when something fails.

    Most people use exim but it barfed all over me last time so I threw in
    postfix which JustWorked?


    --
    It?s easier to fool people than to convince them that they have been fooled. Mark Twain




    --- PyGate Linux v1.5.10
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)