A catchall in ispconfig requires a mailbox. But you can forward the emails from that mailbox to gmail automatically.
Is it possible for you to change it so it is also possible to create catchall without mailbox? Is it possible to automatically delete the email that are forwarded to the gmail?
Sure, you can change the ispconfig sourcecode as ISPConfig is released under a OpenSource license. Maildrop syntax: to "[email protected]" Sieve syntax: redirect "[email protected]";
Sorry don't even know what sieve is. What kind of impact will it have if I change from maildrop to sieve?
Your system supports either sieve or maildrop depending on the software that you installed on your server before you installed ispconfig. If you installed courier imap, then you use maildrop. If you installed dovecot, then you use sieve.
I use maildrop. Is there another way to delete the mail when forwarded? Is it a big change in ispconfig to be able to create a catchall without mailbox?
Catchall without Email Account, ISPconfig 3 + Dovecot + Sieve We also required a catchall without mailbox solution for Dovecot/Sieve on ISPconfig 3. I found that these steps work perfectly. 1. Create a new mailbox for the domain (e.g.: [email protected]). 2. Create a catchall for the domain that points to new mailbox. 3. Edit mailbox and go to the "Custom Rules" tab. Enter these two rules: redirect "[email protected]"; stop; If I use these rules, an email sent to "[email protected]" is redirected to "[email protected]" and discarded. No messages are saved in the catchall mailbox! You MUST include the "stop;" line or Sieve will NOT discard the message after forwarding. Suppose your catchall mailbox is "[email protected]". Login to the mail server that hosts the mailbox and type the following to view the entire Sieve filter for this mailbox. cat /var/vmail/domain.org/catchall/.sieve Contents of the Sieve filter file are as follows. require ["fileinto", "regex", "date", "relational", "vacation"]; redirect "[email protected]"; stop; keep; Notice the "keep;" line added by ISPconfig 3 at the end of the file? If you do not specify "stop;" to terminate the Sieve script, Dovecot will execute the "keep;" command and place a copy of the message in your catchall mailbox.