Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does postfix config sqlite query do on mail.-users.sh line 118? #2419

Open
lifeboy opened this issue Aug 5, 2024 · 1 comment
Open

Comments

@lifeboy
Copy link

lifeboy commented Aug 5, 2024

On line 118 of setup/mail-postfix.sh the sqlite query that retrieves the virtual-mailbox-domains for Postfix doesn't make sense to me. Could someone please explain what this query does?

I'm trying to do an integration with Mailman3, but need to see what the actual output of that query is, but I get no result when I run it. However, I do get a warning from Postfix: "warning: do not list domain <mydomainname> in BOTH virtual_mailbox_domains and relay_domains".

I have a couple of users in the users table, some aliases and some auto_aliases, but the SELECT 1 FROM users WHERE email LIKE "%%@%s" returns no results. Neither does the aliases or auto_aliases table with that LIKE condition.
Is this just a place holder for the real query or what's going on here?

Some assistance would be hugely appreciated!

@lifeboy
Copy link
Author

lifeboy commented Aug 5, 2024

I'm wondering if "%s" in the query is actually used when the query is run and it's the first argument/parameter that is passed with the query?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant