How do I add an archive folder to all mailboxes on my server

If none of the more specific forums is the right place to ask

How do I add an archive folder to all mailboxes on my server

Postby jaytelford » 2018-09-08 19:49

Hi Guys,

I have been getting my mail server all set up and running, so that I can move from G-Suite as I was paying Google for a whole load of services that I wasn't using - services that all required access to my information/details, when all I needed was email. So; now I have my mail server working, but I cant figure out how to add an Archive folder to the mailboxes.

When I look in my subscriptions file, I see things like Trash, Spam and so on but there is no Archive.

Can I just make an entry on a new line within the subscriptions file and call it Archive? Would that add the Archive folder to my mailboxes?

Thanks
Jay
jaytelford
 
Posts: 13
Joined: 2018-05-09 10:56
Location: United KIngdom

Re: How do I add an archive folder to all mailboxes on my se

Postby arzgi » 2018-09-09 08:45

jaytelford wrote:When I look in my subscriptions file, I see things like Trash, Spam and so on but there is no Archive.

Can I just make an entry on a new line within the subscriptions file and call it Archive? Would that add the Archive folder to my mailboxes?


That's the general rule, they are just directories. But you should tell about your mail server, what program/s are you using, etc. before any spesific advice can be given.
arzgi
 
Posts: 389
Joined: 2008-02-21 17:03
Location: Finland

Re: How do I add an archive folder to all mailboxes on my se

Postby jaytelford » 2018-09-09 10:08

Thanks for your reply. Sorry that I didn't give much more information. I just assumed; wrongly perhaps, that it would be obvious what I was referring too.

I am using Postfix/Dovecot and connecting to the server via IMAP over a TSL/SSL connection.

I use the following apps to connect

OSX - Apple Mail.app
WIndows 10 - Em Mail
Pixel XL - Android Pie - The Built in Gmail app

When I go to the following directory on my server

Code: Select all
/var/qmail/mailnames/domainname.domain/username/Maildir


I see a file called subscriptions and reading the file with vim, I see the following subscriptions (which are folders that are shown in the apps I use to connect to my email account)

Trash
Queue
Sent
Drafts
Spam

So my question is, if I just add Archive to that list, will this add a folder called Archive to my mailbox?

Also, if this is the case, then I can do that for my own mailboxes, but to save having to do this for every mailbox that I create in the future - how would I get Archive to be automatically added to the subscription list?
jaytelford
 
Posts: 13
Joined: 2018-05-09 10:56
Location: United KIngdom

Re: How do I add an archive folder to all mailboxes on my se

Postby arzgi » 2018-09-09 10:33

jaytelford wrote:I am using Postfix/Dovecot and connecting to the server via IMAP over a TSL/SSL connection.

I use the following apps to connect

OSX - Apple Mail.app
WIndows 10 - Em Mail
Pixel XL - Android Pie - The Built in Gmail app

When I go to the following directory on my server

Code: Select all
/var/qmail/mailnames/domainname.domain/username/Maildir


I see a file called subscriptions and reading the file with vim, I see the following subscriptions (which are folders that are shown in the apps I use to connect to my email account)

Trash
Queue
Sent
Drafts
Spam

So my question is, if I just add Archive to that list, will this add a folder called Archive to my mailbox?

Also, if this is the case, then I can do that for my own mailboxes, but to save having to do this for every mailbox that I create in the future - how would I get Archive to be automatically added to the subscription list?


Folders are Windows terminlogy, unix/linux have directories.

Just add Archive directory, and see if it works. You might also open terminal, go to Maildir, and use command
Code: Select all
ls -l
and give same options to Archive by chmod.
arzgi
 
Posts: 389
Joined: 2008-02-21 17:03
Location: Finland

Re: How do I add an archive folder to all mailboxes on my se

Postby jaytelford » 2018-09-09 14:44

Folders are Windows terminlogy, unix/linux have directories.

Just add Archive directory, and see if it works. You might also open terminal, go to Maildir, and use command

Code: Select all
ls -l

and give same options to Archive by chmod.


Thanks for your reply. I work between Windows and Linux so I guess some of my Windows head slipped in. Wasn't intentional.

You know I can't believe that I didn't think about doing ls -a to see what hidden directories were there. I see now that there are various hidden directories like .Sent, .Drafts and so on.

So if I just literally create a .Archive folder - that should work?

Mail Servers are extremely new to me as up until now I have been using G-Suite in its various forms but wanted to bring everything together to make the best use of my server and keep control of my own data now that I will be moving forward with a project that I have been planning.

Hence, setting up my own mail server.
jaytelford
 
Posts: 13
Joined: 2018-05-09 10:56
Location: United KIngdom

Re: How do I add an archive folder to all mailboxes on my se

Postby arzgi » 2018-09-09 15:01

jaytelford wrote:So if I just literally create a .Archive folder - that should work?


Yes, if the other dirs are also same format.

Remember, you can't brick you computer with software. Just take notes what you do, so you can take step back, if you don't get desired effect. Error messages are not bad, they give you direction, where to go.
arzgi
 
Posts: 389
Joined: 2008-02-21 17:03
Location: Finland


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable