[2026-01-06 14:32] Sidney Cadot <[email protected]> > > [...] > > My test server is a Debian 13 machine that has opensmtpd version 7.6.0 > installed. > > I have a very minimal /etc/smtpd.conf for test purposes. Apart from > comments, it contains just these three lines: > > listen on 0.0.0.0 port 2525 > action "my-test-mda" mda "/home/sidney/mda/mda.py exitcode=0" > match from any action "my-test-mda"
Each match in smtpd requires a from and a for for the sender (client/ip level) and the recipient (domain). When you omit one of them, there are sane fallbacks. For the recipient this is the <localnames> special table, which matches your hostname and your ip address. So your match rule expand to: match from any for <localnames> action "my-test-mda" you can see this in the folloing log entry: > lookup: match "wherewithal.nl" as domain in table static:<localnames> -> false So to fixe this simplest solution is to add 'for domain "wherewithal.nl"' to your match rule. After that you can look at the users in your action as Crystal Kolipe explained in his mail. > [...] > > My questions: > > * Is this behavior expected, and if so, is it documented? This is documented in "for local" of "match": > This is the default, and may be omitted. > * What should I change in my smtpd.conf to get incoming messages accepted > into the mail queue? Write a full match like this: > match from any for domain "wherewithal.nl" action "my-test-mda" Philipp > As soon as that works, I can direct my attention to the following steps -- > altering the deliver-to of the messages, and relaying them to my ISPs SMTP > server. I probably will have some questions about that too. But first I > need to make sure messages are queued. > > Any help will be appreciated, cheers, > > Sidney
