Hello,
For some mails i can delete the mailbox and just use forward,
but for some mail i need a mailbox (real user) and forward the mail.
I use online exchange from my company (office 365) , but i let the mail of 1 mailbox forward to my exchange mail box.
but i can only send mails form my company exchanges if it has a account (pop3/imap/...) connectect
Are you saying that Exchange requires you have a pop3/imap account somewhere else besides on Exchange? You should be able to set up an account only on Exchange.
But if you cannot (I'm not an expert on Exchange) then you need to delete the email on the DirectAdmin server but keep the account.
Note I've tested this on the latest version of DirectAdmin at the time of this writing, if you don't see the same choices I do, then be sure to update DirectAdmin.
Be very careful as the below instructions will delete email, and the process IS NOT REVERSIBLE. Your email will be lost forever (you can restore it from a backup) if you make the wrong selections.
From your userlevel login to DirectAdmin click on
E-Mail Accounts.
Then salect the mailbox or mailboxes from which you want to delete all emails.
At the bottom of the screen you'll find a
Purge From button; before pressing it see the first drop-down selection (which by default is
Spambox) and change it to
Inbox. The next drop-down selection is by default
All E-Mail but you can change it if you want. Then click on
Purge From when you're sure you're purging what you want to purge. Note that this can take a long time if you're purging a lot of email.
Best to do this while no email clients are logged in, to keep the indexes synchronized with the mailbox content.
Good luck and be sure to not make an error and delete something you need to keep.