Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBMS : vBulletin Mail System Details »»
vBMS : vBulletin Mail System
Version: 3.0.0p, by Krofh Krofh is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.5 Rating:
Released: 02-28-2007 Last Update: 03-14-2007 Installs: 243
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

vBulletin Mail System

Finally, for vBulletin 3.6, there is a port from filburt1's original hack. For those of you who aren't aware, he essentially declared it open source, and it's been a bit of a wait for someone to fix it up... I've wanted it for my site, too, so I finally sat down and just did it.

What is this?
The vBulletin Mail System is a way to give your users webmail access from your site. They can have a name@yourwebsite.com address, send and receive emails and attachments, etc. Options such as mailbox quotas, limits on numbers/types of attachments, a message trailer ("Free mail at yourwebsite.com!") at the end of each message, etc. are all available as well.

Please note: this is a pre-final version. As far as I have seen, it is working so far for me, but I have not tested it completely and thoroughly and it's very likely there'll be a number of bugs popping up. However, I have successfully been able to install this on a clean board, exchange emails regularly (including attachments), go through all the basic options/etc. without any errors popping up, so it should be fine. Still, make sure you back up your database before installing this, just due to the nature of its "beta"-ness.

To install: upload all files from the "upload" directory to your server in the proper directories. Then, navigate to admincp/vbms_install.php on your server and run the installer. It will make several template additions. If your navbar or header templates hav been modified, it will not be able to do it automatically, and you'll have to add these edits yourself.

In template navbar, find:
Code:
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
Add after:
Code:
			<if condition="$show['popups']">
				<td class="vbmenu_control" id="navbar_vbms">
					<a href="vbms.php$session[sessionurl_q]">$vbphrase[email]</a>
			
					<if condition="$vbms_newmessages['newcount'] > 0">
						<span style="font-weight: normal; padding: 1px 1px 1px 2px; margin: 0px 3px 0px 2px; border: 1px inset" class="alt1">
							<phrase 1="$vbms_newmessages[newcount]">$vbphrase[x_new]</phrase>
						</span>
					</if>
				
					<script type="text/javascript">
						<!--
							vbmenu_register("navbar_vbms");
						// -->
					</script>
				</td>
			<else />
				<td class="vbmenu_control" id="navbar_vbms">
					<a href="vbms.php$session[sessionurl_q]">$vbphrase[email]</a>
				
					<if condition="$vbms_newmessages['newcount'] > 0">
						<span style="font-weight: normal; padding: 1px 1px 1px 2px; margin: 0px 3px 0px 2px; border: 1px inset" class="alt1">
							<phrase 1="$vbms_newmessages[newcount]">$vbphrase[x_new]</phrase>
						</span>
					</if>
				</td>
			</if>
Find:
Code:
<!-- / header quick search form -->
	</if>

	<if condition="$show['member']">
Add after:
Code:
		<div class="vbmenu_popup" id="navbar_vbms_menu" style="display: none">
			<table cellpadding="4" cellspacing="1" border="0">
				<tr><td class="thead">vBulletin Mail System</td></tr>
				<tr><td class="vbmenu_option"><a href="vbms.php?$session[sessionurl]">$vbphrase[navbar_inbox]</a></td></tr>
				<tr><td class="vbmenu_option"><a href="vbms_new.php?$session[sessionurl]">$vbphrase[navbar_write_message]</a></td></tr>
				<tr><td class="vbmenu_option"><a href="vbms_ab.php?$session[sessionurl]">$vbphrase[navbar_address_book]</a></td></tr>
				<tr><td class="vbmenu_option"><a href="vbms_folders.php?$session[sessionurl]">$vbphrase[navbar_folders]</a></td></tr>
				<tr><td class="vbmenu_option"><a href="vbms_filters.php?$session[sessionurl]">$vbphrase[navbar_filters]</a></td></tr>
				<tr><td class="vbmenu_option"><a href="vbms_options.php?$session[sessionurl]">$vbphrase[navbar_options]</a></td></tr>
				<tr><td class="vbmenu_option"><a href="faq.php?$session[sessionurl]faq=faq_vbms">$vbphrase[navbar_help]</a></td></tr>
			</table>
		</div>
In your ACP, there should be a new set of options in a "vBulletin Mail System" category. That set of options is your main set of management stuff, and is pretty straightforward.

Feel free to post with any bugs or questions you find, etc. I'm trying to get this working again thoroughly, for all of us.

FAQ
  • Is POP support available for my users?
    No, this is similar to a webmail system.
  • What is a catch-all email address, and how do I set it up?
    A catch-all address is an email address that any mail sent to your server that isn't picked up by another account will go to. For example, if someone sends an email to randomgibberish@yoursite.com and you do not have a "randomgibberish" account defined, it would forward to your catch-all account that you have set up, such as all@yoursite.com.
  • Can I run this if my server doesn't let me have a catch-all mail account?
    Yes, but it's not recommended. As has been suggested by a few members, you can set up one mail account to the be "catch-all" and have vBMS connect to that, then set up mail accounts for each member who wants one and have it forward to the catch-all. All this has to be set up manually with your web host, and takes a great deal of willpower and availability from the website administrator, and is thus not recommended.
  • I'm receiving the following error:
    Code:
    Fatal error: Call to undefined function: imap_open()...
    If you're getting an error similar to this, you do not have IMAP functionality available in PHP. Find your php.ini file on your server (usually /usr/local/lib/php.ini on Linux, C:\Windows\php.ini on Windows), and find the extensions section. Uncomment the line ";extension=php_imap.dll" (that is, remove the semicolon at the beginning) and restart your web server. If you don't have access to your web server to do this, contact your web host about installing IMAP support for PHP. If they won't do it, then this hack is not for you.
  • I can't connect to the mail server, with this error:
    Code:
    Warning: imap_open() [function.imap-open]: Couldn't open stream {localhost:110/pop3}INBOX in /includes/vbms_class_installer.php on line 791
    First, make sure that your port number and server information are right. Some mail servers are on non-default ports (this is common), and some you may have to connect to a different host besides localhost (this is very rare). Also, try using the "Force no-TLS connection" option in the vBMS Options in the ACP.
  • I can connect to the server just fine, but it won't get any email!
    Check the "Mail checking logs" in your ACP (under the vBulletin Mail System area). If there are no logs, then the cronjob probably isn't running. If there are logs, see if there are any errors in there. If it's checking the mail account fine and simply says there are no messages, check with a webmail to see if the catch-all account is even receiving mails. If the webmail shows that the account has mail stuck in it and vBMS isn't picking them up, but vBMS is saying it's checking the account alright and finding 0 messages, then you're likely connecting to the wrong account. By doing these steps, you should at least be able to figure out where the problem is occurring.

Install clicks, donations and HotM nominations are always welcome.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 04-18-2007, 09:04 PM
chopin2256 chopin2256 is offline
 
Join Date: Mar 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I keep getting this error:
Warning: imap_open() [function.imap-open]: Couldn't open stream {localhost:110/pop3}INBOX in /includes/vbms_class_installer.php on line 791
My host says this though:
"Imap listens on port 143, not port 110 as the error is showing. If you are sending via imap then it should be port 143. Port 110 is for popping your mail, it's what outlook uses"
I cannot figure out how to install this after many many many attempts, and I still have no idea if this is a software error bug, or a problem with the way my host set up IMAP. Although, IMAP should be working correctly, they installed it twice, and made sure it was working correctly.
Reply With Quote
  #203  
Old 04-18-2007, 09:42 PM
chopin2256 chopin2256 is offline
 
Join Date: Mar 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is additional verification that IMAP and all ports are working on my server:
Hi,

I've checked to see that port 110, 143, and 25 are all open and listening.

-bash-2.05b# hostname
vps.youngcomposers.com

-bash-2.05b# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.

-bash-2.05b# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.
See COPYING for distribution information.


-bash-2.05b# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220-vps.youngcomposers.com ESMTP Exim 4.63 #1 Wed, 18 Apr 2007 18:15:54 -0400 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.

Apparently the error is not on my end, and a potential bug in the software installation process.
Reply With Quote
  #204  
Old 04-22-2007, 06:26 PM
MikeHolohan's Avatar
MikeHolohan MikeHolohan is offline
 
Join Date: Mar 2007
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this on my test forum, now I can't login, it keeps sending me back to the login page.. Mike.
Reply With Quote
  #205  
Old 04-24-2007, 05:23 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Here is additional verification that IMAP and all ports are working on my server:
Hi,

I've checked to see that port 110, 143, and 25 are all open and listening.

-bash-2.05b# hostname
vps.youngcomposers.com

-bash-2.05b# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.

-bash-2.05b# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.
See COPYING for distribution information.


-bash-2.05b# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220-vps.youngcomposers.com ESMTP Exim 4.63 #1 Wed, 18 Apr 2007 18:15:54 -0400 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
Apparently the error is not on my end, and a potential bug in the software installation process

If I remember correctly, from when I first set up vBMS, there are two types of IMAP. One is the IMAP service, which as your host has shown is working on your box, the other is the PHP package. The error you're getting is to do with the PHP package. (Don't worry, it took me ages to find this information out!)

You need to ask your web host to update/install the PHP on your box with "php-imap"

If you box is redhat linux, as example, the host would use the following command from shell ..

Code:
up2date --imap
Which should get something like the following ..

Code:
Testing package set / solving RPM inter-dependencies... 
######################################## 
php-imap-4.3.2-37.ent.i386. ########################## Done.                    
php-4.3.2-37.ent.i386.rpm:  ########################## Done.                    
php-ldap-4.3.2-37.ent.i386. ########################## Done.                    
php-mysql-4.3.2-37.ent.i386 ########################## Done.                    
php-odbc-4.3.2-37.ent.i386. ########################## Done.                    
php-pgsql-4.3.2-37.ent.i386 ########################## Done.                    
Preparing              ########################################### [100%] 

Installing... 
  1:php                    ########################################### [100%] 
  2:php-imap               ########################################### [100%] 
  3:php-ldap               ########################################### [100%] 
  4:php-mysql              ########################################### [100%] 
  5:php-odbc               ########################################### [100%] 
  6:php-pgsql              ########################################### [100%] 
The following packages were added to your selection to satisfy dependencies: 

Name                                    Version        Release 
-------------------------------------------------------------- 
php                                     4.3.2          37.ent               
php-ldap                                4.3.2          37.ent               
php-mysql                               4.3.2          37.ent               
php-odbc                                4.3.2          37.ent               
php-pgsql                               4.3.2          37.ent
As you can see I'm running PHP 4.3.2

Once that's done, restart the server and vBMS "should" work
Reply With Quote
  #206  
Old 04-24-2007, 11:33 AM
Ultimative Ultimative is offline
 
Join Date: May 2006
Location: Scotland
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I try to install I'm getting this error:

The following setting groups are already defined: vbms

I previously installed it but it's no longer there and I wish to install from scratch. Anyway to correct this?
Reply With Quote
  #207  
Old 04-25-2007, 05:30 AM
Krofh's Avatar
Krofh Krofh is offline
 
Join Date: Aug 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scan-pa
Do you have an update on the changes for the next release of this product?
I'm just gonna be completely honest... I thought I'd have time to work on this, but it's not working out. I've got some exams in the middle of May, and after that I'm mostly done with school for the summer and should then be able to spend the time on this. I don't honestly expect to be able to get anything done before then though. Sorry for the long delays on this.

For those of you using IMAP rather than just accessing your mail server by POP3, you might try this option... I set this up for someone using IMAP and this was the only way I was able to get it to work on his site. In includes/vbms_functions_checkmail.php, find the vbms_checkmail_construct_connection_string(...) function and change this bit:

Code:
function vbms_checkmail_construct_connection_string($hostname = false, $port = false, $notls = NULL)
{
	global $vbulletin;
	
	$hostname = ($hostname === false ? $vbulletin->options['vbms_hostname'] : $hostname);
	$port = ($port === false ? $vbulletin->options['vbms_port'] : $port);
	$notls = ($notls === NULL ? $vbulletin->options['vbms_forcenotls'] : $notls);
	
	$notls = ($notls ? "/notls" : "");
	
	return "{" . $hostname . ":" . $port . "/imap" . $notls . "}INBOX";
}
That should do it. I'm gonna try and make IMAP access a chooseable option in the next update.

Quote:
Originally Posted by Ultimative
The following setting groups are already defined: vbms
Try deleting the "vbms" entry from the settinggroup table in your database then. You could also try properly running the uninstaller, as it's likely that the setting groups are not the only thing that was leftover from the first installation.

Quote:
Originally Posted by MikeHolohan
I installed this on my test forum, now I can't login, it keeps sending me back to the login page.. Mike.
Restore a database backup? I have no idea what'd be causing this... can you not log in to the ACP or the normal forum or both?
Reply With Quote
  #208  
Old 04-25-2007, 04:24 PM
MikeHolohan's Avatar
MikeHolohan MikeHolohan is offline
 
Join Date: Mar 2007
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Krofh View Post


Restore a database backup? I have no idea what'd be causing this... can you not log in to the ACP or the normal forum or both?
I couldn't login to anything, not the forum, not the AdminCp nothing, but it didn't matter it was just my test forum, I restored the database, thanks for the reply... Mike.
Reply With Quote
  #209  
Old 04-26-2007, 05:58 AM
MAXpowerPXL MAXpowerPXL is offline
 
Join Date: Apr 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After much reading through all the errors posted here to find answers to my questions, I have this up and running.

I had the connection error during the installation and I found my server would only allow me to connect via imap not pop3.

In my opinion, this is the best vBulletin mod/hack ever made.
I almost can't believe it's free!

Thank you so much Krofh for the effort that has gone into this.
Reply With Quote
  #210  
Old 04-27-2007, 01:31 AM
nonamer69 nonamer69 is offline
 
Join Date: Nov 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"EMAIL ATTACHMENTS = NO WORKY"

I've looked all over this thread to find a reason why I cannot seem to receive any attachments in my email messages. I tried the solution succo stated but still the same result. Has this problem not been resolved or is there a solution to that I missed somewhere in this thread?

btw, thanks for this great addon I just wish I could use it to its full capacity.
Reply With Quote
  #211  
Old 04-27-2007, 04:12 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Changed it to output $reason instead of the error image and to hopefully locate my issue.

When running the cron, there are emails in the vbms account. VBMS checks the right account and counts the messages correctly.

PHP error: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object (/home/crackede/public_html/includes/vbms_functions_checkmail.php:421)

No mail is saved to user accounts.
The mail VBMS found is deleted.
No logs are saved.

I am using PHP 5.1.6
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05377 seconds
  • Memory Usage 2,344KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete