Current time: 04-19-2024, 02:55 PM Hello There, Guest! (LoginRegister)


Post Reply 
[solved] Have a list of emails of a specific domain
Author Message
bcon2013 Offline


Posts: 4
Joined: Apr 2013
Reputation: 0
Post: #1
[solved] Have a list of emails of a specific domain
Hi Team, my question is:

HOW TO get the list of mailboxes associated to a domain?

I try to explain better with an example:
- I have a domain blablabla.com
- I have 100 mailboxes associated to that domain
- I can see all of them within the ISPCP Omega panel of that domain
BUT

MY QUESTION IS: how can I get the list of all of them into a file or into an email?

Till now I always done a copy/paste for any page, but I'm wondering if there is a more clever way to do that.

Hope it is the right forum to ask it.

Thanks for your support. Bye, Vale
(This post was last modified: 04-19-2013 06:12 PM by joximu.)
04-19-2013 12:07 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Have a list of emails of a specific domain
Either set the list-max-count to 100 or so
or have a look at /etc/postfix/ispcp/aliases (or another file there... maiboxes etc)


/J
04-19-2013 02:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
bcon2013 Offline


Posts: 4
Joined: Apr 2013
Reputation: 0
Post: #3
RE: Have a list of emails of a specific domain
Hi Joximu,
thanks for your quick answer, but sorry...maybe I explain wrong my needs.

I checked the files you suggested but they are including ALL the mailboxes in a scramble manner.
I need something different.
I need to have a list of mailboxes to be exported for a specific domain.

I'll try to explain with a more clear (I HOPE!) example:
- I have (let's say) X domains.
- One of the domain is blablabla.com
- Into blablabla.com I created (let's say) 10 mailboxes (or 100 or 50 or whatever number). The names will be xxx@blablabla.com, yyy@blablabla.com, etc@blablabla.com .....

Now, I could have the need to have a list including all the mailboxes (into an email or into a file or whatever) of a specific domain (for example: blablabla.com) .

I know I can read the mailboxes on the ISPCP panel, but I could have the needs to get a list of them to use locally on my PC.

Is there a way to get it? Is there any command or any file having the mailboxes ordered by the domain?

Thanks for your support. Bye, Vale
04-19-2013 06:55 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Have a list of emails of a specific domain
Hi

well - I think I understood right... but I did not write everything... :-/

One way: in ispcp: as domain user you have the addresses on the page with the mailboxes. - of course the "autoresponder" thing is also there which might be disturbing.
the number of lines you can set as ispcp admin in the settings: "domains per page"...

Or there are the system files: as stated... but you might need to filter them...
grep "@domain.tld" /etc/postfix/ispcp/mailboxes | cut -f 1 | sort
(here you don't have the alias-adresses/forwardings)

if you need another approach you have to write your own solution using the data in the mysql database...

/Joxi
04-19-2013 11:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
bcon2013 Offline


Posts: 4
Joined: Apr 2013
Reputation: 0
Post: #5
(SOLVED) Have a list of emails of a specific domain
Hi,

thanks again for the time you spent for my problem!

Your first solution is what I'm using at the moment, but you got it! The "autoresponder" is bothering me.

BUT your second solution is great.

Now I know there is nothing ready, so using the file you said, I can "grep" info I need.

In the meantime I'll start to prepare my own solution. I'll be happy to share it for anyone needs.

Thanks Joximu! Valentina

PS: signed "SOLVED" into the title of the post.
04-19-2013 06:10 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: [solved] Have a list of emails of a specific domain
Hi Valentina

Just a little note: maybe you noticed that development stopped for ispcp (> 2 years ago), maybe it's better you have a look at one of the forks, either i - m s c p.net or e a s y s c p.net (or other?)

Cheers Joxi
04-19-2013 06:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bcon2013 Offline


Posts: 4
Joined: Apr 2013
Reputation: 0
Post: #7
RE: [solved] Have a list of emails of a specific domain
(04-19-2013 06:16 PM)joximu Wrote:  Hi Valentina

Just a little note: maybe you noticed that development stopped for ispcp (> 2 years ago), maybe it's better you have a look at one of the forks, either i - m s c p.net or e a s y s c p.net (or other?)

Cheers Joxi

Joxi, yes.
I'm studying to move to e a s y fork, but I'm forced to keep the present solution till the summer due to a big workload. If I will develop my solution I'll be sure it fits both the environment ;-) Thanks, I strongly believe share knowledge is a wonderful gift. Vale
04-19-2013 06:53 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)