Mails sent in IPv4 while I expect IPv6

2023-01-10 Thread Mik J
Hello,
My server has an IPv6 adress and is able to contact gmail mail server$ telnet 
2a00:1450:400c:c0a::1a 25Trying 2a00:1450:400c:c0a::1a...
Connected to 2a00:1450:400c:c0a::1a.
Escape character is '^]'.
220 mx.google.com ESMTP q7-20020a05600c46c700b003d9f3cf68d3si5203102wmo.92 - 
gsmtp

I relay using this ruleaction RELAIE relay
match from local tag DKIM_SIGNE for any action RELAIE

But when I look at my logs, the mails are sent over IPv4smtpd[30274]: 
79ebd464bef0b2e0 mta delivery evpid=d2651839f3f0795f from= 
to= rcpt=<-> source="10.1.2.2" relay="142.251.5.27 
(wg-in-f27.1e100.net)" delay=1s result="Ok" stat="250 2.0.0 OK  1673402672 
g14-20020adfa48e00b00285261d0e19si12019405wrb.385 - gsmtp"

Any idea why this would happen ?
version: OpenSMTPD 7.0.0



Re: Fwd: expand-only explanation

2023-01-10 Thread Илья Коскин
вт, 10 янв. 2023 г. в 17:15, :
>
> January 10, 2023 2:29 PM, "Илья Коскин"  wrote:
>
> > So, if I get you right, I can use expand-only for both "local" and
> > "external", but how can the delivery method be specified?
> >
> > For example, if i has this in alias table:
> > alice = foo
> > bob = b...@example.com
> >
> > Then, I must have the user "foo" and "match from any for local" rule?
> >
>
> You should paste your configuration because there are many valid 
> configurations
> for different use-cases that could use the alias table you show.
>
I'm not using "expand-only" so far. The "forward-only" rule is doing
great job for me now.
So I'm just investigating what else I can do.

> I'm assuming b...@example.com is a remote domain not handled by your ruleset, 
> in
> which case you would need the user foo to exist, and you would need a rule 
> that
> allows your smtpd to send mail to @example.com (you likely already have one 
> for
> sending mail to the outside).

Thank you very much for explanation! And also thank you very much for
all the work on OpenSMTPD!
OpenSMTPD is great software, and your work is invaluable!
And I'm so lucky for using it! Thank you!



Re: Fwd: expand-only explanation

2023-01-10 Thread gilles
January 10, 2023 2:29 PM, "Илья Коскин"  wrote:

> So, if I get you right, I can use expand-only for both "local" and
> "external", but how can the delivery method be specified?
>
> For example, if i has this in alias table:
> alice = foo
> bob = b...@example.com
> 
> Then, I must have the user "foo" and "match from any for local" rule?
> 

You should paste your configuration because there are many valid configurations
for different use-cases that could use the alias table you show.

I'm assuming b...@example.com is a remote domain not handled by your ruleset, in
which case you would need the user foo to exist, and you would need a rule that
allows your smtpd to send mail to @example.com (you likely already have one for
sending mail to the outside).



Fwd: expand-only explanation

2023-01-10 Thread Илья Коскин
So, if I get you right, I can use expand-only for both "local" and
"external", but how can the delivery method be specified?
For example, if i has this in alias table:
alice = foo
bob = b...@example.com

Then, I must have the user "foo" and "match from any for local" rule?

вт, 10 янв. 2023 г. в 11:15, :
>
> Hello,
>
>
> expand-only
> Only accept the message if a delivery method was specified in an aliases or 
> .forward file.
>
> forward-only
> Only accept the message if the recipient results in a remote address after 
> the processing of aliases or forward file.
>
>
> basically, you use expand-only if you want to force recipients to be 
> specified in aliases
> or forward file regardless of what they resolve to, and you use forward-only 
> if they must
> resolve to an external address.
>
> Gilles
>
>
>
> January 10, 2023 9:00 AM, "Илья Коскин"  wrote:
>
> > Hello misc! I'm sorry for bothering you.
> > I'm having trouble understanding what "expand-only" means, and what's
> > the difference between expand-only and forward-only.
> >
> > As I can see, I can use forward-only to accept for one rcpt and
> > through alias, send it to another.
> > Is that intended for? Am I right? Then, what is "expand-only" intended for?



Re: expand-only explanation

2023-01-10 Thread gilles
Hello,


expand-only
Only accept the message if a delivery method was specified in an aliases or 
.forward file.

forward-only
Only accept the message if the recipient results in a remote address after the 
processing of aliases or forward file.


basically, you use expand-only if you want to force recipients to be specified 
in aliases
or forward file regardless of what they resolve to, and you use forward-only if 
they must
resolve to an external address.

Gilles



January 10, 2023 9:00 AM, "Илья Коскин"  wrote:

> Hello misc! I'm sorry for bothering you.
> I'm having trouble understanding what "expand-only" means, and what's
> the difference between expand-only and forward-only.
> 
> As I can see, I can use forward-only to accept for one rcpt and
> through alias, send it to another.
> Is that intended for? Am I right? Then, what is "expand-only" intended for?



expand-only explanation

2023-01-10 Thread Илья Коскин
Hello misc! I'm sorry for bothering you.
I'm having trouble understanding what "expand-only" means, and what's
the difference between expand-only and forward-only.

As I can see, I can use forward-only to accept for one rcpt and
through alias, send it to another.
Is that intended for? Am I right? Then, what is "expand-only" intended for?