i have an additional info!
i have checked logs when mail is sent from mail utility:
Mar  5 18:52:23 mx smtpd[13842]: 165f7946b5b2e582 smtp connected
address=local host=mx.kasakoff.net
Mar  5 18:52:23 mx smtpd[13842]: 165f7946b5b2e582 smtp message
msgid=6bc3d534 size=338 nrcpt=1 proto=ESMTP
Mar  5 18:52:23 mx smtpd[13842]: 165f7946b5b2e582 smtp envelope
evpid=6bc3d53407114548 from=<[email protected]> to=<[email protected]>
and when i try to connect via 127.0.0.1:
Mar  5 19:39:20 mx smtpd[13842]: 165f798f0dfd229b smtp connected
address=127.0.0.1 host=localhost
Mar  5 19:39:52 mx smtpd[13842]: 165f798f0dfd229b smtp failed-command
command="RCPT TO:<[email protected]>" result="550 Invalid recipient: <
[email protected]>"
i see a difference in "connected address" where "local" can send everything
and "127.0.0.1" work as expected.
but then, what "local" is?

пт, 5 мар. 2021 г. в 19:25, Илья Коскин <[email protected]>:

> Hello everybody! I have this simple config in use:
>
> table aliases file:/etc/mail/aliases
> table domains { kasakoff.net }
>
> listen on lo0
>
> listen on egress inet4 tls pki kasakoff.net auth-optional
> listen on egress inet4 port submission tls-require pki kasakoff.net auth
>
> action "mbox" mbox alias <aliases>
> action "deliver" mda "/usr/local/libexec/dovecot/dovecot-lda
> action "relay" relay
>
> match action "mbox"
> match from any for domain <domains> action "deliver"
> match auth from any for any action "relay"
>
> ------------------------------
> as i can imagine, the "mbox" match is expanded to
> match from local to local action "mbox"
> if I understand it correctly, "from local" means that mail has come from
> 127.0.0.1(or what?), and "for local" is what?
>
> I am asking, because actually, with this config, i can send mail to any
> server, look:
> mx$ mail -v -r [email protected] -s "test mail" [email protected]
> test
> .
> EOT
> <<< 220 mx.kasakoff.net ESMTP OpenSMTPD
> >>> EHLO localhost
> <<< 250-mx.kasakoff.net Hello localhost [local], pleased to meet you
> <<< 250-8BITMIME
> <<< 250-ENHANCEDSTATUSCODES
> <<< 250-SIZE 104857600
> <<< 250 HELP
> >>> MAIL FROM:<[email protected]>
> <<< 250 2.0.0 Ok
> >>> RCPT TO:<[email protected]>
> <<< 250 2.1.5 Destination address valid: Recipient ok
> >>> DATA
> <<< 354 Enter mail, end with "." on a line by itself
> >>> .
> <<< 250 2.0.0 6bc3d534 Message accepted for delivery
> >>> QUIT
> <<< 221 2.0.0 Bye
>
> "tvema.ru" is not local, then, why does it work?
> thanks in advance for help, and personally thanks devs for the great
> software
>

Reply via email to