LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-05-2003, 10:55 PM   #1
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
sendmail and ports question


to recieve mail, do i have to have the imap ports (imap and imaps) open to the public? i cant figure out for the life of me why i cant recieve email. i have port 25 open on the server and i have port 25 forwarding to the email server, i can send mail and i can see in the router log file that there are hits comming in for port 25. when i telnet to port 25 from the server, i can get it but i cant telnet to it from the outside ( i sshed into a remote machine then used telnet from that machine). i even did this with no firewall..lemme turn taht back on...do you need udp and tcp for smtp? And finally, what log do i check to see if a request for port 25 actually hit the server....i see them hitting the router, but dunno how to check to see if they get to the email server.

thanks
 
Old 06-06-2003, 06:29 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
To receive mail you only need tcp port 25 open.
Depending on the server, it may need udp port 53 open to make dns queries against people sending mail to you.

If you can tenet to port 25 ok internally, but not externally, you will need to trace the packets in & back out.
Usually an iptables/ipchains -j LOG rule in the INPUT & OUTPUT chains will tell you what's happening, eg
iptables -I INPUT -p tcp --dport 25 -j LOG --log-level 6 --log-prefix "smtp_in "
iptables -I OUTPUT -p tcp --sport 25 -j LOG --log-level 6 --log-prefix "smtp_out "
tail -f /var/log/messages
to view the entries

Make sure your smtp server has it's gateway set correctly to the router address.

What smtp server are you using?
Log files may be in /var/log/maillog

Last edited by peter_robb; 06-06-2003 at 06:30 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
newb. question about ports. monkeyking *BSD 7 04-24-2005 02:24 PM
iptables question about ports XPediTioN Slackware 13 08-10-2004 06:09 PM
sendmail and forwarded ports question red.lego.man Linux - Security 1 08-02-2004 02:25 PM
open ports question glock19 Linux - Networking 3 04-26-2002 05:03 AM
a question of ports? Ricardo77uk Linux - Networking 2 08-01-2001 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration