ukhost

Well-Known Member
Jan 8, 2002
222
0
316
Hi,

Is there a quick way to remove the contact email for all accounts on a server?

I'm wanting to remove them all so that I can work on a popup request to ensure all clients fill in the contact email/update the contact email address.

Kind Regards,

ukhost
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:61bd003924][i:61bd003924]Originally posted by ukhost[/i:61bd003924]

Hi,

Is there a quick way to remove the contact email for all accounts on a server?

I'm wanting to remove them all so that I can work on a popup request to ensure all clients fill in the contact email/update the contact email address.

Kind Regards,

ukhost[/quote:61bd003924]
Contact email address is kept in this file : /home/user/.contactemail
replace user with your usernames
 

ukhost

Well-Known Member
Jan 8, 2002
222
0
316
Is there a quick way to replace all .contactemail files with a blank file rather than one by one?

Kind Regards,

ukhost
 

ecoutez

Well-Known Member
May 23, 2002
152
0
316
Users with no valid contact email will have no .contactmail file at all. Something like &rm -f /home/*/.contactmail& should blank it out for all your users.

- Jason
 

ukhost

Well-Known Member
Jan 8, 2002
222
0
316
Hi Guys,

The above did remove the .contactemail files from all users, however mistically they return when you login to the cpanel account with the address as it was set, if it was set!! :eek:(

Any other suggestions?

Kind Regards,

Neil
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:d58693306a][i:d58693306a]Originally posted by ukhost[/i:d58693306a]

Hi Guys,

The above did remove the .contactemail files from all users, however mistically they return when you login to the cpanel account with the address as it was set, if it was set!! :eek:(

Any other suggestions?

Kind Regards,

Neil[/quote:d58693306a]

It seems that you think removing contact email will cause a pop-up asking user to re-enter his/her contact email, [b:d58693306a]But it is not True[/b:d58693306a]

Whether a user has contact email configured or not there won't be any pop-ups, if you actually want to have your users' contact information the critical point is Billing part this is where you can collect users' info.

But about .contactemail file, it's the only place that contact email is kept if you remove them then there will be no contact email address.
 

ukhost

Well-Known Member
Jan 8, 2002
222
0
316
I know that it will bring up a popup as the skin I am using is designed to do this.

Kind Regards,

Neil
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:c460ed1c73][i:c460ed1c73]Originally posted by ukhost[/i:c460ed1c73]

I know that it will bring up a popup as the skin I am using is designed to do this.

Kind Regards,

Neil[/quote:c460ed1c73]

.contactemail file, is the only place that contact email is kept if you remove them then there will be no contact email address.
 

ukhost

Well-Known Member
Jan 8, 2002
222
0
316
I have removed them.

I login to WHM and none of the accounts there have an email address.

If I then login to cpanel on one of the account where there was a contact email address before it magically reappears!?!?!?!?!?

Kind Regards,

Neil
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:0a51515abe][i:0a51515abe]Originally posted by ukhost[/i:0a51515abe]

I have removed them.

I login to WHM and none of the accounts there have an email address.

If I then login to cpanel on one of the account where there was a contact email address before it magically reappears!?!?!?!?!?

Kind Regards,

Neil[/quote:0a51515abe]
I checked if it is a cpanel bug but is not a bug; it's working fine, but everytime you go to cpanel update contact section it adds .contactemail even you don't enter any address it is a blank file

What's wrong?

log out then log on to remove your browser's cache during your test
 

ecoutez

Well-Known Member
May 23, 2002
152
0
316
Hrmm... pretty weird, but repeatable. I just had it happen on some test accounts too. It appears that CPanel is entering the default (catch-all) address as it appears in /etc/valiases/domain.tld *IF* this is an email address. If the user has his default address set to &username&, CPanel will create a blank .contactemail file.

If your case where you're trying to get everyone to enter a valid email address, this may not be that bad. At least you'll get addresses for everyone that hasn't explicitly entered one, and you have something entered already for everyone who routes their default mail elsewhere.

Maybe before you put the pop-up script into place, send an email to everyone with an address already listed and ask them about their correct contact info? Take note of the bounces, and remove the default settings for those users in /etc/valiases/domain.tld and replace with their username.

- Jason
 

itf

Well-Known Member
May 9, 2002
620
0
316
Let's show you our solution about handling contact email.

With a Perl script we generate contact email from our billing database, if .contactemail file is empty or does not exist.
That’s it.
 

Juanra

Well-Known Member
Sep 22, 2001
777
0
316
Spain
[quote:507b9d8c43][i:507b9d8c43]Originally posted by itf[/i:507b9d8c43]
With a Perl script we generate contact email from our billing database, if .contactemail file is empty or does not exist.
That’s it.
[/quote:507b9d8c43]

That's the most sensible approach imo, since it's very likely that you get every customer's address when they sign up. It shouldn't be necessary to ask for it again when they log into their cpanel. Actually it would be a very good idea to include an email address field in the account creation form (along with the theme language, btw ;) )