Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: problems setting up a mail server

  1. #1

    problems setting up a mail server

    Im still playing around with my fedora core 4 server (trying to learn again). I am trying to setup a mail server and it is just pissin me off. I can receive mail all day noprobs, but I cant get it to send mail for anything. I have configured it (mostly by) http://fedoranews.org/mediawiki/inde...rus_protection, I say mostly, because I wanted to make sure it sends before I continue configuring it. I also changed the default mta from sendmail to postfix using alternatives --config mta command. Is there something basic Im missing?

  2. #2

    Re:problems setting up a mail server

    Do the postfix logs show any errors?

  3. #3

    Re:problems setting up a mail server

    I just thought of posting the logs here. :

    Code:
    Jan 27 06:50:30 mountainman postfix/smtp[29096]: connect to mx2.mail.yahoo.com[4.79.181.134]: Connection timed out (port 25)
    Jan 27 06:50:51 mountainman imap-login: Login: mark [::ffff:127.0.0.1]
    Jan 27 06:51:00 mountainman postfix/smtp[29096]: connect to mx2.mail.yahoo.com[4.79.181.13]: Connection timed out (port 25)
    Jan 27 06:51:05 mountainman imap-login: Login: mark [::ffff:127.0.0.1]
    Jan 27 06:51:30 mountainman postfix/smtp[29096]: connect to mx4.mail.yahoo.com[216.155.197.59]: Connection timed out (port 25)
    Jan 27 06:51:31 mountainman imap-login: Login: mark [::ffff:127.0.0.1]
    Jan 27 06:52:00 mountainman postfix/smtp[29096]: connect to mx4.mail.yahoo.com[66.218.86.156]: Connection timed out (port 25)
    Jan 27 06:52:30 mountainman postfix/smtp[29096]: connect to mx4.mail.yahoo.com[216.155.197.60]: Connection timed out (port 25)
    Jan 27 06:52:32 mountainman postfix/smtp[29096]: 84D6016053F: to=<birchfield4@yahoo.com>, relay=none, delay=1969, status=deferred (connect to mx4.mail.yahoo.com[216.155.197.60]: Connection timed out)
    So, Im trying to get out to the recipient, but the connection is dying due to time out. As a matter of record, I have a router acting as a gateway for my network. What kind of port permissions should I allow? I have port 25 forwarded to my mailserver's ip. Anything else I should allow?

  4. #4

    Re:problems setting up a mail server

    Just to test, can you bypass the router, connecting directly to the internet just to test?

  5. #5

    Re:problems setting up a mail server

    not easily. My mailserver and my connection are about 40 feet apart.

  6. #6

    Re:problems setting up a mail server

    Can you nmap your public ip, to see if port 25 is really open?

  7. #7
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:problems setting up a mail server

    Or if you're really lazy, go to http://grc.com from a machine behind your router and run shields up on common ports.

  8. #8

    Re:problems setting up a mail server

    here is a portscan of the priveledged ports:
    Code:
    tcp  22  pcAnywhere Status. Default udp status port for v2.0 thru v7.51; plus CE. Versions v8+ on use tcp 5631 & udp 5632. 
    
    --------------------------------------------------------------------------------
    Trojans or Viruses known to use this port are: Adore sshd.   Shaft.    
    tcp  110  Post Office Protocol - Version 3. Most widely used client email protocol. Used by mail clients to collect mail off server. Security Concerns: Re-usable cleartext password. - No auditing of connections & attempts; thus subject to grinding. - Some POP3 server versions have had buffer overflow problems. CERT Advisories: CA-97.09. 
    
    --------------------------------------------------------------------------------
    Trojans or Viruses known to use this port are: ProMail trojan.    
    tcp  80  HTTP. Standard web service port. Exchange is cleartext; use https (443) for sensitive data transfers. 
    
    --------------------------------------------------------------------------------
    Trojans or Viruses known to use this port are: 711 trojan (Seven Eleven).   AckCmd.   Back End.   Back Orifice 2000 Plug-Ins.   Cafeini.   CGI Backdoor.   Executor.   God Message.   Hooker.   IISworm.   MTX.   NCX.   Noob.   Ramen.   Reverse WWW Tunnel Backdoor.   RingZero.   RTB 666.   Seeker.   WAN Remote.   Web Server CT.   WebDownloader.    
    tcp  21  This is the FTP service control port. Firewall rules focus on this port; then open port 20 only when required for a data transfer. Security Concerns with FTP: Cleartext; re-usable passwords. - Portal for user account grinding. - FTP Bounce; where attacker uses ftp's "port" command to redirect the FTP transfer to a port & IP other than default port 20 on the FTP server. Attacks can include "bouncing" internal network scans; email forging/flooding; etc. CERT Advisories: CA-97.16; CA-99.13. Disable this service on non-FTP servers. Open at perimeter only with static route to internal FTP server(s). 
    
    --------------------------------------------------------------------------------
    Trojans or Viruses known to use this port are: Back Construction.   BladeRunner.   Cattivik FTP Server.   CC Invader.   Dark FTP.   Doly Trojan.   Fore.   FreddyK.   Invisible FTP.   Juggernaut 42.   Larva.   MotIv FTP.   Net Administrator.   Ramen.   RTB 666.   Senna Spy FTP server.   The Flu.   Traitor 21.   WebEx.   WinCrash.    
    tcp  143  imap.'internet message access protocol; internet message access proto; interim mail access protocol v2'.
     
    tcp  25  Simple Mail Transfer. Used by mail servers to receive inbound email. Security Concerns: Email servers are complex engines; often run as root; and required open at most network perimeters. Thus are popular for attackers and new DOS or intrusion hacks always being found. Disable on non-mail server hosts. Open at perimeter only with static route to internal mail server. 
    
    --------------------------------------------------------------------------------
    Trojans or Viruses known to use this port are: Ajan.   Antigen.   Barok.   BSE.   Email Password Sender - EPS.   EPS II.   Gip.   Gris.   Happy99.   Hpteam mail.   Hybris.   I love you.   Kuang2.   Magic Horse.   MBT (Mail Bombing Trojan).   Moscow Email trojan.   Naebi.   NewApt worm.   ProMail trojan.   Shtirlitz.   Stealth.   Stukach.   Tapiras.   Terminator.   WinPC.   WinSpy.

  9. #9

    Re:problems setting up a mail server

    Ok, an update here. I telnetted into my server using the domain name and port 25:
    telnet www.domain info.com 25 (not my server's real name )
    here is its reply :
    Code:
    220 servers name here also ;)  ESMTP Postfix
    501 Syntax: EHLO hostname
    250-servers name here  ;)
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250 8BITMIME
    221 Bye
    Looks to me like everything should work. Is there some sort of certificate for mail servers I missing or some other form of authentication?

  10. #10

    Re:problems setting up a mail server

    Gave you tried emailing people on other domains than Yahoo?

Similar Threads

  1. Replies: 1
    Last Post: 01-21-2011, 12:06 AM
  2. Problems Setting up Mail Server
    By petcol in forum Linux - General Topics
    Replies: 2
    Last Post: 05-30-2005, 12:05 AM
  3. Problems sending mail to users on my mail server
    By Ed McCorduck in forum Linux - Software, Applications & Programming
    Replies: 8
    Last Post: 06-23-2004, 10:18 AM
  4. Setting a new mail server
    By Vaish in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 06-15-2004, 05:51 AM
  5. Problems setting up Web/Mail/DNS
    By Vagrant in forum Linux - General Topics
    Replies: 2
    Last Post: 03-09-2003, 11:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •