PDA

View Full Version : Issues with Yabb


mightyflight
09-30-2004, 06:17 AM
For the life of me I cannot get my Yabb forum to email. Using 'localhost' does not work and of course my smtp address does not. Just wondering if anyone here is using Yabb and have gotten the email in it to work?

mightyflight
01-01-2005, 06:39 AM
Well I've gotten several emails about how I fixed this issue with Yabb so I figured that I'd post it here.

Yea it took a while for me to get it right but I got it working.
First you need to get the "SMTP Authorization V2 Mod" from boardmod.org if
you don't already have it. You can download it from the first post in
this thread. It's size is like 4.18Kb. Really small.

http://www.boardmod.org/yabb/YaBB.pl?board=newssp13;action=display;num=10522341 49;start=0

If you want to read my thread on why you need this mod, it's a few pages
later in the thread at (a.k.a oggols04)

http://www.boardmod.org/yabb/YaBB.pl?board=newssp13;action=display;num=10522341 49;start=90#92

Anyway after you install this mod you are going to have to open up
"subs.pl" in the "Sources Folder" in Yabb and manually change one small
part(only the line with the stars on it).

Look for this:
if ($mailtype==1) {
my($proto) = (getprotobyname('tcp'))[2];
****************my($port) = (getservbyname('smtp', 'tcp'))[2];************
my($smtpaddr) = ($smtp_server =~
/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/) ? pack('C4',$1,$2,$3,$4)
: (gethostbyname($smtp_server))[4];
$maillog="";

if (!defined($smtpaddr)) { &fatal_error("$smtp_txt{'1'}"); }
if (!socket(MAIL, AF_INET, SOCK_STREAM, $proto)) {
&fatal_error("$smtp_txt{'2'}"); }
if (!connect(MAIL, pack('Sna4x8', AF_INET, $port, $smtpaddr))) {
&fatal_error("$smtp_txt{'3'}"); }


And Change to this:
if ($mailtype==1) {
my($proto) = (getprotobyname('tcp'))[2];
****************my($port) = 25;************************
my($smtpaddr) = ($smtp_server =~
/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/) ? pack('C4',$1,$2,$3,$4)
: (gethostbyname($smtp_server))[4];
$maillog="";

if (!defined($smtpaddr)) { &fatal_error("$smtp_txt{'1'}"); }
if (!socket(MAIL, AF_INET, SOCK_STREAM, $proto)) {
&fatal_error("$smtp_txt{'2'}"); }
if (!connect(MAIL, pack('Sna4x8', AF_INET, $port, $smtpaddr))) {
&fatal_error("$smtp_txt{'3'}"); }



Only the line with all those little stars needs to be changed. The
"my($port) =" part and of course don't put those stars in you subs.pl file
as they are just to show what needs changed. Sorry for listing so much of
the code but I wanted you to know exactly where to find what you're
looking for. Well that's all their is to it. If you have any questions
or have never added Yabb mods before, feel free to email me.

Oh and in your Admin forums preferences page
SMTP-Server = localhost
!!!no need to worry about any of the authorization stuff!!!(relay,name,pass)
Your SMTP mail domainname = localhost
Send Mails using = SMTP


That should get it working for you. Go to your email members page and
send only yourself an email to see if it's working.

-michael


-The world is full of willing people, some willing to work, the other willing to let them