At 2025-06-26 21:20, Uolys wrote:

No luck. Although I redirected LMTP option from alias to virtual:

action "cyrus" lmtp "/var/cyrus/socket/lmtp" rcpt-to virtual <virtuals>

and there are no aliases in match section:

match !from local for domain <domains> action "cyrus"
match from local for local action "cyrus"

SMTP now attempts to deliver alias email to itself over MTA instead of MDA:

mta connecting address=smtp://217.147.40.110:25 host=sala.online.lt
mta connected
smtp connected address=217.147.40.110 host=sala.online.lt
smtp message msgid=… size=2668 nrcpt=1 proto=ESMTP
smtp envelope evpid=… from=<[email protected]> to=<[email protected]>
mta delivery evpid=… from=<[email protected]> to=<[email protected]> *rcpt=<[email protected]>* source="217.147.40.110" relay="217.147.40.110 (sala.online.lt)" delay=0s result="Ok" stat="250 2.0.0 … Message accepted for delivery"

smtp message msgid=… size=2847 nrcpt=1 proto=ESMTP
smtp envelope evpid=… from=<[email protected]> to=<[email protected]>
mta delivery evpid=… from=<[email protected]> to=<[email protected]> rcpt=<-> source="217.147.40.110" relay="217.147.40.110 (sala.online.lt)" delay=1s result="Ok" stat="250 2.0.0 … Message accepted for delivery"
smtp failed-command command="DATA" result="500 5.4.6 Routing loop detected: Loop detected"

-----

MDA still attepts to deliver mail to users (user=uolys), both externally and internally:

mda delivery from=…google.com to=<[email protected]> rcpt=<[email protected]> user=uolys delay=1d6h2m41s result=TempFail mda delivery evpid=… from=<[email protected]> to=<[email protected]> rcpt=<[email protected]> user=uolys delay=… result=TempFail stat=Error (temporary failure: "")

----- pakeitus alias to virtual, smtpd neranda adreso [email protected]:

smtp connected address=31.209.137.12 host=smtp.vivaldi.net
smtp failed-command command="RCPT TO:<[email protected]> ORCPT=rfc822;[email protected]" result="524 5.2.4 Mailing list expansion problem: <[email protected]>"

Would you mind sharing the contents of your <virtuals> table here? (you can omit some emails if you need to)

Otherwise, I suggest you look at trace and debug options in man smtpctl, which can help debug these kinds of issues.

I think I remember having the "Mailing list expansion problem" error when I didn’t add lmtp-delivery (just a user on my system, used by OpenSMTPD to deliver messages over LMTP) as an alias of “terminal” email addresses.

In my case, it looks something like this:

[email protected]    lmtp-delivery
[email protected]    [email protected]
[email protected]       [email protected]

and emails to [email protected] or [email protected] should deliver with rcpt=<[email protected]> user=lmtp-delivery

Reply via email to