Folks:
Here's a shot in the dark. I've looked up and down the internet, and can't find a solution.
"warn: Failed to parse smarthost smtp+notls://[email protected]:25"
Note that the "protocol" doesn't matter. I can use "smtp" alone as the protocol, and it still won't parse. And yes, yosemite.mars.lan is in my
local hosts file.
Folks:
Here's a shot in the dark. I've looked up and down the internet, and can't find a solution.
I have a mini PC which just serves up videos. Daily it backs up to an attached drive. This happens with a script in /etc/cron.daily, which typically emails results to root. In my case it's aliased to me. I have OpenSMTPD installed with this config:
---
action "relay" relay host smtp+notls://[email protected]:25 auth <secrets>
[...]
action "relay" relay host smtp+notls://[email protected]:25 auth <secrets>
I have some opensmtpd config around and this line should work.
My suspects are:
1. whitespaces / end lines - have you test your config with xxd to check
if there CRLF for rexample ?
2. do you have a line
--8<---------------cut here---------------start------------->8---
paulf username:password
--8<---------------cut here---------------end--------------->8---
in your secrets file?
HTH
On Wed, May 22, 2024 at 09:37:18PM -0400, Paul M Foster wrote:
Folks:
Here's a shot in the dark. I've looked up and down the internet, and can't find a solution.
[...]
"warn: Failed to parse smarthost smtp+notls://[email protected]:25"
Note that the "protocol" doesn't matter. I can use "smtp" alone as the protocol, and it still won't parse. And yes, yosemite.mars.lan is in my local hosts file.
But "[email protected]" doesn't look like a host (unless you are
trying to sneak in the creds in the URL -- then I'd expect something
like user:pass@host). No idea how opensmtp works and whether it tries
to parse credentials off the URL.
Have you tried leaving out the "paul@" part? Do you have access credentials elsewhere in your config (typically they are in a separate file to better control access to that).
On Thu, May 23, 2024 at 06:38:11AM +0200, [email protected] wrote:
Have you tried leaving out the "paul@" part? [...]
The smarthost URL is straight out of the man page. The "paulf@" part allows OpenSMTP to figure which credential in the "secrets" file to use.
However, I took your advice and lopped off the "paulf@" from the URL, and managed to get an email through. Go figure.
Kamil Jońca <[email protected]> writes:
[...]
[...]
action "relay" relay host smtp+notls://[email protected]:25 auth <secrets>
I have some opensmtpd config around and this line should work.
My suspects are:
1. whitespaces / end lines - have you test your config with xxd to check
if there CRLF for rexample ?
2. do you have a line
--8<---------------cut here---------------start------------->8---
paulf username:password
--8<---------------cut here---------------end--------------->8---
in your secrets file?
HTH
After closer look I have another doubt:
https://man.openbsd.org/smtpd.conf
says:
--8<---------------cut here---------------start------------->8---
The label corresponds to an entry in a credentials table, as documented
in table(5). It is used with the “smtp+tls” and “smtps” protocols for authentication. Server certificates for those protocols are verified by default.
--8<---------------cut here---------------end--------------->8---
So if you use smtp+notls or pure smtp - maybe 'paulf@' is wrong
here?
On Thu, May 23, 2024 at 12:43 AM Paul M Foster <[email protected]> wrote:
On the video server, run nslookup and see if it can resolve yosemite.mars.lan.
Looking at the string smtp+notls://[email protected]:25, it
looks more like a url than a hostname. Maybe that is confusing your
mail agent.
Also, I think you should be using *.home.arpa, and not *.lan.
home.arpa is reserved for private use by ICANN and the IETF. I suspect
*.lan is not reserved for private use.
On Thu, May 23, 2024 at 12:54:31AM -0400, Jeffrey Walton wrote:
On Thu, May 23, 2024 at 12:43 AM Paul M Foster <[email protected]> wrote:
[snip]
On the video server, run nslookup and see if it can resolve yosemite.mars.lan.
Nslookup fails. However, yosemite.mars.lan is in the hosts file and you
can successfully ping it. It has a fixed (local) IP, which was set in the router. I don't understand why nslookup fails when buckaroo knows who yosemite is.
Nslookup fails. However, yosemite.mars.lan is in the hosts file and you
can successfully ping it. It has a fixed (local) IP, which was set in the router. I don't understand why nslookup fails when buckaroo knows who yosemite is.
On Thu, May 23, 2024 at 12:08 PM Paul M Foster <[email protected]> wrote:
On Thu, May 23, 2024 at 12:54:31AM -0400, Jeffrey Walton wrote:
[...]
Also, I think you should be using *.home.arpa, and not *.lan.
home.arpa is reserved for private use by ICANN and the IETF. I suspect *.lan is not reserved for private use.
On a LAN, you can use anything you like. I've used .mars.lan for decades with no difficulty.
Citation, please.
On Thu, May 23, 2024 at 12:08 PM Paul M Foster <[email protected]> wrote:
On Thu, May 23, 2024 at 12:54:31AM -0400, Jeffrey Walton wrote:
[...]
Also, I think you should be using *.home.arpa, and not *.lan.
home.arpa is reserved for private use by ICANN and the IETF. I suspect *.lan is not reserved for private use.
On a LAN, you can use anything you like. I've used .mars.lan for decades with no difficulty.
Citation, please.
If your LAN is isolated, you can basically do whatever you
want.
And then act surprised when networking breaks :)
And then there are "special" TLDs (.local, I'm looking at
you) where you'll get lots of fun effects should you decide
to use them (zeroconf, I'm looking at you :-)
I _think_ .local is reserved for mDNS. See <https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml>.
It looks like .internal and possibly .private are coming soon. See <https://www.icann.org/en/public-comment/proceeding/proposed-top-level-domain-string-for-private-use-24-01-2024>
and <https://www.theregister.com/2024/01/29/icann_internal_tld/>.
On Thu, May 23, 2024 at 01:50:21PM -0400, Jeffrey Walton wrote:Another example of off the wall, a coyote was the smartest member of the canine's I've ever met. This bitch could do simple arithmetic, barking
On Thu, May 23, 2024 at 12:08 PM Paul M Foster <[email protected]> wrote:
On Thu, May 23, 2024 at 12:54:31AM -0400, Jeffrey Walton wrote:
[...]
Also, I think you should be using *.home.arpa, and not *.lan.
home.arpa is reserved for private use by ICANN and the IETF. I suspect >>>> *.lan is not reserved for private use.
On a LAN, you can use anything you like. I've used .mars.lan for decades >>> with no difficulty.
Citation, please.
No need. It just works. Of course, if you have domain names
in your LAN which also is "out there", you won't "see" both.
If your LAN is isolated, you can basically do whatever you
want.
And then there are "special" TLDs (.local, I'm looking at
you) where you'll get lots of fun effects should you decide
to use them (zeroconf, I'm looking at you :-)
That's the why of the above recommendation.
Cheers
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 170:47:44 |
| Calls: | 12,097 |
| Calls today: | 5 |
| Files: | 15,003 |
| Messages: | 6,517,855 |