Re: Unable to relay email

2019-04-05 Thread Juan Trippe
> 10€ for the project :-)

Haha, I'm sure a clever lawyer would have arguments for either of us already
winning that bet. 

> Hm, maybe you need a "application password".
> 
> Try
> # smtpd -dv -Ttransfer
> 
> There will be the line "mta: 0x: >>> AUTH PLAIN SomeBase64Code
> 
> $ echo YourBase64Code | openssl enc -base64 -d
> to see whether it contains the right login data.
> 
> 
> > The format of my secrets file is:
> > 
> > my_relay sender:PASSWORD
> 
> Any strange glyph to be concerned about?

At one point I was trying to connect to the server with openssl and when I used
"
perl -MMIME::Base64 -e 'print encode_base64("SomeBase64Code");' " for my
password it was truncating because of a char, so I changed that password out but
it made no difference.

$ echo YourBase64Code | openssl enc -base64 -d 
senderPASSWORD$ 

Which is what's in the secrets file but without the colon between the account
name and password 


Not sure if this helps but I'm looking at packet captures from Thunderbird and
smtpd, all seems fine until 

Thunderbird:
TLSv1.2 Certificate, Server Hello Done

smtpd:
Ignored Unknown Record

This packet has the following url as well
http://www.entrust.net/rpa0

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



Re: Unable to relay email

2019-04-05 Thread Thomas Bohl

Looks good.
I bet money that the username:password pair in  is just wrong :-)


How much would you like to wager? :)


10€ for the project :-)



I copied and pasted the info into a weblogin and it worked (unfortunately?)


Hm, maybe you need a "application password".

Try
# smtpd -dv -Ttransfer

There will be the line "mta: 0x: >>> AUTH PLAIN SomeBase64Code

$ echo YourBase64Code | openssl enc -base64 -d
to see whether it contains the right login data.



The format of my secrets file is:

my_relay sender:PASSWORD


Any strange glyph to be concerned about?

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



Re: Unable to relay email

2019-04-05 Thread Juan Trippe
> Looks good.
> I bet money that the username:password pair in  is just wrong :-)

How much would you like to wager? :)
I copied and pasted the info into a weblogin and it worked (unfortunately?)

The format of my secrets file is:

my_relay sender:PASSWORD

> Don't forget to run
> # smtpctl update table secrets
> after you edit /etc/mail/secrets

Still no luck.

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



Re: Unable to relay email

2019-04-05 Thread Thomas Bohl

For the server I am trying to connect, I was told to use 587 if 25 didn't work,
so I've been trying both.


You should use 587.



Here is the smtpd.conf now:


Looks good.
I bet money that the username:password pair in  is just wrong :-)

Don't forget to run
# smtpctl update table secrets
after you edit /etc/mail/secrets

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



Re: Unable to relay email

2019-04-05 Thread Juan Trippe
> What happened "late March"? Did you reboot the system or did smtpd crash?

I think I rebooted after applying these patches:

 015: SECURITY FIX: March 22, 2019   All architectures
A state in pf could pass ICMP packets to a destination IP address that did not
match the state.
A source code patch exists which remedies this problem.

016: SECURITY FIX: March 27, 2019   amd64 and i386
GDT and IDT limits were improperly restored during VMM context switches.
A source code patch exists which remedies this problem.


> I'm confused. The action line is commented out. Plus the explicit 
> mention of port 25 while the logs show port 587.
> Can't you just post the full /etc/mail/smtpd.conf?

> Ok, my bad. The second diff is more current. The point about the port
> number still stands, though. And "user username" there is a syntax error.

For the server I am trying to connect, I was told to use 587 if 25 didn't work,
so I've been trying both. And your points about the comment and syntax error are
correct. I really have no idea what the config was that was working.

Here is the smtpd.conf now:

local# cat smtpd.conf

   
#   $OpenBSD: smtpd.conf,v 1.11 2018/06/04 21:10:58 jmc Exp $

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

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

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

action "local" mbox alias 
action "relay" relay host smtp+tls://my_re...@smtphm.example0.co.jp auth
 

# match from any for domain "example.org" action "local"
match for local action "local"
match for any action "relay"

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



Re: Unable to relay email

2019-04-05 Thread Thomas Bohl

==
/etc/mail/smtpd.conf diffs (-OLD  +NEW)
==
--- /var/backups/etc_mail_smtpd.conf.current    Fri Feb 22 01:30:23 2019
+++ /etc/mail/smtpd.conf    Fri Mar 15 20:49:37 2019
@@ -17,3 +17,5 @@
  # match from any for domain "example.org" action "local"
  match for local action "local"
  match for any action "relay"
+
+#action "relay" relay host smtp+tls://sen...@example0.co.jp:25


I'm confused. The action line is commented out. Plus the explicit 
mention of port 25 while the logs show port 587.

Can't you just post the full /etc/mail/smtpd.conf?



Ok, my bad. The second diff is more current. The point about the port 
number still stands, though. And "user username" there is a syntax error.


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



Re: Unable to relay email

2019-04-05 Thread Thomas Bohl

Am 05.04.2019 um 05:58 schrieb Juan Trippe:

What's the alternative? Did you make an update?


I don't know, it was about a month ago. I was trying to get the relay working so
I was making changes to the smtpd.conf file. AFAIK I was restarting smtpd after
each edit and stopped when it worked.


What happened "late March"? Did you reboot the system or did smtpd crash?



==
/etc/mail/smtpd.conf diffs (-OLD  +NEW)
==
--- /var/backups/etc_mail_smtpd.conf.currentFri Feb 22 01:30:23 2019
+++ /etc/mail/smtpd.confFri Mar 15 20:49:37 2019
@@ -17,3 +17,5 @@
  # match from any for domain "example.org" action "local"
  match for local action "local"
  match for any action "relay"
+
+#action "relay" relay host smtp+tls://sen...@example0.co.jp:25


I'm confused. The action line is commented out. Plus the explicit 
mention of port 25 while the logs show port 587.

Can't you just post the full /etc/mail/smtpd.conf?

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