Hi Gilles,

it seems to me, the mta ignores the relay phrase:

here the smtpd.conf
$ cat /etc/mail/smtpd.conf
#       $OpenBSD: smtpd.conf,v 1.7 2014/03/12 18:21:34 tedu Exp $

# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.

# To accept external mail, replace with: listen on all
#
listen on lo0

table creds db:/etc/mail/creds.db
table aliases db:/etc/mail/aliases.db

# Uncomment the following to accept external mail for domain "example.org"
#
# accept from any for domain "example.org" alias <aliases> deliver to mbox
accept for local alias <aliases> deliver to mbox
accept from local for any relay
# accept for any relay via secure+auth://[email protected]:25  auth <creds>
accept for any relay via tls+auth://[email protected] \
    auth <creds> as [email protected]

and here the debug output:
smtp-in: Accepted message 555dc57b on session 73b5961c91a5afc7: 
from=<[email protected]>, to=<[email protected]>, size=192, 
ndest=1, proto=ESMTP
debug: scheduler: evp:555dc57b28a13e8f scheduled (mta)
smtp-in: Closing session 73b5961c91a5afc7
debug: smtp: 0x87d1c000: deleting session: done
debug: mta: received evp:555dc57b28a13e8f for <[email protected]>
debug: mta: draining [relay:lehre.dhbw-stuttgart.de] refcount=1, ntask=1, 
nconnector=0, nconn=0
debug: mta: querying MX for [relay:lehre.dhbw-stuttgart.de]...
debug: mta: [relay:lehre.dhbw-stuttgart.de] waiting for MX
debug: MXs for domain lehre.dhbw-stuttgart.de:
        141.31.112.254 preference 10
        141.31.14.254 preference 10
debug: mta: ... got mx (0x7a8eec90, lehre.dhbw-stuttgart.de, 
[relay:lehre.dhbw-stuttgart.de])
debug: mta: draining [relay:lehre.dhbw-stuttgart.de] refcount=1, ntask=1, 
nconnector=0, nconn=0
debug: mta: querying source for [relay:lehre.dhbw-stuttgart.de]...
debug: mta: ... got source for [relay:lehre.dhbw-stuttgart.de]: []
debug: mta: new [connector:[]->[relay:lehre.dhbw-stuttgart.de],0x10000]
debug: mta: connecting with [connector:[]->[relay:lehre.dhbw-stuttgart.de],0x0]
debug: mta-routing: searching new route for 
[connector:[]->[relay:lehre.dhbw-stuttgart.de],0x0]...
debug: mta-routing: selecting candidate route [] <-> 141.31.112.254
debug: mta-routing: skipping route [] <-> 141.31.14.254: current one is better
debug: mta: mta_route_unref(): really discarding route [] <-> 141.31.14.254
debug: mta-routing: spawning new connection on [] <-> 141.31.112.254
debug: mta: 0x878eaa00: spawned for relay [relay:lehre.dhbw-stuttgart.de]
debug: mta: connecting with [connector:[]->[relay:lehre.dhbw-stuttgart.de],0x0]
debug: mta: cannot use [relay:lehre.dhbw-stuttgart.de] before 2s
debug: mta-routing: no route available for 
[connector:[]->[relay:lehre.dhbw-stuttgart.de],0x0]: must wait a bit
debug: mta: retrying to connect on 
[connector:[]->[relay:lehre.dhbw-stuttgart.de],0x0] in 2s...
debug: mta: draining [relay:lehre.dhbw-stuttgart.de] refcount=3, ntask=1, 
nconnector=1, nconn=1
debug: mta: scheduling relay [relay:lehre.dhbw-stuttgart.de] in 1s...
smtp-out: Connecting to smtp+tls://141.31.112.254:25 (ithil.dhbw-stuttgart.de) 
on session 73b5961ffe7dcb07...
smtp-out: Connected on session 73b5961ffe7dcb07
debug: lka: looking up pki "obsd.korb"
debug: pony: rsae_init
debug: pony: rsae_pub_dec
debug: pony: rsae_bn_mod_exp
smtp-out: Started TLS on session 73b5961ffe7dcb07: version=TLSv1/SSLv3, 
cipher=DHE-RSA-AES256-GCM-SHA384, bits=256
smtp-out: Server certificate verification succeeded on session 73b5961ffe7dcb07
debug: mta-routing: route [] <-> 141.31.112.254 (ithil.dhbw-stuttgart.de) is 
now valid.
debug: mta: connecting with 
[connector:[]->[relay:lehre.dhbw-stuttgart.de],0x20000]
debug: mta: cancelling connector timeout
debug: mta: enough connections already
debug: mta: 0x878eaa00: handling next task for relay 
[relay:lehre.dhbw-stuttgart.de]
relay: PermFail for 555dc57b28a13e8f: session=73b5961ffe7dcb07, 
from=<[email protected]>, to=<[email protected]>, rcpt=<->, 
source=192.168.0.1, relay=141.31.112.254 (ithil.dhbw-stuttgart.de), delay=1s, 
stat=553 5.1.8 <[email protected]>... Domain of sender address 
[email protected] does not exist
debug: mta: flush for 555dc57b28a13e8f (-> helb

Where is the connection to the specified relay?

Greetings,

Wolfgang Helbig
Stauferstr. 22

71334 Waiblingen




> Am 03.07.2015 um 20:46 schrieb Gilles Chehade <[email protected]>:
> 
> You can't, we only support auth over encrypted channels
> 
> Le 3 juil. 2015 7:34 PM, Wolfgang Helbig <[email protected]> a écrit 
> :
>> 
>> 
>>> Hi, 
>>> 
>>> I’ve successfully installed openbsd 5.7 from CD. How do I specify an smtp 
>>> relay in smptd.conf without TLS and without SMTPS but with a user id and 
>>> password? 
>>> 
>>> I couldn’t figure out how to specify the label in the smpt URL. 
>>> 
>>> I tried among other things this one: 
>>> ———— smtpd.conf starts here 
>>> listen on lo0 
>>> 
>>> table creds db:/etc/mail/creds.db 
>>> table aliases db:/etc/mail/aliases.db 
>>> 
>>> # Uncomment the following to accept external mail for domain "example.org" 
>>> # 
>>> # accept from any for domain "example.org" alias <aliases> deliver to mbox 
>>> accept for local alias <aliases> deliver to mbox 
>>> accept from local for any relay 
>>> accept for any relay via smtp+auth:[email protected]:25  auth <creds> 
>>> ———— smtpd.conf ends 
>>> 
>>> and smtpd answers this 
>>> 
>>> # smtpd 
>>> /etc/mail/smtpd.conf:18: error: invalid url: 
>>> smtp+auth:[email protected]:25 
>>> # 
>>> 
>>> 
>>> Greetings, 
>>> 
>>> Wolfgang Helbig 
>>> 
>> 
>> -- 
>> You received this mail because you are subscribed to [email protected] 
>> To unsubscribe, send a mail to: [email protected] 
>> 


--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to