Skip to main content

One Auto responder for all mailboxes? Is it possible?


1 comment

  • rbairwell

    I wouldn't do this personally as when a dictionary attack spammer targets that domain and tries to send hundreds of emails to random addresses (which normally your server would reject with "no such user here" near the start of the transmission- and if you are running something like CSF - will then block them after a number of tries), your server will then receive these emails, process them and then send out autoresponders to the email address featured (which, knowing spammers, will be invalid - and so your server will queue up thousands of auto responses which it'll never deliver...)

    However, if you do want to proceed with this, try the following (for

    1) First make the auto-responder as per normal in cPanel under "Tools->Autoresponders" on a set email address (such as )

    2) Under "Tools->Default Address", set it to

    Send all unrouted email for the following domain:

    Advanced Options:

    [select] Pipe to a program

    /usr/local/cpanel/bin/autorespond /home/example/.autorespond

    Where "" is the email address you set up in step 1 (it's needed here to be able to point towards the correct autoresponder file and configuration) and /home/example/ is the account directory of the user (whose cPanel username is "example")

    [Alternatively, for step 2:

    2) As root, open the file /etc/valiases/ and you'll see something like: "|/usr/local/cpanel/bin/autorespond /home/example/.autorespond"
    *: :fail: No such person at this address.

    with the * entry being the "default address" setting. Change the file to be: "|/usr/local/cpanel/bin/autorespond /home/example/.autorespond"
    *: "|/usr/local/cpanel/bin/autorespond /home/example/.autorespond"

    Hope it helps!


Please sign in to leave a comment.