jandafields
Members-
Posts
349 -
Joined
-
Last visited
Everything posted by jandafields
-
How To Install Squirrelmail - The Ultimate Guide
jandafields replied to dlevens's topic in Client Written Tutorials
Instead of making 15 scripts, put all the scripts into one file. Just add the other folders to be scanned like I have shown an example below (look at the blue text, and substitute for your actual folder names. saham.sh #!/bin/sh echo "Learning HAM" for FILE in `find $HOME/mail/****** -name inbox -print` do echo "Processing $FILE" sa-learn --showdots --ham --mbox $FILE done for FILE in `find $HOME/mail/****** -name folder1 -print` do echo "Processing $FILE" sa-learn --showdots --ham --mbox $FILE done for FILE in `find $HOME/mail/****** -name folder2 -print` do echo "Processing $FILE" sa-learn --showdots --ham --mbox $FILE done for FILE in `find $HOME/mail/****** -name folder3 -print` do echo "Processing $FILE" sa-learn --showdots --ham --mbox $FILE done for FILE in `find $HOME/mail/****** -name folder4 -print` do echo "Processing $FILE" sa-learn --showdots --ham --mbox $FILE done echo "Done" -
How To Install Squirrelmail - The Ultimate Guide
jandafields replied to dlevens's topic in Client Written Tutorials
Here is an example for running sh scripts from the browser. This will give your sh script's output back to the browser. ---------------PHP FILE BELOW------------------------- #!/usr/bin/php <html> <body> <? $input = '/home/cpanel_user_name/public_html/cgi-bin/saham.sh'; $output = shell_exec("$input" . " 2>&1"); echo (nl2br("$output")); ?> <br> <br> <? $input = '/home/cpanel_user_name/public_html/cgi-bin/saspam.sh'; $output = shell_exec("$input" . " 2>&1"); echo (nl2br("$output")); ?> <br> </body> </html> --------------END PHP FILE------------------------------- -
How To Install Squirrelmail - The Ultimate Guide
jandafields replied to dlevens's topic in Client Written Tutorials
[Edited: See my next post] -
Squirrelmail Settings - Do I Have These Right?
jandafields replied to dlevens's topic in CPanel and Site Maintenance
localhost is correct for imapServerAddress make sure you have: $imap_server_type = 'other'; make sure you have $domain set correctly. $domain = '****'; trash folder (and others) should be this: $trash_folder = 'INBOX.Trash'; $sent_folder = 'INBOX.Sent'; $draft_folder = 'INBOX.Drafts'; If you do not want the data and attachment folders inside the squirmail folder like below: $attachment_dir = "$data_dir"; You cannot use '/foldername/squirrelattachments/'. This would be if foldername is on the root dir of the server (which it is not - it is in your account dir) Use this instead: /home/cpanel_user_id/foldername/squirrelattachments substitute your cpanel user id, and no need for the trailing slash on the path. Also, make sure to give the squirrelattachments folder appropriate permissions. Do the same for $data_dir as well. It would be a lot easier to use the default of $attachment_dir = "$data_dir"; and $data_dir = SM_PATH . 'data/'; and use htaccess if you are worried about security. I think you are really making this a lot more difficult than it needs to be. The default values are almost all fine. Just edit $domain and make sure you have $imap_server_type = 'other'; -
How Do I Know If My Script Is Hogging Resources?
jandafields replied to thewordlist's topic in Scripting Talk
Could you log into cPanel and view the Server Stats while the php script is running? Or are those numbers not real-time? -
I sent two emails to a friend. One right after the other. They were almost duplicate emails, but I added some information in the second one I forgot in the first one (about 1 sentence). Anyway, my first email went to their Bulk folder, and my second email went to their Inbox folder. What can I do (other than having my friend to add me as a friend in Yahoo) to avoid this?
-
It depends what country the "anonymizer" server is located in. But yes, that would allow the users to bypass your ip-deny. There's not much you can do about that, unless you block the anonymizer server somehow.
-
Peoplepc Blocks Port 25 And Port 26
jandafields replied to jandafields's topic in CPanel and Site Maintenance
That is assuming that your ISP has decent SMTP... -
Most of the time when I send an email from Outlook, it says the connection with the server was interrupted. That is with my ISP smtp. If I wait awhile, and try again, it will usually work. With TCH smtp, it is rejected by my ISP on port 25 and port 26. Many times, I have to use TCH webmail to send an email. Other than a different ISP, what can I do???
-
Squirrelmail Settings - Do I Have These Right?
jandafields replied to dlevens's topic in CPanel and Site Maintenance
Here is how my config is different than yours $smtp_auth_mech = none; $pop_before_smtp = false; -
There is some sort of bug with the Invision Power Board. It is really frusterating. Hopefully it will be fixed in a (near) future build...
-
Script Or Plugin To Read Quota For Cpanel Email
jandafields replied to dlevens's topic in CPanel and Site Maintenance
Well, you could write a php script to read the size of the mail user's directory: /home/domain/mail/domain.com/user You would not be able to get the quota limit from cpanel, so you would have to put that value in another file or database. Now, you have the total space used and the total space available. This would be fairly straightforward to write and would look something like this to the user: You have used 7.5MB out of 100MB storage space. To implement a graphical bar may be more challenging, but there are lots of tutorials on the net for such things... -
Multiple Domain Names Linked For Email...
jandafields replied to jandafields's topic in Open Discussion
So, what if I have 25 users? 25x3 domains = 75... That would be a lot of setting up. I have read about people changing their mail settings using an MX-Record. Is that something I could use to do this? If so, how? -
Script Or Plugin To Read Quota For Cpanel Email
jandafields replied to dlevens's topic in CPanel and Site Maintenance
Not sure if this helps, but... http://www.squirrelmail.org/plugin_view.php?id=59 The following must be true for TCH. I don't know if it is or not... If you have an IMAP server with QUOTA Extension capability, you can use this plugin to view the current quota usage, which is displayed just above the folders list. If no quota is set, nothing is displayed. -
The domain I have hosted with TCH on a reseller is domain.com. I also have domain.org, domain.net, and domain.us. Pointing those domains to domain.com for a website will not be difficult. Here is the part I think may be tricky: How do I get mail sent to: user@domain.com user@domain.net user@domain.org user@domain.us to all go to user@domain.com without setting up seperate accounts in WHM?
-
It is amazing how email has universally been 5MB or 10MB for so long and all at once we have 250MB 1000MB 2000MB...
-
I found out that this is a known bug. http://bugzilla.cpanel.net/show_bug.cgi?id=785 It is only a problem if spamassassin is enabled.
-
I see the benefit of using a system like that, but I can also see alot of people not going through with the hassle of the verification process. Thus, a business using this system could lose potential customers. You should make it as easy as possible for potential clients to contact you instead of assuming that they might be spammers (as they see in the automated returned email)...
-
Consider this actual situation: User1 of my domain sends an email to Bob who is hosted elsewhere... User1 for some reason attaches a blank file with extension .url, but not virus related. I think he was trying to send an Internet link. But anyway... Bob's host rejects emails with .url attachments because of virus concerns, so the email is returned to TCH. Where does the returned email go? I would think it should go back to user1 so he would know his email did not go through. But instead it goes to the master domain email (the email account with the cpanel username). So, user1 thinks the email went through. Bob never got the email. A potential disaster is upon us... But, I know the email did not go through. What am I supposed to do? Forward the email to user1? He may be uncomfortable knowing that I read his outgoing message (not intentionally - it was returned to the master domain account). And, I don't want to have to be responsible for sending returned mail to the appropriate user. Why doesn't it go directly to the user that sent it? Some returned mail DOES go to the returned user, other returned mail goes to the domain email account. What is the actual use of the domain email account? What type of returned email goes to it? What type of returned email goes back to the user? What am I supposed to do?
-
Installing Squirrelmail Plugins & Skins
jandafields replied to charlesincharge's topic in CPanel and Site Maintenance
I use my own installation of SquirrelMail, so I can customize it any way I want. It is very easy to do. This also lets you get around the very annoying "Unsafe Images" problem. -
How To Bounce Invalid E-mail Addresses?
jandafields replied to voilsb's topic in CPanel and Site Maintenance
If that's the case, then :fail: should use zero counted-bandwidth... is that right? -
I'm using phpnuke 7.3. Can you tell me how my site might be vunerable?
-
I use a program called htmldoc on my website. It works fairly well.
-
There are many cms that can do this. Google for PHPNuke.
-
I found these rules on the Internet: Numbers: Spell out numbers at the beginning of a sentence. Spell out numbers one through nine (10 and up are always used as numerals) unless they are used as units of measures (e.g., eight children, three dogs, 8 g, 3 ft., 0600 hours; not 8 children, 3 dogs, eight grams, three feet, or six o’clock am.) Zeros: All numbers < 1 must be preceded by a zero (e.g. P < 0.05); 0.1 gram was added. Commas: When a number is > 1,000 use a comma to separate hundreds from thousands. Repeating symbols: It is not necessary to repeat symbols or units of measure in a series (e.g. 30, 40, 50m or 30, 40, 50%; not 30m, 40m, 50m or 30%, 40%, 50%). Reference: http://www.uckac.edu/ppq/PDF/author_instructions.pdf
