OpenSMTPD 6.4 - "Invalid recipient" with external mail client (thunderbird)

2018-10-26 Thread krjdev
Hello,

I recently upgraded my server to OpenBSD 6.4. But I have a problem with the
new
configuartion of OpenSMTPD:

When I send a mail with Thunderbird from an external IP, my server always
returns
the error message "invalid recipient".

When I connect to the server through SSH and send a mail via the local
client mutt,
everything works.

This is my configuration:
---
queue compression
queue encryption ad8004f927bd2b00a672c30704e3de11

pki mx1.example.com.pki cert "/etc/ssl/mx1.example.com.crt"
pki mx1.example.com.pki key "/etc/ssl/private/mx1.example.com.key"

table aliases file:/etc/mail/aliases
table vdomains file:/etc/mail/vdomains
table vusers file:/etc/mail/vusers

listen on lo0
listen on lo0 port 10028 tag DKIM
listen on egress tls pki mx1.example.com.pki auth-optional
listen on egress smtps pki mx1.example.com.pki auth
listen on egress port submission tls-require pki mx1.example.com.pki auth

action "local" mbox alias 
action "relay" relay
action "domain" lmtp "/var/dovecot/lmtp" virtual 
action relay_dkim relay host smtp://127.0.0.1:10027

match from local for local action "local"
match tag DKIM for any action "relay"
match from any for domain  action "domain"
match for any action relay_dkim
---

Is there something wrong in my current configuration?

Thanks in advance!

Cheers
Johannes


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



Re: OpenSMTPD 6.4 - "Invalid recipient" with external mail client (thunderbird)

2018-10-26 Thread Jesper Wallin
Hi,

You need to specify “from any” to your relay_dkim match rule. If not specified, 
it defaults to “from local”, which now is different from “auth”.


Regards,
Jesper Wallin

> On 27 Oct 2018, at 01:06,   wrote:
> 
> Hello,
> 
> I recently upgraded my server to OpenBSD 6.4. But I have a problem with the
> new
> configuartion of OpenSMTPD:
> 
> When I send a mail with Thunderbird from an external IP, my server always
> returns
> the error message "invalid recipient".
> 
> When I connect to the server through SSH and send a mail via the local
> client mutt,
> everything works.
> 
> This is my configuration:
> ---
> queue compression
> queue encryption ad8004f927bd2b00a672c30704e3de11
> 
> pki mx1.example.com.pki cert "/etc/ssl/mx1.example.com.crt"
> pki mx1.example.com.pki key "/etc/ssl/private/mx1.example.com.key"
> 
> table aliases file:/etc/mail/aliases
> table vdomains file:/etc/mail/vdomains
> table vusers file:/etc/mail/vusers
> 
> listen on lo0
> listen on lo0 port 10028 tag DKIM
> listen on egress tls pki mx1.example.com.pki auth-optional
> listen on egress smtps pki mx1.example.com.pki auth
> listen on egress port submission tls-require pki mx1.example.com.pki auth
> 
> action "local" mbox alias 
> action "relay" relay
> action "domain" lmtp "/var/dovecot/lmtp" virtual 
> action relay_dkim relay host smtp://127.0.0.1:10027
> 
> match from local for local action "local"
> match tag DKIM for any action "relay"
> match from any for domain  action "domain"
> match for any action relay_dkim
> ---
> 
> Is there something wrong in my current configuration?
> 
> Thanks in advance!
> 
> Cheers
> Johannes
> 
> 
> -- 
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> 


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



Re: OpenSMTPD 6.4 - "Invalid recipient" with external mail client (thunderbird)

2018-10-26 Thread Matt Schwartz
Change your  match for any action relay_dkim to match auth from any
for any action relay_dkim.

On Fri, Oct 26, 2018 at 7:10 PM Jesper Wallin wrote:
>
> Hi,
>
> You need to specify “from any” to your relay_dkim match rule. If not 
> specified, it defaults to “from local”, which now is different from “auth”.
>
>
> Regards,
> Jesper Wallin
>
> > On 27 Oct 2018, at 01:06,   wrote:
> >
> > Hello,
> >
> > I recently upgraded my server to OpenBSD 6.4. But I have a problem with the
> > new
> > configuartion of OpenSMTPD:
> >
> > When I send a mail with Thunderbird from an external IP, my server always
> > returns
> > the error message "invalid recipient".
> >
> > When I connect to the server through SSH and send a mail via the local
> > client mutt,
> > everything works.
> >
> > This is my configuration:
> > ---
> > queue compression
> > queue encryption ad8004f927bd2b00a672c30704e3de11
> >
> > pki mx1.example.com.pki cert "/etc/ssl/mx1.example.com.crt"
> > pki mx1.example.com.pki key "/etc/ssl/private/mx1.example.com.key"
> >
> > table aliases file:/etc/mail/aliases
> > table vdomains file:/etc/mail/vdomains
> > table vusers file:/etc/mail/vusers
> >
> > listen on lo0
> > listen on lo0 port 10028 tag DKIM
> > listen on egress tls pki mx1.example.com.pki auth-optional
> > listen on egress smtps pki mx1.example.com.pki auth
> > listen on egress port submission tls-require pki mx1.example.com.pki auth
> >
> > action "local" mbox alias 
> > action "relay" relay
> > action "domain" lmtp "/var/dovecot/lmtp" virtual 
> > action relay_dkim relay host smtp://127.0.0.1:10027
> >
> > match from local for local action "local"
> > match tag DKIM for any action "relay"
> > match from any for domain  action "domain"
> > match for any action relay_dkim
> > ---
> >
> > Is there something wrong in my current configuration?
> >
> > Thanks in advance!
> >
> > Cheers
> > Johannes
> >
> >
> > --
> > You received this mail because you are subscribed to misc@opensmtpd.org
> > To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> >
>
>
> --
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>

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



Re: OpenSMTPD 6.4 - "Invalid recipient" with external mail client (thunderbird)

2018-10-26 Thread Gilles Chehade
Actually it makes sense having both from local and auth rules

Re: OpenSMTPD 6.4 - "Invalid recipient" with external mail client (thunderbird)

2018-10-28 Thread Johannes Krottmayer
Hi,

Thank you very much!

Cheers
Johannes

On 27.10.18 at 01:40,  Matt Schwartz wrote:
> Change your  match for any action relay_dkim to match auth from any
> for any action relay_dkim.
> 
> On Fri, Oct 26, 2018 at 7:10 PM Jesper Wallin wrote:
>>
>> Hi,
>>
>> You need to specify “from any” to your relay_dkim match rule. If not 
>> specified, it defaults to “from local”, which now is different from “auth”.
>>
>>
>> Regards,
>> Jesper Wallin
>>
>>> On 27 Oct 2018, at 01:06,   wrote:
>>>
>>> Hello,
>>>
>>> I recently upgraded my server to OpenBSD 6.4. But I have a problem with the
>>> new
>>> configuartion of OpenSMTPD:
>>>
>>> When I send a mail with Thunderbird from an external IP, my server always
>>> returns
>>> the error message "invalid recipient".
>>>
>>> When I connect to the server through SSH and send a mail via the local
>>> client mutt,
>>> everything works.
>>>
>>> This is my configuration:
>>> ---
>>> queue compression
>>> queue encryption ad8004f927bd2b00a672c30704e3de11
>>>
>>> pki mx1.example.com.pki cert "/etc/ssl/mx1.example.com.crt"
>>> pki mx1.example.com.pki key "/etc/ssl/private/mx1.example.com.key"
>>>
>>> table aliases file:/etc/mail/aliases
>>> table vdomains file:/etc/mail/vdomains
>>> table vusers file:/etc/mail/vusers
>>>
>>> listen on lo0
>>> listen on lo0 port 10028 tag DKIM
>>> listen on egress tls pki mx1.example.com.pki auth-optional
>>> listen on egress smtps pki mx1.example.com.pki auth
>>> listen on egress port submission tls-require pki mx1.example.com.pki auth
>>>
>>> action "local" mbox alias 
>>> action "relay" relay
>>> action "domain" lmtp "/var/dovecot/lmtp" virtual 
>>> action relay_dkim relay host smtp://127.0.0.1:10027
>>>
>>> match from local for local action "local"
>>> match tag DKIM for any action "relay"
>>> match from any for domain  action "domain"
>>> match for any action relay_dkim
>>> ---
>>>
>>> Is there something wrong in my current configuration?
>>>
>>> Thanks in advance!
>>>
>>> Cheers
>>> Johannes
>>>
>>>
>>> --
>>> You received this mail because you are subscribed to misc@opensmtpd.org
>>> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>>>
>>
>>
>> --
>> You received this mail because you are subscribed to misc@opensmtpd.org
>> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>>
> 

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