Re: git portable branch: Failed to parse smarthost

2019-08-06 Thread Harald Dunkel
Hi Gilles,

On 8/6/19 1:35 PM, Gilles Chehade wrote:
> 
> you're using an auth label but this requires a secure transport.
> 
> from smtpd.conf(5):
> 
>  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.
> 

found it. Sorry, my bad.


Regards
Harri



Re: git portable branch: Failed to parse smarthost

2019-08-06 Thread Gilles Chehade
On Mon, Aug 05, 2019 at 07:14:17PM +0200, Harald Dunkel wrote:
> Hi folks,
> 
> trying the new smtpd with openssl support on Debian I get the
> following error:
> 
> Aug  5 18:56:26 mailhost smtpd[712]: warn: Failed to parse smarthost 
> smtp://someh...@mail.somehost.de
> 
> Mail is not forwarded, of course.
> 
> 
> The config file says
> 
> :
> table localnet { 10.0.0.0/24, 2001:db8:1f24:b803::/64 }
> table secrets file:/etc/secrets
> :
> action "relay_somehost"   relay host smtp://someh...@mail.somehost.de 
> auth  mail-from "@example.de"
> :
> match from src  for any action "relay_somehost"
> match from local  for any action "relay_somehost"
> 
> 
> The secrets file is:
> 
> somehost postmas...@x.mail.somehost.de:geheim
> 
> 
> AFAICS the syntax follows the man page, so why does it complain?
> I don't see it. Every helpful hint is highly appreciated.
> 

you're using an auth label but this requires a secure transport.

from smtpd.conf(5):

 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.


-- 
Gilles Chehade @poolpOrg

https://www.poolp.orgpatreon: https://www.patreon.com/gilles



Re: git portable branch: Failed to parse smarthost

2019-08-06 Thread Herbert J. Skuhra
On Mon, Aug 05, 2019 at 07:14:17PM +0200, Harald Dunkel wrote:
> Hi folks,
> 
> trying the new smtpd with openssl support on Debian I get the
> following error:
> 
> Aug  5 18:56:26 mailhost smtpd[712]: warn: Failed to parse smarthost 
> smtp://someh...@mail.somehost.de
> 
> Mail is not forwarded, of course.
> 
> 
> The config file says
> 
> :
> table localnet { 10.0.0.0/24, 2001:db8:1f24:b803::/64 }
> table secrets file:/etc/secrets
> :
> action "relay_somehost"   relay host smtp://someh...@mail.somehost.de 
> auth  mail-from "@example.de"
   
Not sure, but have you tried smtp+tls instead of smtp?

The man page says:

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.

-- 
Herbert



git portable branch: Failed to parse smarthost

2019-08-05 Thread Harald Dunkel
Hi folks,

trying the new smtpd with openssl support on Debian I get the
following error:

Aug  5 18:56:26 mailhost smtpd[712]: warn: Failed to parse smarthost 
smtp://someh...@mail.somehost.de

Mail is not forwarded, of course.


The config file says

:
table localnet { 10.0.0.0/24, 2001:db8:1f24:b803::/64 }
table secrets file:/etc/secrets
:
action "relay_somehost" relay host smtp://someh...@mail.somehost.de auth 
 mail-from "@example.de"
:
match from srcfor any action "relay_somehost"
match from localfor any action "relay_somehost"


The secrets file is:

somehost postmas...@x.mail.somehost.de:geheim


AFAICS the syntax follows the man page, so why does it complain?
I don't see it. Every helpful hint is highly appreciated.


Regards
Harri