public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?
Date: Fri, 19 Jan 2018 18:59:56 +0000 (UTC)	[thread overview]
Message-ID: <p3tf7c$ovt$2@blaine.gmane.org> (raw)
In-Reply-To: d514cd0f-3198-d605-e205-e53887316074@spamtrap.tnetconsulting.net

On 2018-01-19, Grant Taylor <gtaylor@tnetconsulting.net> wrote:

> So you don't need to accept mail via /usr/sbin/sendmail (et al).

Correct.

> Or rather, that's what you want email to leave the relay through.

Correct.

>> I want to relay each of those messages by invoking a command-line
>> utility that has the same "API" as /usr/bin/sendmail.  That utility
>> injects the mail into another machine's MTA.
>
> Okay.
>
> Aside: I don't know that I would consider that to be an API, but I
> do see why you consider it as such.

I meant the sematics and sytax of the command line options and the
data accepted on stdin and produced on stdout.  I probably should have
said "usage" rather than API.  Since I always use that utility from a
Python or Bash program, in my head that's its API.

>> In this case, the /usr/bin/sendmail utility transfers the message
>> to a different machine's MTA using mechanisms that are beyond the
>> scope of my question.
>
> Okay.
>
> So it sounds to me like you want a gateway of sorts that speaks SMTP
> (as a server to clients) on one side and <some custom non-SMTP
> method> (that acts as a client to other servers) on the other side.
> Is that accurate?

Exactly.

> In Sendmail parlance, what you want is a custom mailer.  Said custom
> mailer would then interface with your custom /usr/bin/sendmail
> (emulation wrapper).
>
> Finally, configure Sendmail to use said custom mailer as the method
> to communicate with the smart host.

Thanks.

I was sort of afraid that sendmail was going to be the answer. :)

The last time I ran sendmail was on a Sun-3/60 machine, and I never
did quite understand how to configure it...

-- 
Grant Edwards               grant.b.edwards        Yow! Loni Anderson's hair
                                  at               should be LEGALIZED!!
                              gmail.com            



  reply	other threads:[~2018-01-19 19:02 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-19 18:03 [gentoo-user] Simple SMTP to cmd-line MTA relay? Grant Edwards
2018-01-19 18:19 ` Ralph Seichter
2018-01-19 18:31   ` [gentoo-user] " Grant Edwards
2018-01-19 18:51     ` Grant Taylor
2018-01-19 18:59       ` Grant Edwards [this message]
2018-01-19 19:10         ` Grant Taylor
2018-01-19 18:28 ` [gentoo-user] " Grant Taylor
2018-01-19 18:38   ` [gentoo-user] " Grant Edwards
2018-01-19 18:57     ` Grant Taylor
2018-01-19 19:48       ` Grant Edwards
2018-01-19 20:14         ` Grant Taylor
2018-01-19 20:29           ` Grant Edwards
2018-01-19 20:36             ` Grant Taylor
2018-01-19 18:46 ` Ian Zimmerman
2018-01-19 18:49   ` Grant Edwards
2018-01-19 19:43     ` Ian Zimmerman
2018-01-19 19:48       ` Alan McKinnon
2018-01-19 20:01         ` Grant Edwards
2018-01-19 20:05           ` Alan McKinnon
2018-01-19 20:04         ` Grant Taylor
2018-01-19 20:16           ` Grant Edwards
2018-01-19 19:54       ` Grant Edwards
2018-01-19 19:56         ` Alan McKinnon
2018-01-19 20:03           ` Grant Edwards
2018-01-19 20:06             ` Alan McKinnon
2018-01-19 20:19               ` Grant Edwards
2018-01-19 22:24                 ` Ian Zimmerman
2018-01-19 22:31                   ` Grant Taylor
2018-01-19 23:04                   ` Grant Edwards
2018-01-19 23:21                     ` Grant Taylor
2018-01-19 23:58                       ` Grant Edwards
2018-01-20  0:30                         ` Grant Taylor
2018-01-20  0:39                           ` Grant Taylor
2018-01-20  0:53                           ` Grant Edwards
2018-01-20  0:44                         ` Ian Zimmerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='p3tf7c$ovt$2@blaine.gmane.org' \
    --to=grant.b.edwards@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox