[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-20, Grant Taylor wrote: > On 01/19/2018 04:58 PM, Grant Edwards wrote: > >> That would require seperate outbound transports that are selected based >> on how the mail was read: smtp vs. /usr/bin/sendmail (the real one). > > Okay > >> I get the

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Ian Zimmerman
On 2018-01-19 23:58, Grant Edwards wrote: > That would require seperate outbound transports that are selected > based on how the mail was read: smtp vs. /usr/bin/sendmail (the real > one). I get the impression from exim and postfix docs that outbound > routing based on input method aren't

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 05:30 PM, Grant Taylor wrote: I'm trying to juggle the various pieces as I understand them to see if everything can work together. I have a fleeting thought that /might/ work. I want to write it down before I loose it. 1) Configure Sendmail's MTA to not have any listening

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 04:58 PM, Grant Edwards wrote: That would require seperate outbound transports that are selected based on how the mail was read: smtp vs. /usr/bin/sendmail (the real one). Okay I get the impression from exim and postfix docs that outbound routing based on input method

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Grant Taylor wrote: > On 01/19/2018 04:04 PM, Grant Edwards wrote: >> One of the hassles with those is that portage won't allow me to install >> any of them because they conflict with msmtp, which is what I use for >> sending normal e-mail. > > I would

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 04:04 PM, Grant Edwards wrote: One of the hassles with those is that portage won't allow me to install any of them because they conflict with msmtp, which is what I use for sending normal e-mail. I would expect that you can use any of those in place of msmtp to send email too.

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Ian Zimmerman wrote: > On 2018-01-19 20:19, Grant Edwards wrote: > >> Can exim transfer mail to an Exchange server that doesn't expose an >> SMTP server? >> >>> >> >>> Errr, no. exim does SMTP. >> >>> >> >>> If the above is what you need, any

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 03:24 PM, Ian Zimmerman wrote: But if I understand the problem now (a well sized if, LOL) that doesn't by itself help you because the existing script is broken; replacing the script is the main part of the problem. Right? Grant E.'s existing script purportedly functions just

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Ian Zimmerman
On 2018-01-19 20:19, Grant Edwards wrote: > Can exim transfer mail to an Exchange server that doesn't expose an > SMTP server? > >>> > >>> Errr, no. exim does SMTP. > >>> > >>> If the above is what you need, any orthodox mail server would need > >>> to hand the mail over to something

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 01:29 PM, Grant Edwards wrote: Aargh. smtpd. Typos like that certinaly don't help the confusion. *chuckle* - Mistakes happen. - Context answered the question more than 90%. I'm going to try stunnel in front of the existing solution first. If that doesn't work, I'll try

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Grant Taylor wrote: > On 01/19/2018 12:48 PM, Grant Edwards wrote: >> Yep, and it looks like the Postfix equivalent is a custom pipe transport. >> Once you know what phrases to google for, it's a lot easier. > > *nod* > > I figured that you would be

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Alan McKinnon wrote: > On 19/01/2018 22:03, Grant Edwards wrote: >> On 2018-01-19, Alan McKinnon wrote: >>> On 19/01/2018 21:54, Grant Edwards wrote: >>> Can exim transfer mail to an Exchange server that doesn't expose an

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Grant Taylor wrote: > On 01/19/2018 12:48 PM, Alan McKinnon wrote: >> I'm also wondering why you need 2 bits. Earlier in the thread you >> mentioned that you send perhaps a few messages a week and never more >> than one connection at a time. > > Grant

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 12:48 PM, Grant Edwards wrote: Yep, and it looks like the Postfix equivalent is a custom pipe transport. Once you know what phrases to google for, it's a lot easier. *nod* I figured that you would be able to find something. Hence why I mentioned the terms. ;-) I could live

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Alan McKinnon
On 19/01/2018 22:03, Grant Edwards wrote: > On 2018-01-19, Alan McKinnon wrote: >> On 19/01/2018 21:54, Grant Edwards wrote: >>> On 2018-01-19, Ian Zimmerman wrote: On 2018-01-19 18:49, Grant Edwards wrote: >> Just like the others

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Alan McKinnon
On 19/01/2018 22:01, Grant Edwards wrote: > On 2018-01-19, Alan McKinnon wrote: >> On 19/01/2018 21:43, Ian Zimmerman wrote: >>> On 2018-01-19 18:49, Grant Edwards wrote: >>> > Just like the others writing in this thread, I am wondering why you > need 2 pieces

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Alan McKinnon wrote: > On 19/01/2018 21:54, Grant Edwards wrote: >> On 2018-01-19, Ian Zimmerman wrote: >>> On 2018-01-19 18:49, Grant Edwards wrote: >>> > Just like the others writing in this thread, I am wondering why you >

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 12:48 PM, Alan McKinnon wrote: I'm also wondering why you need 2 bits. Earlier in the thread you mentioned that you send perhaps a few messages a week and never more than one connection at a time. Grant E. has indicated elsewhere in the thread that his /usr/bin/sendmail script

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Alan McKinnon wrote: > On 19/01/2018 21:43, Ian Zimmerman wrote: >> On 2018-01-19 18:49, Grant Edwards wrote: >> Just like the others writing in this thread, I am wondering why you need 2 pieces here. Why won't e.g. exim do both sides of this

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Ian Zimmerman wrote: > On 2018-01-19 18:49, Grant Edwards wrote: > >> > Just like the others writing in this thread, I am wondering why you >> > need 2 pieces here. Why won't e.g. exim do both sides of this for >> > you? It certainly has all the

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Alan McKinnon
On 19/01/2018 21:43, Ian Zimmerman wrote: > On 2018-01-19 18:49, Grant Edwards wrote: > >>> Just like the others writing in this thread, I am wondering why you >>> need 2 pieces here. Why won't e.g. exim do both sides of this for >>> you? It certainly has all the functionality. >> >> I don't

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Grant Taylor wrote: > On 01/19/2018 11:38 AM, Grant Edwards wrote: > >> I have a /usr/bin/sendmail emulator that transfers mail to an MTA >> that will then worry about delivery. I need an SMTP server that >> will relay incoming mail by using that

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Ian Zimmerman
On 2018-01-19 18:49, Grant Edwards wrote: > > Just like the others writing in this thread, I am wondering why you > > need 2 pieces here. Why won't e.g. exim do both sides of this for > > you? It certainly has all the functionality. > > I don't see how you can say that when you don't know the

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 11:59 AM, Grant Edwards wrote: 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

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Grant Taylor 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 >>

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 11:38 AM, Grant Edwards wrote: I have a /usr/bin/sendmail emulator that transfers mail to an MTA that will then worry about delivery. I need an SMTP server that will relay incoming mail by using that existing command-line utility. … I need something that accepts mail via SMTP

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Ian Zimmerman wrote: > On 2018-01-19 18:03, Grant Edwards wrote: > >> It needs to accept messages as an SMTP server (using SSL and AUTH on a >> non-standard port) from a single user and single source and then relay >> them by passing them to a command-line

Re: [gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Taylor
On 01/19/2018 11:31 AM, Grant Edwards wrote: I want to accept incoming email via SMTP (my computer is an SMTP server). Okay. So you don't need to accept mail via /usr/sbin/sendmail (et al). Or rather, that's what you want email to leave the relay through. I want to relay each of those

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Ian Zimmerman
On 2018-01-19 18:03, Grant Edwards wrote: > It needs to accept messages as an SMTP server (using SSL and AUTH on a > non-standard port) from a single user and single source and then relay > them by passing them to a command-line MTA (e.g. /usr/bin/sendmail > replacement provided by msmtp). Just

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Grant Taylor wrote: > I haven't done enough with the above (alternate) MTAs to be able to > speak to them. But my understanding is that they come with a > /path/to/sendmail wrapper script (or binary) that emulates part of > what the sendmail binary

[gentoo-user] Re: Simple SMTP to cmd-line MTA relay?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Ralph Seichter wrote: > On 19.01.18 19:03, Grant Edwards wrote: > >> I need to setup an SMTP relay server. >> >> It needs to accept messages as an SMTP server (using SSL and AUTH on a >> non-standard port) from a single user and single source and then