Re: unable to send external mail with smtpd

2021-10-20 Thread freddie

Thanks eveyone!
Sending this from my mail client, I just followed Kolipe's advice and changed 
smtp+tls to smtps and am now able to send mail.
I was alreaady using the plain text rather than cramd-5 and was using port 485 
because it seemed to be the one that worked when i was using isync
Cheers,
Freddie
0n 20-10-2021 12:05, freddiebub...@countermail.com wrote:
Hi, I'm new to openbsd having just set it up on my x200 and loving it 
(running so much better than my old distro). after reading through 
c0ffee's laptop set up guide and the afterboot man page i'm struggling 
to work out why i can't send mail through my mail account w smtpd. i 
have asked my provider for support about the issues i saw other people 
having (port 25 not being open) but they said that wasn't it and they 
were unsure about the problem. below i have linked to a paste of my 
smtpd.conf and my maillog. Personally i'm struggling to work out whats 
wrong from the log but i'm assuming i've not set something up right...


maillog: http://ix.io/3ChF
smtpd.conf:

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

#listen on socket

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

action "local" mbox alias 
action "outbound" relay host 
smtp+tls://freddiebub...@imap1.countermail.com:465 auth 


# Uncomment the following to accept external mail for domain 
"example.org"

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

Cheers,
Freddie





Re: unable to send external mail with smtpd

2021-10-20 Thread Stuart Henderson
On 2021-10-20, Dave Voutila  wrote:
>
> freddiebub...@countermail.com writes:
>
>> Hi, I'm new to openbsd having just set it up on my x200 and loving it
>> (running so much better than my old distro). after reading through
>> c0ffee's laptop set up guide and the afterboot man page i'm struggling
>> to work out why i can't send mail through my mail account w smtpd. i
>> have asked my provider for support about the issues i saw other people
>> having (port 25 not being open) but they said that wasn't it and they
>> were unsure about the problem. below i have linked to a paste of my
>> smtpd.conf and my maillog. Personally i'm struggling to work out whats
>> wrong from the log but i'm assuming i've not set something up right...
>>
>> maillog: http://ix.io/3ChF
>
> I looked at your log messages and the only thing I can think of is this
> mail provider requires some auth approach smtpd doesn't support
> (CRAM-Md5). It seems they're more interested in supporting mail clients
> and not a relaying connection from an MTA is my guess.
>
> See: https://support.countermail.com/kb/faq.php?id=90

It's either/or, see the section marked 2 in red on that page




Re: unable to send external mail with smtpd

2021-10-20 Thread Crystal Kolipe
On Wed, Oct 20, 2021 at 12:05:20PM +0100, freddiebub...@countermail.com wrote:
> Hi, I'm new to openbsd having just set it up on my x200 and loving it
> (running so much better than my old distro). after reading through c0ffee's
> laptop set up guide and the afterboot man page i'm struggling to work out
> why i can't send mail through my mail account w smtpd. i have asked my
> provider for support about the issues i saw other people having (port 25 not
> being open) but they said that wasn't it and they were unsure about the
> problem. below i have linked to a paste of my smtpd.conf and my maillog.
> Personally i'm struggling to work out whats wrong from the log but i'm
> assuming i've not set something up right...
> 
> maillog: http://ix.io/3ChF
> smtpd.conf:
> 
> table aliases file:/etc/mail/aliases
> table secrets file:/etc/mail/secrets
> 
> #listen on socket
> 
> # To accept external mail, replace with: listen on all
> #
> listen on all
> 
> action "local" mbox alias 
> action "outbound" relay host
> smtp+tls://freddiebub...@imap1.countermail.com:465 auth 

You probably want smtps here, rather than smtp+tls.

> 
> # Uncomment the following to accept external mail for domain "example.org"
> #
> # match from any for domain "example.org" action "local_mail"
> match from local for local action "local"
> match from local for any action "outbound"
> 
> Cheers,
> Freddie
> 



Re: unable to send external mail with smtpd

2021-10-20 Thread Dave Voutila


freddiebub...@countermail.com writes:

> Hi, I'm new to openbsd having just set it up on my x200 and loving it
> (running so much better than my old distro). after reading through
> c0ffee's laptop set up guide and the afterboot man page i'm struggling
> to work out why i can't send mail through my mail account w smtpd. i
> have asked my provider for support about the issues i saw other people
> having (port 25 not being open) but they said that wasn't it and they
> were unsure about the problem. below i have linked to a paste of my
> smtpd.conf and my maillog. Personally i'm struggling to work out whats
> wrong from the log but i'm assuming i've not set something up right...
>
> maillog: http://ix.io/3ChF

I looked at your log messages and the only thing I can think of is this
mail provider requires some auth approach smtpd doesn't support
(CRAM-Md5). It seems they're more interested in supporting mail clients
and not a relaying connection from an MTA is my guess.

See: https://support.countermail.com/kb/faq.php?id=90

In that case, don't use smptd and configure whatever mail client you use
to connect directly to their service. (...or get a new service provider
that doesn't require CRAM-MD5)

Unless something's changed in 7-8 years I don't think OpenSMTPD is going
to support CRAM-MD5. See this old GH exchange with Gilles for some
background on why:

https://github.com/OpenSMTPD/OpenSMTPD/issues/430

-dv



unable to send external mail with smtpd

2021-10-20 Thread freddiebubble
Hi, I'm new to openbsd having just set it up on my x200 and loving it 
(running so much better than my old distro). after reading through 
c0ffee's laptop set up guide and the afterboot man page i'm struggling 
to work out why i can't send mail through my mail account w smtpd. i 
have asked my provider for support about the issues i saw other people 
having (port 25 not being open) but they said that wasn't it and they 
were unsure about the problem. below i have linked to a paste of my 
smtpd.conf and my maillog. Personally i'm struggling to work out whats 
wrong from the log but i'm assuming i've not set something up right...


maillog: http://ix.io/3ChF
smtpd.conf:

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

#listen on socket

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

action "local" mbox alias 
action "outbound" relay host 
smtp+tls://freddiebub...@imap1.countermail.com:465 auth 


# Uncomment the following to accept external mail for domain 
"example.org"

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

Cheers,
Freddie