Email error , Maildir failed: Permission denied

Hi

I’m using the last version of cyberpanel.

Last week we had access to email (SnappyMail) but now no one can access it, after login immodestly log out from the web mail

I upgrade cyberpanel to latest with 02 - Upgrading CyberPanel and then rebooted the server and after that we have problem again

I tried to issue ssl for mail and domain, but nothing happen.

Now I found this error:

2022-07-18 23:59:13 lda(info@mydomain.com)<5436><UkDRJYm01WI8FQAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-18 23:59:13 lda(info@mydomain.com)<5436><UkDRJYm01WI8FQAA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:04:33 lda(info@mydomain.com)<9534><qQ5DC8m11WI+JQAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:04:33 lda(info@mydomain.com)<9534><qQ5DC8m11WI+JQAA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:14:33 lda(info@mydomain.com)<10133><izF/DCG41WKVJwAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:14:33 lda(info@mydomain.com)<10133><izF/DCG41WKVJwAA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:23:12 lda(info@mydomain.com)<11032><h4/dESi61WIYKwAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:23:12 lda(info@mydomain.com)<11032><h4/dESi61WIYKwAA0J78UA>: Info: msgid=<yvSZgbrK5q8zXJRDQm0V588iBsUwMtl5hgdYAYsV34@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:29:33 lda(info@mydomain.com)<11339><HYWwI6W71WJLLAAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:29:33 lda(info@mydomain.com)<11339><HYWwI6W71WJLLAAA0J78UA>: Info: msgid=<yvSZgbrK5q8zXJRDQm0V588iBsUwMtl5hgdYAYsV34@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)

This was collected from dovecot-deliver.log file.
I have no Idea how to solve this …

founded document for email issue to connect it to cyber.cloud , but this service is not free… and couldn’t to use it anymore…

Base on your log, vmail not having execute permission.

1 Like

I Used this command

cmod 775 /home/vmail

and then restart the server but noting changes…

What is your vmail username:groupname?

1 Like

What do you mean?
Im using this vmail from cyberpanel , with cyberpanel automaticly install the email service and now its name is SnappyMail
But I don’t know what you mean about:

What is your vmail username:groupname?

sudo su -
cd /home/vmail
ls -al

Output:

drwxr-xr-x  2 username group 4096 Jun 22 14:09 .

Sent you output here.

1 Like


This is it

Did the censored part is the domain folder? if yes user:group for that domain must be vmail:vmail

Yes , the red line is my domain
Now what should I do?
I will send the report to your direct pv message

Try this command and you must run as su -

cd /home/vmail/
chown -R vmail:vmail *
1 Like

Stil have problem . the page is reloaded and login page apear agin , I mean when I used my user and pass then sign in , the page comeback to the login page.

Try check the log again.

1 Like
2022-07-18 23:59:13 lda(info@mydomain.com)<5436><UkDRJYm01WI8FQAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-18 23:59:13 lda(info@mydomain.com)<5436><UkDRJYm01WI8FQAA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:04:33 lda(info@mydomain.com)<9534><qQ5DC8m11WI+JQAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:04:33 lda(info@mydomain.com)<9534><qQ5DC8m11WI+JQAA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:14:33 lda(info@mydomain.com)<10133><izF/DCG41WKVJwAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:14:33 lda(info@mydomain.com)<10133><izF/DCG41WKVJwAA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:23:12 lda(info@mydomain.com)<11032><h4/dESi61WIYKwAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:23:12 lda(info@mydomain.com)<11032><h4/dESi61WIYKwAA0J78UA>: Info: msgid=<yvSZgbrK5q8zXJRDQm0V588iBsUwMtl5hgdYAYsV34@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:29:33 lda(info@mydomain.com)<11339><HYWwI6W71WJLLAAA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:29:33 lda(info@mydomain.com)<11339><HYWwI6W71WJLLAAA0J78UA>: Info: msgid=<yvSZgbrK5q8zXJRDQm0V588iBsUwMtl5hgdYAYsV34@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:34:33 lda(info@mydomain.com)<147897><i2BEMNG81WK5QQIA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:34:33 lda(info@mydomain.com)<147897><i2BEMNG81WK5QQIA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:39:33 lda(info@mydomain.com)<254478><G6HsC/291WIO4gMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:39:33 lda(info@mydomain.com)<254478><G6HsC/291WIO4gMA0J78UA>: Info: msgid=<yvSZgbrK5q8zXJRDQm0V588iBsUwMtl5hgdYAYsV34@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:59:33 lda(info@mydomain.com)<257611><MGxJD63C1WJL7gMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 00:59:33 lda(info@mydomain.com)<257611><MGxJD63C1WJL7gMA0J78UA>: Info: msgid=<yvSZgbrK5q8zXJRDQm0V588iBsUwMtl5hgdYAYsV34@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 01:14:33 lda(info@mydomain.com)<258533><ifkHDjHG1WLl8QMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 01:14:33 lda(info@mydomain.com)<258533><ifkHDjHG1WLl8QMA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 01:39:33 lda(info@mydomain.com)<259781><Fj/hFQ3M1WLF9gMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 01:39:33 lda(info@mydomain.com)<259781><Fj/hFQ3M1WLF9gMA0J78UA>: Info: msgid=<yvSZgbrK5q8zXJRDQm0V588iBsUwMtl5hgdYAYsV34@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:04:33 lda(info@mydomain.com)<260977><7h8CIOnR1WJx+wMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:04:33 lda(info@mydomain.com)<260977><7h8CIOnR1WJx+wMA0J78UA>: Info: msgid=<ohceywwjka7TjQgqKVyPBs1Sp8itz0dbC0VTDN6Bb0@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:04:33 lda(info@mydomain.com)<260979><mK9cIenR1WJz+wMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:04:33 lda(info@mydomain.com)<260979><mK9cIenR1WJz+wMA0J78UA>: Info: msgid=<ncNH3a3nGr9Tv3Sw4O6ec0wiIw321mE199OgfEEuQnk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:04:33 lda(info@mydomain.com)<260981><eCi8IunR1WJ1+wMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:04:33 lda(info@mydomain.com)<260981><eCi8IunR1WJ1+wMA0J78UA>: Info: msgid=<1747221292.905259.1658140625717@smtp.ihepsm.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:04:33 lda(info@mydomain.com)<260983><4qQcJOnR1WJ3+wMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:04:33 lda(info@mydomain.com)<260983><4qQcJOnR1WJ3+wMA0J78UA>: Info: msgid=<Z0SqaWLoEYw3TgGgjmF9F7utggLanHsGkR7DPDwe4@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:24:34 lda(info@mydomain.com)<261985><wTViJZrW1WJh/wMA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:24:34 lda(info@mydomain.com)<261985><wTViJZrW1WJh/wMA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:49:34 lda(info@mydomain.com)<263582><z1l0OXbc1WKeBQQA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 02:49:34 lda(info@mydomain.com)<263582><z1l0OXbc1WKeBQQA0J78UA>: Info: msgid=<yvSZgbrK5q8zXJRDQm0V588iBsUwMtl5hgdYAYsV34@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:14:35 lda(info@mydomain.com)<264920><7VlBElPi1WLYCgQA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:14:35 lda(info@mydomain.com)<264920><7VlBElPi1WLYCgQA0J78UA>: Info: msgid=<ohceywwjka7TjQgqKVyPBs1Sp8itz0dbC0VTDN6Bb0@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:14:35 lda(info@mydomain.com)<264922><JoOYE1Pi1WLaCgQA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:14:35 lda(info@mydomain.com)<264922><JoOYE1Pi1WLaCgQA0J78UA>: Info: msgid=<ncNH3a3nGr9Tv3Sw4O6ec0wiIw321mE199OgfEEuQnk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:14:35 lda(info@mydomain.com)<264924><ax0EFVPi1WLcCgQA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:14:35 lda(info@mydomain.com)<264924><ax0EFVPi1WLcCgQA0J78UA>: Info: msgid=<1747221292.905259.1658140625717@smtp.ihepsm.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:14:35 lda(info@mydomain.com)<264926><SehoFlPi1WLeCgQA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:14:35 lda(info@mydomain.com)<264926><SehoFlPi1WLeCgQA0J78UA>: Info: msgid=<Z0SqaWLoEYw3TgGgjmF9F7utggLanHsGkR7DPDwe4@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)

cd /home/vmail/mydomain.com/info/Maildir/
ls -al
1 Like

try in /home/vmail/mydomain.com/info/Maildir/tmp

1 Like

image

Try restarting postfix and dovecot

systemctl restart postfix
systemctl restart dovecot
1 Like

Like the same , login page reloaded
this is the last log

2022-07-19 03:34:36 lda(info@mydomain.com)<265953><VrPBCwTn1WLhDgQA0J78UA>: Error: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)
2022-07-19 03:34:36 lda(info@mydomain.com)<265953><VrPBCwTn1WLhDgQA0J78UA>: Info: msgid=<Y0MHfwIuvWbPZHYrdiSoALZgsiiGUu3fhzXY2lmyk@mydomain.com>: save failed to open mailbox INBOX: stat(/home/vmail/mydomain.com/info/Maildir/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/vmail/mydomain.com, dir owned by 0:0 mode=0700)

It’s not better to change the email server ?
for example this : Install iRedMail on Debian or Ubuntu Linux