LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-11-2008, 11:16 PM   #1
shagcarpet
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Rep: Reputation: 0
Ubuntu/postfix


i have been put in charge of installing a new SMTP server. so, i have decided to broaden myself and get into linux... here is what i have and here is the problem. i have ubuntu server installed (honestly i'm not too sure which flavor...i want to say gutsy gibbon). also, ubuntu has been installed as a virtual machine using VMWARE 1.5. to help a hack like me, i installed webmin because i am not too comfortable at the command line. next i installed and started postfix. went great. just for the fun of it, i sent some mail from the webmin/postfix console using one of the built-in user mailboxes...mail delivered perfectly. here is my problem. when i try to send mail from a simple mail client, the client connects to the server, but times out trying to send. i have tried to disable all autentication...this server is on my LAN behind firewalls, so i have no need for authentication to send mail. also, i have checked the boxes to accept all smtp mail clients and disabled all encryption. any ideas? thanks - shagcarpet
 
Old 07-12-2008, 12:24 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
From the client machine, can you telnet to port 25 on the server? Do you have a firewall blocking port 25? What is the output of "postconf -n"?
 
Old 07-12-2008, 07:51 AM   #3
shagcarpet
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for the reply. i can see that what you say is probably the issue. when i telnet to the linux box, "telnet 10.19.6.47 25", it appears to connect, but comes back with a black screen with the cursosr flashing... when i type, the cursor moves but no characters are displayed. when i hit enter the cursor jumps to the next line. have i hosed the config? here is the optput of "postconf -n", run from the command shell in webmin.

> postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = eca-ubuntu.******.net, localhost.******.net, , localhost
myhostname = eca-ubuntu.*******.net
mynetworks = 10.19.6.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_delay_reject = no
smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces permit_sasl_authenticated permit_mx_backup
smtpd_sasl_security_options =
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache

Last edited by shagcarpet; 07-13-2008 at 11:46 AM. Reason: left off important information
 
Old 07-13-2008, 01:24 PM   #4
shagcarpet
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Any takers on this one? I have worn Google out looking for an answer... Thanks...
 
Old 07-13-2008, 02:11 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Let's confirm two things:

a) you can/cannot connect from localhost
b) you can/cannot connect from another host

For (a), on the postfix host itself, type:

telnet localhost 25

and report the output here.

For (b), on a different host (even a windows host would be fine), perform

telnet ip.addr.of.postfix-server 25

and report the output here.
 
Old 07-13-2008, 08:02 PM   #6
shagcarpet
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the reply...
both (a) and (b) have the same results.
i assume i connect each way, i see just a black screen with the cursor flashing...if I type anything, the cursor moves but nothing is displayed. when i hit enter it jumps to the next line.
also...when i try to send mail thru it (using windows mail), the client says connected for about a minute, then comes back with a timeout error.

Last edited by shagcarpet; 07-13-2008 at 08:03 PM.
 
Old 07-13-2008, 08:17 PM   #7
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Sounds like iptables is blocking the connection. Run and show output from:

iptables -L
netstat -an --tcp | grep 25
 
Old 07-13-2008, 08:40 PM   #8
shagcarpet
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
thanks again for the quick reply...

> iptables -L
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


> netstat -an --tcp | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 1 0 10.19.6.47:25 10.19.6.28:2773 CLOSE_WAIT
tcp6 0 0 :::25 :::* LISTEN
 
Old 07-13-2008, 11:36 PM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Something is not right. You should at least be getting something like:

$ telnet localhost 25
Connecting to localhost...


from the test where you tried connecting from the postfix server machine itself. Are you running the localhost test on the native host or the guest OS?
 
Old 07-14-2008, 06:23 AM   #10
shagcarpet
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
yeah...something definitely doesn't seem right. i have limited experience with linux, but many years of windows/server experience...i've never seen a telnet session do stuff like this.

i ran the localhost test on the guest OS (which is Ubuntu)...native host is Windows 2003. test from another host was run from another windows 2003 server on same LAN segment. again, both have the same results. is a reload in order?
 
Old 07-14-2008, 07:48 AM   #11
shagcarpet
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
ok...i lied...
from the local host, i do get-
trying 127.0.0.1...
connected to localhost....
escape character is '^]'.

but i never get the 220 message.
it really won't take any commands at this point except ctrl-alt-del to reboot...
 
Old 07-14-2008, 08:05 PM   #12
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
If there is no listening service, you will get an immediate Connection refused message. Example:
Code:
$ telnet localhost 99
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
If a service is listening and accepts the connection, you will get a Connected to host message:

Code:
$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
You are getting the connection message, so the connection has been accepted by the listening service.

What shows up in your maillog when you run the telnet test ?

Let the connection sit for about 1 minute - see what happens both on screen and in the log.

You don't need to reboot to exit telnet. The message "Escape character is '^]' means you can hit Control-Escape to force telnet to give you back command control. Then you can just type quit.
 
  


Reply

Tags
postfix, ubuntu, webmin


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix on Ubuntu 8.04 Drifter Linux - Software 3 05-30-2008 11:17 AM
kubuntu and ubuntu - stuck on postfix configuration llm385 Linux - Newbie 5 02-25-2008 04:23 PM
Ubuntu 6.06 LTS + Postfix :( wh33t Linux - Server 4 11-07-2007 04:31 PM
Postfix on Ubuntu 7.04 ankhmor Linux - Server 2 07-17-2007 05:47 PM
My Mail Server - Ubuntu + Postfix and more.. TechMansoor Linux - Software 1 12-19-2006 05:45 PM


All times are GMT -5. The time now is 12:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration