1

Topic: iRedMail Attachment Storage Directory

Hi,
       Congratulations and thanks to all developers who have created this wonderful software. Though am a newbie am successfully running a mail server because of you guys.
       I like to know in which path the attachments sent and received by the users are stored.

2

Re: iRedMail Attachment Storage Directory

Attachment is not splited from email, so it should be in user mailbox.

3 (edited by rex_ray 2010-09-02 19:55:15)

Re: iRedMail Attachment Storage Directory

Thanks for the speedy response.

1. For testing I sent the "putty.exe" file as attachment to "testuser". He has successfully received the mail and it is in the INBOX of that user and am also able to download the "putty.exe" attachment file. I searched inside all the dirs in testuser's Maildir but am unable to found the "putty.exe" attachment. So I did a "updatedb" and searched for "putty.exe" using "locate" command but with no success.Can you please point out what am doing wrong here.

2. Also during installation I accepted the default dir of "/var/vmail" for storage of mails but the mails are stored in the "/var/vmail/vmail1/<mydomain>/<username>/Maildir/" path instead of "/var/vmail/<mydomain>/<username>/Maildir/" path.I like to know if I'll be able to change the path to the later one. Thanks in advance.

[root@smtp Maildir]# pwd
/var/vmail/vmail1/postfix.uni.edu.in/testuser/Maildir

[root@smtp Maildir]# ls -la
total 96
drwx------ 10 vmail vmail  4096 Sep  2 17:05 .
drwx------  3 vmail vmail  4096 Sep  2 14:07 ..
drwx------  2 vmail vmail  4096 Sep  2 16:17 cur
-rw-------  1 vmail vmail   496 Sep  2 16:16 dovecot.index
-rw-------  1 vmail vmail 23552 Sep  2 16:17 dovecot.index.cache
-rw-------  1 vmail vmail  5280 Sep  2 16:18 dovecot.index.log
-rw-------  1 vmail vmail    13 Sep  2 14:54 dovecot-keywords
-rw-------  1 vmail vmail   585 Sep  2 16:17 dovecot-uidlist/var/vmail/vmail1/postfix.pondiuni.edu.in/testuser/Maildir
-rw-------  1 vmail vmail     8 Sep  2 14:36 dovecot-uidvalidity
-rw-------  1 vmail vmail     0 Sep  2 14:07 dovecot-uidvalidity.4c7f624a
drwx------  5 vmail vmail  4096 Sep  2 14:07 .Drafts
drwx------  5 vmail vmail  4096 Sep  2 14:07 .Junk
-rw-------  1 vmail vmail   124 Sep  2 16:25 maildirsize
drwx------  2 vmail vmail  4096 Sep  2 16:17 new
drwx------  5 vmail vmail  4096 Sep  2 14:38 .Postmaster
drwx------  5 vmail vmail  4096 Sep  2 17:05 .Sent
-rw-------  1 vmail vmail    40 Sep  2 14:34 subscriptions
drwx------  2 vmail vmail  4096 Sep  2 16:17 tmp
drwx------  5 vmail vmail  4096 Sep  2 14:07 .Trash
drwx------  3 vmail vmail  4096 Sep  2 14:07 ..
drwx------  2 vmail vmail  4096 Sep  2 16:17 cur
-rw-------  1 vmail vmail   496 Sep  2 16:16 dovecot.index
-rw-------  1 vmail vmail 23552 Sep  2 16:17 dovecot.index.cache
-rw-------  1 vmail vmail  5280 Sep  2 16:18 dovecot.index.log
-rw-------  1 vmail vmail    13 Sep  2 14:54 dovecot-keywords
-rw-------  1 vmail vmail   585 Sep  2 16:17 dovecot-uidlist/var/vmail/vmail1/postfix.pondiuni.edu.in/testuser/Maildir
-rw-------  1 vmail vmail     8 Sep  2 14:36 dovecot-uidvalidity
-rw-------  1 vmail vmail     0 Sep  2 14:07 dovecot-uidvalidity.4c7f624a
drwx------  5 vmail vmail  4096 Sep  2 14:07 .Drafts
drwx------  5 vmail vmail  4096 Sep  2 14:07 .Junk
-rw-------  1 vmail vmail   124 Sep  2 16:25 maildirsize
drwx------  2 vmail vmail  4096 Sep  2 16:17 new
drwx------  5 vmail vmail  4096 Sep  2 14:38 .Postmaster
drwx------  5 vmail vmail  4096 Sep  2 17:05 .Sent
-rw-------  1 vmail vmail    40 Sep  2 14:34 subscriptions
drwx------  2 vmail vmail  4096 Sep  2 16:17 tmp
drwx------  5 vmail vmail  4096 Sep  2 14:07 .Trash

4

Re: iRedMail Attachment Storage Directory

attachements are encoded in the email itself as a base64 encoded string, you cant serach for the files that are attached to a email

5

Re: iRedMail Attachment Storage Directory

BigMichi1 wrote:

attachements are encoded in the email itself as a base64 encoded string, you cant serach for the files that are attached to a email

Thanks for the reply I wanted to know for backup purposes.

6

Re: iRedMail Attachment Storage Directory

rex_ray wrote:

2. Also during installation I accepted the default dir of "/var/vmail" for storage of mails but the mails are stored in the "/var/vmail/vmail1/<mydomain>/<username>/Maildir/" path instead of "/var/vmail/<mydomain>/<username>/Maildir/" path.I like to know if I'll be able to change the path to the later one. Thanks in advance.

You don't need to change them, it's designed to append 'vmailX' after '/var/vmail', so that it's easy to attach addition storage/disks by mounting them under /var/vmail/vmail2/, /var/vmail/vmail3, etc.