Re: relay from notebook not working (need help with configuration)

2015-09-10 Thread Jiri Navratil
On Wed, Sep 09, 2015 at 07:37:13PM +0200, Marcus MERIGHI wrote:
> j...@navratil.cz (Jiri Navratil), 2015.09.08 (Tue) 08:24 (CEST):
> > I wish to use on my notebook to deliver emails via relay to my server
> > regardless of location and Internet connection.
> > 
> > on notebook I have
> > 
> > accept from local for any relay via tls+auth://user@myserver auth
> > 
> 
> table relayauth { username= "passphrase" }
> accept for any relay via tls+auth://usern...@msa.domain.tld:587 auth \
>   
> 
> > on server I have
> > 
> > listen on egress tls pki myserver auth-optional
> > listen on egress port submission tls-require pki myserver auth
> 
> pki host.domain.tld certificate "/etc/ssl/tld.domain.host.crt"
> pki host.domain.tld key "/etc/ssl/private/tld.domain.host.key"
> listen on egress port submission tls pki host.domain.tld auth tag msa
> 
> Bye, Max
> 
> > !DSPAM:55ee7f4a22061658913436!
> 


Thank you Max for your help.

It's working now. I had to add 587 port and change format of relayaut

I propose to adjust smtpd.conf(5) of these changes:

- add 587 port to example of accept for ...
- adjust secrets table format, as this one has been reported by smtpd -v as
  wrong (the created secrets.db)
   # echo "label username:password" > /etc/mail/secrets

next to it 
- /etc/rc.d/smtpd start  reported OK, but smtpd -v reported problem with
  secrets.db

next to it
- $ doas smtpctl resume mta 
is still reporting
command failed

Please let me know, if I can help debug it more.

Best regards,
Jiri

-- 
Jiri Navratil, http://kouc.navratil.cz, +420 222 767 131


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: relay from notebook not working (need help with configuration)

2015-09-09 Thread Marcus MERIGHI
j...@navratil.cz (Jiri Navratil), 2015.09.08 (Tue) 08:24 (CEST):
> I wish to use on my notebook to deliver emails via relay to my server
> regardless of location and Internet connection.
> 
> on notebook I have
> 
> accept from local for any relay via tls+auth://user@myserver auth
> 

table relayauth { username= "passphrase" }
accept for any relay via tls+auth://usern...@msa.domain.tld:587 auth \
  

> on server I have
> 
> listen on egress tls pki myserver auth-optional
> listen on egress port submission tls-require pki myserver auth

pki host.domain.tld certificate "/etc/ssl/tld.domain.host.crt"
pki host.domain.tld key "/etc/ssl/private/tld.domain.host.key"
listen on egress port submission tls pki host.domain.tld auth tag msa

Bye, Max

> !DSPAM:55ee7f4a22061658913436!

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



relay from notebook not working (need help with configuration)

2015-09-07 Thread Jiri Navratil
Hello,

I wish to use on my notebook to deliver emails via relay to my server
regardless of location and Internet connection.

on notebook I have

:
accept from local for any relay via tls+auth://user@myserver auth 
:

on server I have

:
listen on egress tls pki myserver auth-optional
listen on egress port submission tls-require pki myserver auth


I tested it from my LAN and it worked.

Today I wrote few emails during comuting. After connection to network, I'm not
able to deliver

doas smtpctl show queue
reported firstly something about not resolved MX address

after
doas smtpctl schedule all 
5 envelopes scheduled

I'm getting
Network error on destination MXs

doas smtpctl resume mta 
command failed

In log I see
Sep  8 07:56:45 mynotebook smtpd[19575]: smtp-out: Error on session 
97f00336911384e4: TLS required but not supported by remote host

I'm using OpenBSD -current on notebook
OpenSMTPD 5.4.4

and OpenBSD 5.8 GENERIC.MP#1137 amd64 from snapshot on server
OpenSMTPD 5.4.4

Please
- is my configuration correct?
- shal I somehow debug the command failed output from smtpctl resume mta?
- is this approach (idea) of delivering emails this way correct?

Thank you,
Jiri

-- 
Jiri Navratil, http://kouc.navratil.cz, +420 222 767 131


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org