mubn / ansible-mail-server Goto Github PK
View Code? Open in Web Editor NEWProduction grade email server setup with only one command...
Production grade email server setup with only one command...
Hello,
thank you for your work, this has taken a lot of work off my hands.
I had problems with the Catch-All alias. In the original version there is the alias table. A null
for the source_username
stands for "Forward all mails that cannot be mapped to destination". This does not work or me. Maybe this should not work for security reasons. But if it should work is here what I changed:
The schema for the alias table is located at roles/mariadb/files/schema.sql
and has
CREATE TABLE `aliases` (
...
`source_username` varchar(64) NOT NULL,
...
);
The fix is to allow the source_username
to be NULL
There is also a query in roles/postfix/templates/sql/aliases.jq
:
select concat(destination_username, '@', destination_domain) as destinations from aliases where source_username = '%u' and source_domain = '%d' and enabled = true;
I used the original query
SELECT DISTINCT concat(destination_username, '@', destination_domain) AS destinations FROM aliases
WHERE (source_username = '%u' OR source_username IS NULL) AND source_domain = '%d'
AND enabled = true
AND NOT EXISTS (SELECT id FROM accounts WHERE username = '%u' and domain = '%d');
After this changes, Catch-All Support works for me, but the mailserver is not in production use. So maybe this fix creates some side effects.
Please check the fix and if this is good, it can be adopted.
If it's not good, or makes a security hole possible, feel free to tell me why.
I have this error:
fatal: [172.xxx.xxx.xxx]: FAILED! => {"cache_update_time": 1628087767, "cache_updated": true, "changed": false, "msg": "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'rspamd' 'redis-server'' failed: E: Unable to correct problems, you have held broken packages.\n", "rc": 100, "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stderr_lines": ["E: Unable to correct problems, you have held broken packages."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n rspamd : Depends: libicu57 (>= 57.1-1~) but it is not installable\n Depends: libsodium18 (>= 0.6.1) but it is not installable\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " rspamd : Depends: libicu57 (>= 57.1-1~) but it is not installable", " Depends: libsodium18 (>= 0.6.1) but it is not installable"]}
i dont want to install certbot, please can you give a hint for this error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.