Email Invitations #61
Replies: 34 comments 16 replies
-
I figure installing sendmail is all that's needed (https://stackoverflow.com/questions/38299776/usr-sbin-sendmail-not-found/38299891). I'll post an update when I updated the Dockerfile, would you be able to test it then? |
Beta Was this translation helpful? Give feedback.
-
yeah, for sure. I tried it and got stuck with the postfix installation :( |
Beta Was this translation helpful? Give feedback.
-
Ok, it's building now - based on previous Docker Hub builds, that'll take about 1.5h. Can you then please give it a try with one of the following (well, ideally both if you can) images?
|
Beta Was this translation helpful? Give feedback.
-
Yeah, I found that SO answer, too. I am still not sure, if that's the right thing to do since that means to really host such an smtp server which comes with quite some effort. I think it would be nicer to be able to include a service or at least having it configured outside the baikal container? |
Beta Was this translation helpful? Give feedback.
-
that description might be interesting for the setup: https://mchodled.com/posts/2020/Apr/03/de-google-your-calendar-with-baikal/#configure-email-invitation-plugin |
Beta Was this translation helpful? Give feedback.
-
I will provide a PR with my changes soon. It's working but I struggle to set the values in |
Beta Was this translation helpful? Give feedback.
-
@philippneugebauer I'm working on this myself. Using the solution from the mchodled.com link, I think it's possible to mount the files as volumes, so the end user should just have an #...
services:
baikal:
image: ckulka/baikal:nginx
container_name: baikal
restart: unless-stopped
volumes:
- ./config:/var/www/baikal/config
- ./data:/var/www/baikal/Specific
- ./msmtp_php:/etc/.msmtp_php The real trick is to update the sed -i 's/;sendmail_path =/sendmail_path = "/usr/bin/msmtp -C /etc/.msmtp_php --logfile /var/log/msmtp.log -a ${SENDMAIL_ACCOUNT} -t"/' /etc/php/8.0/fpm/php.ini where SENDMAIL_ACCOUNT is an environmental variable I haven't had time to test yet, though. |
Beta Was this translation helpful? Give feedback.
-
have you had a look at my PR? @ahgraber |
Beta Was this translation helpful? Give feedback.
-
Apologies, was moving fast trying to solve the same problem and just saw the comment about struggling to set values -- didn't see the PR link. Wasn't trying to be pedantic, just wanted to help :) Your solution is specific to the :apache version? |
Beta Was this translation helpful? Give feedback.
-
I did not mean it like that, I rather wanted to point out the PR to get some feedback from you I just haven't implemented it for nginx since I wanted to get some feedback first to avoid duplicate work |
Beta Was this translation helpful? Give feedback.
-
I'll follow up with comments on the PR itself. |
Beta Was this translation helpful? Give feedback.
-
Is this problem closed ? Is there a tutorial to use email invites ? |
Beta Was this translation helpful? Give feedback.
-
there is a possible option in #32 |
Beta Was this translation helpful? Give feedback.
-
I recently installed this container (great work!) on my Synology NAS and would love to get the email invites working. How would I go about enabling this? Do I need to download the experimental nginx version? Or is it going to get included in the latest release soon? Happy to be a tester but would need some help on how to get started. Also, I use a mail relay, not sure if this makes a difference? |
Beta Was this translation helpful? Give feedback.
-
build the dockerfile from #32 on your own and use it |
Beta Was this translation helpful? Give feedback.
-
I've been a happy radicale user for a few years now, after initially migrating away from baikal a couple of years ago. I've now setup baikal again, the reason was wanting to be able to send calendar invites for personal events, e.g. holiday flights. I've managed to use sendmail as included by the experimental images but that required a number of hacks:
This is the command I'm using that actually delivers mail properly to gmail and the like:
If any one is interested in the k8s manifest I used: |
Beta Was this translation helpful? Give feedback.
-
Thanks all, especially @philippneugebauer and @vaskozl. My proposal below is basically just a mix of #32 and #31 (comment). Would like to hear what you think of this:
The version: '2'
services:
baikal:
image: ckulka/baikal:nginx
environment:
BAIKAL_SERVERNAME: baikal.yourdomain.com
SENDMAIL_FROM: baikal@yourdomain.com
SENDMAIL_MAILER_DEFINITIONS: |
define(\`SMART_HOST', \`mail.yourdomain.com')dnl The The The If it's always the same one, we can reuse |
Beta Was this translation helpful? Give feedback.
-
No. It doesn't even need to be a valid FQDN. But it will be used to determine the envelope sender (e.g. nginx@$fqdn) in the case I personally use
I don't really have a preference and would be happy with either at the end of the day. |
Beta Was this translation helpful? Give feedback.
-
Regarding sendmail vs. msmtp, that's fair, I have no experience with either and just went off of comparing online presence on Google search results and Stackoverflow - but you could make an argument that sendmail has more because it's not as intuitive and easy to set up. Someone on reddit ranked it as "archaic where nobody knows how the configuration works" :) I also found out that the password secrets aren't hard either, because the environment variable with the configuration and password can (for example in Kubernetes) be stored in a secret, so no problem there - and even easier then in msmtp! I'll push an update to the features/mail branch with the configuration example from #32, does someone know/have a configuration for a simple SMTP server without security settings like auth or TLS? |
Beta Was this translation helpful? Give feedback.
-
I updated the feature branch, could you please review docs/email-guide.md? If the guide and the PR #63 in general looks good, I'll merge into @philippneugebauer I wanted to continue from your PR, but couldn't because of a merge conflict. I don't necessarily want to loose your commit/contribution from the Git history, if you rebase on the current |
Beta Was this translation helpful? Give feedback.
-
I've build a version of the However, after doing so, I can confirm that the images work and do send email invites. I'm running baikal as a k3s deployment, so I took inspiration from docs/email-guide.md, but had some additional tweaks required to get it working as a deployment while mounting If I can figure out how to do so, I'll set a PR against |
Beta Was this translation helpful? Give feedback.
-
I've set up Baikal in a docker container on a hosted server, I have smtp enabled from the host provider but sendmail doesn't work with the latest nginx build I also have an email server set up in an additional container and it is working with emails, it's just calendar invites that do not. Is there something other than defining the email address that the invites should come from? Do I need to enable additional env variables per above or has this already been rolled into the latest builds? |
Beta Was this translation helpful? Give feedback.
-
Finally! I got around cleaning up and publishing the documentation, examples, and updated Docker images for msmtprc:
Could you please give it a try and let me know if things work as expected? If so, I'll see that I release this before the next Baikal release, probably as something like |
Beta Was this translation helpful? Give feedback.
-
I'm no longer relying on baikal for my dav requirements, but I spun up a test container using |
Beta Was this translation helpful? Give feedback.
-
I also moved from baikal to nextcloud so I’m sorry I can’t help…..Marcos*Sent from my iPhoneOn Dec 31, 2022, at 16:25, Alex Graber ***@***.***> wrote:
I'm no longer relying on baikal for my dav requirements, but I spun up a test container using experimental-nginx and everything seemed to work as expected. This was a quick test, so I can't validate over a longer period.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks for this. I tested Unfortunately I've also just discovered that IOS 16.3 may be no longer compatible as I was having some trouble sending it out via the client. |
Beta Was this translation helpful? Give feedback.
-
Cheers for this. I definitely think msmtp is better, especially in a container without a mail daemon. Out of interest, do you guys know of an Android calendar client which works well with this feature, my current phone is an iPhone and the stock calendar app works great, but might not be my next phone and isn't for everyone in my household. |
Beta Was this translation helpful? Give feedback.
-
I've tested nginx-experimental, and it seems to work! I added a |
Beta Was this translation helpful? Give feedback.
-
I'm about to install Baïkal for it's ability to send out invitations. |
Beta Was this translation helpful? Give feedback.
-
I released 0.9.3+msmtp and the new images have been pushed to Docker Hub, so the 0.9.3 images now include msmtp. #131 reminded me that it's been a while and since there weren't any issues, it was high time to publish it! |
Beta Was this translation helpful? Give feedback.
-
Have you thought about solutions for enabling email invitations?
When I try that, I get the following error:
Beta Was this translation helpful? Give feedback.
All reactions