Help me receive mail, Please?

Discussion in 'Installation/Configuration' started by fixallthisjunkguy, Jan 4, 2007.

  1. fixallthisjunkguy

    fixallthisjunkguy New Member

    Okay, so I followed the Perfect Server setup, with Ubuntu 6.10. Installed ISPConfig, setup the users, have roundcube installed, can send mail within my domain, can send mail outside of my domain, but I can't receive any email from the outside world, nor can I access my roundcube from the outside world. No, my isp is not blocking it, and yes, my router is setup right. (I'm migrating from existing computer based on windows). My Linux knowledge is not too great, so, I am guessing I setup something wrong. /var/log/mail.log doesn't show any incoming connections from outside world. (don't know if that log shows incoming from the outside or not).

    Any help would be hugely appreciated. If any more info is needed please reply. Thank You!
     
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Looks like a DNS issue. Does your MX record point to your newly setup server? If it still points to the old server's IP address you'll never get emails, because the whole world tries to contact the old server.
     
  3. fixallthisjunkguy

    fixallthisjunkguy New Member

    It only points to our WAN address, the router redirects down to an internal IP address, and the internal ip address, I gave the Ubuntu box the ip address our old windows server had.
     
  4. fixallthisjunkguy

    fixallthisjunkguy New Member

    Well, I did some more changing, I changed our router to redirect all traffic from our old windows server over to the new Ubuntu server, and, well, after reboots on everything, the windows server is still getting all the emails... Is it my router? Does it have issues? I have no traffic going to our old windows server, yet it still is receiving emails, I'm guessing it must be a router problem.
     
  5. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    It's the router that forwards the mail traffic to the old windows server, so your problems seems to be there.

    But you made the new server to have the old IP address of the Windows server, you said? Do you have identical IP's on your Linux and Windows server? Your router then probably has the windows IP address in it's cache. Shutdown the windows server a see it you recieve mail at your linux box.
     
  6. fixallthisjunkguy

    fixallthisjunkguy New Member

    ok, more info now. I did everything that I needed to to switch them on the router, then nothing was coming into my windows server. Okay, no email incoming there. I go and check to see if anything is incoming on the new linux server. Nothing. How do I check to see what is trying to be sent into this server from the outside world?
     
  7. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Maybe something is screwed in the port-forwarding settings on your router? Did you enter the new address in your forwarding rules? Anything in your mail log files (/var/log/mail.info) that would indicated traffic and perhaps another signs o failures?

    If everything fails, there would be the last resort option of a network sniffer, but I'm a but hesitant to point you into this route.
     
  8. fixallthisjunkguy

    fixallthisjunkguy New Member

    Well, I kept waiting, and eventually it started working on its own (I'm thinking that the internet didn't reconnect for a long time). But now I have a crap ton of other problems

    1) Postfix refers to black lists, and since our ip is dynamic, when one of our salespeople used the internet name to send and receive an email and it blacklisted our own ip.

    2) Sent a message that looked like this to my junkmail address:

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to <postmaster>

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

    The mail system

    <[email protected]>: Host or domain name not found. Name
    service error for name=localhost.localdomain type=AAAA: Host not found


    Where does this message come from?? I though I had all the variables set for localdomain and stuff. Maybe it's Spamassassin?

    3) I still can't connect to my server via http through the outside to check my roundcube.


    Wow... I think this whole Linux thing is going to drive me to drinking. I love how responsive the OS is and the limited overhead for running pretty much anything, but until you know what you're doing, it's harsh to config it.
     
  9. punto

    punto New Member

    Sounds to me like DNS is screwed or port forwarding on router aint functioning correctly.

    From the outside can you telnet to yourdomain.com on port 25 (mail) or port 80 (http), at least that will determine if router is working correctly.

    From a command line telnet yourdomain.com 25, if it is working correctly it should connect to postfix server.

    If this doesnt work can you telnet using IP address?

    Regards

    Matt
     
  10. falko

    falko Super Moderator ISPConfig Developer

    It's generated by ISPConfig (in order to create mail traffic statistics).
    What's in /etc/hosts, /etc/resolv.conf, and /etc/postfix/main.cf (please strip out the comments)?
    What's the output of
    Code:
    netstat -tap
    ?

    Are you trying to connect with an IP address or a domain? If you used a domain until now, can you try with your router's public IP address?
     
  11. fixallthisjunkguy

    fixallthisjunkguy New Member

    So everyone knows, I got everything working finally. (Yay!!!) Mainly it was, as someone suggested above, some settings in main.cf in postfix as well as a minor problem with my router not port forwarding and requiring reboots of pretty much everything on the network.

    All in all it seems to be working good.

    Is there someway to train spamassassin though? Such as sending junk email to a junkmail account and having it learn from it?

    I thank everyone who got me pointed in the right direction on all this and thank you so much for helping!!
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Yes, you can do it with sa-learn. Search this forum for "sa-learn", you should find something about it. :)
     
  13. fixallthisjunkguy

    fixallthisjunkguy New Member

    Thank you very much!
     

Share This Page