On 3/6/22 07:58, Pete Long wrote:
On Sun, Mar 06, 2022 at 02:28:54PM +0100, Jiri Navratil wrote:
Hi,

I'm using notebook with OpenBSD and every email from mail and from mutt
goes firstly to  OpenSMTPD on localhost and then are relayed to my
server with static IP.

I have been using in OpenBSD 6.7 for mutt

set smtp_url="smtp://127.0.0.1"

but after switch to OpenBSD 7.0, I'm getting from OpenSMTPD

SMTP session failed: 503 5.5.1 Invalid command: Command not supported
[...]

Hi Jiri,

I have a slightly different configuration but all hosts are on the LAN.

Here are what I believe to be the relevant config lines for Mutt. I'm
using the same version as yourself: Mutt 2.1.3 (2021-09-10), which is
running on OpenBSD 7.0. OpenSMTPD is version 7.0.0.



set smtp_url = "smtp://ch...@chunkymonkey.tld:587/"
set smtp_pass = "superpassw0rd"
set ssl_starttls=yes
set ssl_verify_host=no


Pete.


I'm using thunderbird but its a similar setup. My smtpd.conf:


edgar@bsd:~ $ cat /usr/local/etc/mail/smtpd.conf
#       $OpenBSD: smtpd.conf,v 1.10 2018/05/24 11:40:17 gilles Exp $

# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
pki localhost cert "/etc/ssl/localhost.crt"
pki localhost key "/etc/ssl/localhost.key"

table aliases file:/etc/mail/aliases
table secrets file:/etc/mail/secrets
table passwd file:/etc/mail/passwd

# To accept external mail, replace with: listen on all
#
listen on lo0 tls pki localhost inet4 auth-optional <passwd>

action "local" maildir alias <aliases>
action "relay" relay host smtp+tls://ed...@mail.obfuscated.com:587 auth <secrets>

# Uncomment the following to accept external mail for domain "example.org"
#
# match from any for domain "example.org" action "local"
match for local action "local"
match from local for any action "relay"
match auth from any for any action "relay"

And then I just point thunderbird to 127.0.0.1 port 25 and it handles the rest.

table aliases is stock with the addition of my user.

table secrets contains the relay password.

table passwd is a mapping from my user to a password encrypted using smtpctl.


Edgar


Reply via email to