The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to get a complete email list

Discussion in 'cPanel Developers' started by Sarabanda, Jun 1, 2017.

  1. Sarabanda

    Sarabanda Registered

    Joined:
    Jun 1, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello

    I need a complete list of email used by my users . This list should include
    pop , forwarders, and also an email like this mailing-owner@domain.com .

    I have seen that
    cpapi2 --user=username Email listforwards
    list all email forwards of an user .

    and
    cpapi2 --user=username Email listlists

    list all email used by mailman.

    But how to list all various email like this (used by mailman) using cpapi2 from console ?

    Code:
    mailing-admin@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman admin mailing_domain.com"
    mailing-bounces@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman bounces mailing_domain.com"
    mailing-confirm@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman confirm mailing_domain.com"
    mailing-join@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman join mailing_domain.com"
    mailing-leave@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman leave mailing_domain.com"
    mailing-owner@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman owner mailing_domain.com"
    mailing-request@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman request mailing_domain.com"
    mailing-subscribe@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman subscribe mailing_domain.com"
    mailing-unsubscribe@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman unsubscribe mailing_domain.com"
    mailing@domain.com: "|/usr/local/cpanel/3rdparty/mailman/mail/mailman post mailing_domain.com"
    
    BTW there is a fast way to get all email in a server , really ALL and of any type/kind ?

    Thank you!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I don't believe it's possible to list those entries via an API command, but you can find them listed in the following file:

    Code:
    /etc/valiases/$domain.tld
    Thank you.
     
  3. Sarabanda

    Sarabanda Registered

    Joined:
    Jun 1, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    indeed it's not possible, hoping to have this possibility in API3 :(;)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I encourage you to open a feature request if you'd like to see an additional API function added:

    Submit A Feature Request

    Thank you.
     
Loading...

Share This Page