Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th February 2009, 23:45
laidbackwebsage laidbackwebsage is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Postfix and SMTP port 25

I followed the "Perfect Hardy Heron Ubuntu Server" step by step, but I am still unable to access my remote SMTP server from my desktop (i.e., I cannot send a test email using Thunderbird.)

The server resides on a VPS host, and I can send mail from the command line. However, I cannot connect to the SMTP server via Thunderbird, not can I telnet to port 25.

How do I:
  1. Test if port 25 is open?
  2. Open it safely if it isn't?
  3. Change the port if my local ISP is blocking it?

Thanks!

Kevin J
Reply With Quote
Sponsored Links
  #2  
Old 19th February 2009, 08:34
joel_griego joel_griego is offline
Member
 
Join Date: Nov 2008
Posts: 65
Thanks: 1
Thanked 1 Time in 1 Post
Default

If your server has local ip address for example 192.168.1.1 you can command to another local computer:
telnet 192.168.1.1 25

it should show the smtp greeting.

If your ISP is blocking port 25, maybe you can consider using submission port.


cheer,
Joel
Reply With Quote
  #3  
Old 19th February 2009, 21:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

What's the output of
Code:
netstat -tap
? any errors in your mail log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 19th February 2009, 22:35
laidbackwebsage laidbackwebsage is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Netstat and logs

Here's the output of sudo netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:mysql *:* LISTEN 7856/mysqld
tcp 0 0 *:www *:* LISTEN 9585/apache2
tcp 0 0 <FQDN> *:* LISTEN 7318/named
tcp 0 0 localhost:domain *:* LISTEN 7318/named
tcp 0 0 *:smtp *:* LISTEN 11732/master
tcp 0 0 localhost:953 *:* LISTEN 7318/named
tcp 0 0 *:https *:* LISTEN 9585/apache2
tcp6 0 0 [::]:imaps [::]:* LISTEN 9181/couriertcpd
tcp6 0 0 [::]op3s [::]:* LISTEN 9088/couriertcpd
tcp6 0 0 [::]op3 [::]:* LISTEN 9023/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 9124/couriertcpd
tcp6 0 0 [::]:ftp [::]:* LISTEN 11019/proftpd: (acc
tcp6 0 0 [::]:domain [::]:* LISTEN 7318/named
tcp6 0 0 [::]:ssh [::]:* LISTEN 3487/sshd
tcp6 0 0 [::]:smtp [::]:* LISTEN 11732/master
tcp6 0 0 ::1%##########:953 [::]:* LISTEN 7318/named
tcp6 0 1200 <FQDN>:ssh ip###############:54923 ESTABLISHED 21688/sshd: ## [

"mail.err" is empty, and "mail.log" loks fine. Saw something in "mail.info", though; what does this mean?

Feb 18 20:26:30 mail imapd: chdir Maildir: No such file or directory

BTW, many thanks, All, for your assistance!

Kevin J
Reply With Quote
  #5  
Old 20th February 2009, 18:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Looks good.

Is there a firewall that is blocking port 25?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 21st February 2009, 01:44
laidbackwebsage laidbackwebsage is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Firewall?

How do I tell? :-P

(Thanks.)

Kevin J
Reply With Quote
  #7  
Old 21st February 2009, 19:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

What's the output of
Code:
iptables -L
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 23rd February 2009, 04:38
laidbackwebsage laidbackwebsage is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default IP Tables output

Here it is; I haven't set up any rules, yet, evidently:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Reply With Quote
  #9  
Old 23rd February 2009, 20:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Is the server located in a data center, or is it hosted on a DSL line or something similar? In the latter case, make sure that your ISP doesn't block port 25.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 23rd February 2009, 20:41
laidbackwebsage laidbackwebsage is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Problem with Postfix and SMTP port 25

It's a virtual server that I have complete control over, other than assigning the IP address.

I access the Internet via a high-speed connection through my cable company. At this point, I'm guessing they don't allow access to port 25 on any domain except their own.

How do I tweak my postfix settings to allow access on a differetn port, and what ports would be suggested?

Falko, thanks for your help; it is greatly appreciated.

Kevin J
Reply With Quote
Reply

Bookmarks

Tags
port issue, postfix, postfix issue, smtp

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 18:51
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 10:40
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47


All times are GMT +2. The time now is 18:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.