Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2013, 08:41 PM
deltahawk5 deltahawk5 is offline
 
Join Date: Sep 2012
Location: Florida, USA
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can't get dedicated mail server to work with vB

Hi,

I've setup my dedicated ubuntu server with Postfix, I've gotten it to the point where SMTP-AUTH, SASL and TLS are working and I can send emails externally (Gmail, etc, etc) via SSH.

However, I cannot get my vBulletin forum to work together with it.

No matter what I've tried, I always end up with this error.

Code:
Warning: fsockopen() [function.fsockopen]: unable to connect to tcp://199.188.72.9:25 (Connection refused) in [path]/includes/class_mail.php on line 747

Warning: Unable to connect to SMTP server in [path]/includes/class_mail.php on line 713
I'm hoping maybe someone here has tried doing something similar and knows a way to get this working.

Before anyone ask, I know 100% that my email settings in vBulletin are correct.
and please, if they only thing you have to say is "hur dur, this isn't a vBulletin issue", please don't say anything at all.

I've been trying to get this to work for almost three days now, no luck.
Reply With Quote
  #2  
Old 03-08-2013, 08:54 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This probably won't help a lot, but I think that error means that the server isn't listening on that port, or else possibly a firewall is blocking it. Are you sure you've got it listening on port 25?
Reply With Quote
  #3  
Old 03-08-2013, 09:16 PM
deltahawk5 deltahawk5 is offline
 
Join Date: Sep 2012
Location: Florida, USA
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
This probably won't help a lot, but I think that error means that the server isn't listening on that port, or else possibly a firewall is blocking it. Are you sure you've got it listening on port 25?
Apparently Ubuntu is listening on port 25, but Postfix isn't. :\

Code:
root@dc02r01ds24:~# netstat -anltp | grep "LISTEN"
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      439/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      659/sendmail: MTA:
tcp        0      0 127.0.0.1:587           0.0.0.0:*               LISTEN      659/sendmail: MTA:
tcp6       0      0 :::22                   :::*                    LISTEN      439/sshd
tcp6       0      0 :::80                   :::*                    LISTEN      692/apache2
Reply With Quote
  #4  
Old 03-08-2013, 09:33 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From SSH enter this...

telnet localhost 25

After you have a connection, enter this...

ehlo localhost

To exit the connect type quit.

What is the full output you get from those commands?

EDIT: Also, I see from your output that sendmail is running. Sendmail should have been uninstalled or prevented from starting before installing Postfix.
Reply With Quote
  #5  
Old 03-08-2013, 09:40 PM
deltahawk5 deltahawk5 is offline
 
Join Date: Sep 2012
Location: Florida, USA
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nhawk View Post
From SSH enter this...

telnet localhost 25

After you have a connection, enter this...

ehlo localhost

To exit the connect type quit.

What is the full output you get from those commands?

EDIT: Also, I see from your output that sendmail is running. Sendmail should have been uninstalled before installing Postfix.
I just tried re-installing postfix.

250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
Reply With Quote
  #6  
Old 03-08-2013, 09:44 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From the looks of it, postfix isn't properly installed.

You should have the server name in there, amongst other things, 250-STARTTLS and 250-AUTH being the other most important ones.

Stop sendmail and prevent it from starting, then re-install postfix. This guide might help...

https://help.ubuntu.com/community/Postfix
Reply With Quote
  #7  
Old 03-08-2013, 10:20 PM
deltahawk5 deltahawk5 is offline
 
Join Date: Sep 2012
Location: Florida, USA
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nhawk View Post
From the looks of it, postfix isn't properly installed.

You should have the server name in there, amongst other things, 250-STARTTLS and 250-AUTH being the other most important ones.

Stop sendmail and prevent it from starting, then re-install postfix. This guide might help...

https://help.ubuntu.com/community/Postfix
[snip]

AUTH, TLS and SASL is all fixed,

Code:
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Code:
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      610/sshd
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      5781/master
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      5781/master
tcp6       0      0 :::80                   :::*                    LISTEN      869/apache2
tcp6       0      0 :::22                   :::*                    LISTEN      610/sshd
tcp6       0      0 :::25                   :::*                    LISTEN      5781/master
tcp6       0      0 :::587                  :::*                    LISTEN      5781/master
But I'm still getting the error with vBulletin.

Code:
Warning: fsockopen() [function.fsockopen]: unable to connect to tcp://xxx.xxx.xxx.xxx:25 (Connection refused) in [path]/includes/class_mail.php on line 747

Warning: Unable to connect to SMTP server in [path]/includes/class_mail.php on line 713
--------------- Added [DATE]1362803093[/DATE] at [TIME]1362803093[/TIME] ---------------

running more test

Code:
OK	SMTP TLS	OK - Supports TLS.	
OK	SMTP Connection Time	1.903 seconds - Good on Connection time	
OK	SMTP Open Relay	OK - Not an open relay.	
OK	SMTP Transaction Time	2.278 seconds - Good on Transaction Time
--------------- Added [DATE]1362806221[/DATE] at [TIME]1362806221[/TIME] ---------------

interestingly enough, it's rejecting the MX tools I'm using and showing the log of rejecting, but shows no log of rejecting vBulletin at all.

Code:
NOQUEUE: reject: RCPT from mxtb-pws3.mxtoolbox.com[64.20.227.133]: 554 5.7.1 <test@example.com>: Relay access denied; from=<supertool@mxtoolbox.com> to=<test@example.com> proto=ESMTP helo=<please-read-policy.mxtoolbox.com>

disconnect from mxtb-pws3.mxtoolbox.com[64.20.227.133]
--------------- Added [DATE]1362807320[/DATE] at [TIME]1362807320[/TIME] ---------------

SMTP Reverse Banner Check failing wouldn't have anything to do with not being able to send messages? Right?

--------------- Added [DATE]1362808451[/DATE] at [TIME]1362808451[/TIME] ---------------

Changing the smtp listening port to 587 did absolutely nothing...
Reply With Quote
  #8  
Old 03-09-2013, 11:36 AM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you set your username and password in the mail server itself?

If you have this type of error in the server mail log...
Quote:
Mar 3 17:52:41 servername postfix/smtpd[914]: warning: unknown[xx.xx.xxx.xxx]: SASL LOGIN authentication failed: authentication failure
You don't.

Also, check that your mail port on the mail server is set to accept connections from the vB server's IP address. It looks like the connection is being refused at the firewall level.

And the one you didn't want to hear, is the mail server info set properly in ACP->Settings->Options->Email Options (at the bottom of the page). HINT: the mail server address for Postfix is almost always mail.domain.name.
Reply With Quote
  #9  
Old 03-09-2013, 04:12 PM
deltahawk5 deltahawk5 is offline
 
Join Date: Sep 2012
Location: Florida, USA
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nhawk View Post
Have you set your username and password in the mail server itself?

If you have this type of error in the server mail log...


You don't.

Also, check that your mail port on the mail server is set to accept connections from the vB server's IP address. It looks like the connection is being refused at the firewall level.

And the one you didn't want to hear, is the mail server info set properly in ACP->Settings->Options->Email Options (at the bottom of the page). HINT: the mail server address for Postfix is almost always mail.domain.name.
Yeah.

I've added the forum's IP address to the list of mynetworks under Postfix, the log still shows NO trace at ALL of the forums connecting to it.

As for the name, I just have the IP, which is what the AdminCP apparently recommends for SMTP servers. All the tools I've been using are having no trouble reaching the mail server.

Code:
NOQUEUE: reject: RCPT from mxtb-pws3.mxtoolbox.com[64.20.227.133]: 554 5.7.1 <test@example.com>: Relay access denied; from=<supertool@mxtoolbox.com> to=<test@example.com> proto=ESMTP helo=<please-read-policy.mxtoolbox.com>
Which makes me wonder where the connection is getting cut...because even though the testing tools are NOT listed in the settings as allowed, they can still connect (and get denied) but vBulletin isn't connecting AT ALL!

GoDaddy...
Reply With Quote
  #10  
Old 03-09-2013, 05:15 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wait a second..

that last word 'GoDaddy' explains it all.

GoDaddy blocks outgoing mail ports.

There's a ton of info about workarounds on the internet. Google 'godaddy block port 25'
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 03:55 PM.


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.05469 seconds
  • Memory Usage 2,269KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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