Comments (5)
Hi, sorry for the inconvenience. That indeed looks like the problem. I think we can fix this by putting single quotes around
nixos-mailserver/mail-server/users.nix
Line 64 in b75575f
${1}
in your script to work around the problem for now (but we should fix this nevertheless).
Thanks for using SNM!
from nixos-mailserver.
Yes, escaping the ${1}
in the script works. I guess the way to go is to change line 63 in nixos-mailserver/mail-server/users.nix to cat << 'EOF' > "/var/sieve/${name}/default.sieve"
. This way cat should ignore all dollars.
from nixos-mailserver.
Alternatively you could have a look at lib.pkgs.writeText. It seems to be used by most services in the nix store. But like your bash is weak, my nix is bad. So don't take my word for it.
from nixos-mailserver.
@The-M1k3y Thanks for the verification.
@eqyiel do you have an opinion on which of the proposed solutions is better? Any reason you did not use a nix function to write the scripts?
from nixos-mailserver.
@r-raymond I wasn't sure whether the files created by writeText
would be garbage collected if I symlinked them here. If it's the same to you, please consider #73
@The-M1k3y I've tried the example mentioned in the PR, but could you please see if it works for you too?
from nixos-mailserver.
Related Issues (20)
- Own DNS fails due to kresd being enabled. HOT 3
- Suggestion: Add option for admin email HOT 4
- There are plenty of new features that need documentation HOT 1
- How to send email to multiple recipients HOT 5
- Dovecot's default connections per ip is a bit low HOT 1
- [support] How to use only enableImapSsl and enablePop3Ssl? HOT 4
- localDnsResolver (kresd) fails HOT 3
- catchAll issue during sending HOT 2
- Using certificateScheme = 3 fails HOT 6
- 18.03 tests fail HOT 5
- Timeout on postfix.service when generating big DH parameter HOT 3
- add dmarc instructions to the complete guide? HOT 1
- Error connecting to IMAP HOT 5
- DKIM signature validation fails with the simple canonicalization HOT 4
- Looking for (Co)-Maintainer(s) HOT 4
- Provide mailing list support with mailman HOT 2
- Trouble with DKIM signature HOT 2
- Using ACME without another nginx process HOT 2
- Backup relay MTA HOT 1
- Will edit later
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-mailserver.