Solved Docker getmail image to fetch external mailaccounts like e.g. gmail

Currently reading
Solved Docker getmail image to fetch external mailaccounts like e.g. gmail

282
79
NAS
DS920+, DS916+, DS211j
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
Hi,
I have installed this image to fetch external email accounts e.g. gmail and/or aol via getmail

So Far it is working and my external emails are fetch and delivered to the docker/getmail/maildir/new
Now I would like to move those mails to my Mailplus Maildir folder of the users account.

I have already tried testing
Code:
cp "/volume1/docker/getmail/maildir/new/1600959045.M488492P33Q0Re82a9139b48bfbd2.getmail" "/volume1/MailPlus/@local/1026/1026/Maildir/new"
But this is only for copying one mail at the time. I need to be able to move all the new mails that arrive in the "new" folder.

Anyone know how to accomplish this?
 
Figured it out, this worked for me to move the messages and set the proper permission
Code:
#!/bin/bash
#
chown {user} /volume1/docker/getmail/maildir/new/*
chgrp {group} /volume1/docker/getmail/maildir/new/*
chmod 771 /volume1/docker/getmail/maildir/new/*
mv -n /volume1/docker/getmail/maildir/new/* /volume1/MailPlus/@local/1026/1026/Maildir/new
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

For the heck of it, I just checked again in docker container, and it announced an update was available. I...
Replies
4
Views
638
  • Question
Do realize, that enabling any user to run docker containers is largely the same as giving that user full...
Replies
6
Views
1,197
Hello, I already have it configured perfectly with wireguard. I was looking at the Gluetun configuration...
Replies
4
Views
823
Thanks... I tried something similar with rsync. The docker volume lived in...
Replies
7
Views
898
I can’t find any option to restore just the settings. 1710356648 Phew, managed to fix it. Within the...
Replies
4
Views
683
Good to hear. Deluge has not been updated for almost two years now as an app, nevertheless. But it gives...
Replies
12
Views
1,387
  • Question
Open an issue on that GitHub page. The developers will be glad to assist. OP has posted two threads on...
Replies
5
Views
1,334

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top