Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?
Date: Fri, 19 Jan 2018 23:07:17
Message-Id: p3tthm$su7$1@blaine.gmane.org
In Reply to: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay? by Ian Zimmerman
1 On 2018-01-19, Ian Zimmerman <itz@××××××××××××.org> wrote:
2 > On 2018-01-19 20:19, Grant Edwards wrote:
3 >
4 >> >>>> Can exim transfer mail to an Exchange server that doesn't expose an
5 >> >>>> SMTP server?
6 >> >>>
7 >> >>> Errr, no. exim does SMTP.
8 >> >>>
9 >> >>> If the above is what you need, any orthodox mail server would need
10 >> >>> to hand the mail over to something that *can* deliver to Exchange.
11 >> >>
12 >> >> Yes, and that something is my existing command-line MTA utility
13 >> >> that has the same usage as /usr/bin/sendmail.
14 >
15 > FWIW, you can plug in your existing script into exim as a custom
16 > "transport", in the exim terminology. In fact that is what I used to do
17 > for years, to stuff outgoing mail into sendmail on a system where I had
18 > a shell account. But if I understand the problem now (a well sized if,
19 > LOL) that doesn't by itself help you because the existing script is
20 > broken; replacing the script is the main part of the problem. Right?
21
22 The existing /usr/bin/sendmail (that's not it's actual path) script
23 works fine. It's the SSL support in the SMTP server that invokes the
24 /usr/bin/sendmail script that's broken. I've modified that server to
25 run an instance of stunnel and use plain SMTP (sans SSL). It looks
26 like that's probably going to work. There's a custom SSL server
27 because at some point in the past it had to do some odd things with
28 headers and the envelope from field (it also implements some special
29 logging). Then at some later point in the past, the requirement for
30 those odd things went away. At some other point in history, the SSL
31 support in that server got broken. The actual failure is intermittent
32 (it depends on message size and network timing), so it's taken a while
33 to track it down and decide what to do about it.
34
35 For now, I'm going with the custom server and stunnel. If there are
36 problems with that, I'll try one of sendmail/postfix/exim. [One of
37 the hassles with those is that portage won't allow me to install any
38 of them because they conflict with msmtp, which is what I use for
39 sending normal e-mail.]
40
41 --
42 Grant Edwards grant.b.edwards Yow! Life is a POPULARITY
43 at CONTEST! I'm REFRESHINGLY
44 gmail.com CANDID!!

Replies

Subject Author
Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay? Grant Taylor <gtaylor@××××××××××××××.net>