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

89
26
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?
 
89
26
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.

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Similar threads

Similar threads

Top