Catchall without Email Account

Discussion in 'General' started by ikrudolf, Nov 3, 2011.

  1. ikrudolf

    ikrudolf Member

    How to create a Catchall without an Email Account? (for example to a gmail address)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    A catchall in ispconfig requires a mailbox. But you can forward the emails from that mailbox to gmail automatically.
     
  3. ikrudolf

    ikrudolf Member

    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?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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]";
     
  5. ikrudolf

    ikrudolf Member

    Tnx Till but I'm not clever enough to do that :)

    Not sure where to change this?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Email > Mailbox > Custom rules
     
  7. ikrudolf

    ikrudolf Member

    I added
    as Custom mailfilter recipe but the mail doesn't get redirect and deleted.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    And your're sure that you use sieve and not maildrop on your server?
     
  9. ikrudolf

    ikrudolf Member

    Sorry don't even know what sieve is. What kind of impact will it have if I change from maildrop to sieve?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  11. ikrudolf

    ikrudolf Member

    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?
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Then use the amildrop rule that I posted and not the one for sieve.
     
  13. ikrudolf

    ikrudolf Member

    Sorry I was still sleeping and not reading well.... :eek:
    It works well now :)
     
  14. jrklein

    jrklein New Member

    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.
     

Share This Page