Sendmail question. Attn Rob, Sled, ColPanic, etc

Discussion in 'OT Technology' started by Joe_Cool, May 12, 2005.

  1. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,450
    Likes Received:
    608
    Sendmail question. Update: Problem solved

    I reinstalled my linux server recently and one of the few dozen things I forgot to back up was my sendmail configuration. :o

    So I want to get it up and running again, and I've got mostly everything the way I want it, except for one major thing:

    What's the directive to set for my sendmail to operate through my ISP's smtp server instead of directly out on the network? I'm on comcast, and that's the only way I got it to work before. Unfortunately, the last time I set it up was about 2 years ago and I can't remember. Something related to external or forwarded SMTP, and I had to list the name of comcast's mail server.

    Anybody got any ideas?
     
    Last edited: May 17, 2005
  2. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    should be a "define(`SMART_HOST',`smtp.myisp.net')" line in your sendmail.mc

    you want to define your smtp relay in there. Something makes me think that there is one more option you need to configure, but i can't think of it at the moment. Try that though.
     
  3. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,626
    Likes Received:
    41
    Location:
    Atlanta, GA
    Unfortunately I don't have much experience in sendmail. I do in Postfix though, and there all you have to do is define a relayhost directive and leave your transprt file empty.


    Yes, I realize how this doesn't help you at all. ;)
     
  4. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,450
    Likes Received:
    608
    Well crap. I guess I'm going to have to break down and actually read the bat book. :mamoru:
     
  5. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    :dunno: sorry, never evar done mail administration. the only thing i know is not to use sendmail :o
     
  6. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,450
    Likes Received:
    608
    Sendmail is badass if you're smarter than it is.


    Unfortunately, I'm not anymore. :o
     
  7. perry

    perry burp

    Joined:
    Dec 17, 2001
    Messages:
    6,400
    Likes Received:
    0
    Location:
    Cornfields of Indiana
    Are other systems on your network going to relay through your server and/or receiving mail? Or is the server just using sendmail for its own uses? If the later, look in to ssmtp.
     
  8. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,450
    Likes Received:
    608
    Yeah I've got three other computers going through it.
     
  9. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    smart host didn't work?
     
  10. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,626
    Likes Received:
    41
    Location:
    Atlanta, GA
    Is anyone? :o
     
  11. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,450
    Likes Received:
    608
    Nope. at least not with my existing config file. I think I'm going to delete it and restore the one that came in the rpm, just to start all over and configure it from scratch.

    :hs:

    It delivers mail locally no problem. But I can't receive or send mail outside my network.
     
  12. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,450
    Likes Received:
    608
    I figured out the problem tonight. I decided to ssh to my friend's server and run an nmap against my box, and lo and behold, no port 25. So I started wondering if maybe comcast was blocking it. I portscanned my internal interface, and bam, no 25. So I did it again against localhost, and it worked. :confused:

    So I decided to go over the sendmail.cf and sendmail.mc with a fine-tooth comb, and I found a stupid ass n00b error.

    I had this line in sendmail.mc:

    DAEMON_OPTIONS(`CPort=smtp,Addr=127.0.0.1, Name=MTA')

    :o Sendmail was listening only on lo. So I took that out, ran make, HUP'd sendmail, and it works. :uh:

    Do you ever feel like a complete idiot? :mamoru:
     
    Last edited: May 17, 2005
  13. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    :rofl: good job though :)
     
  14. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,450
    Likes Received:
    608
    Default config files. :ugh:

    Oh, also the smart host entry worked. My messages were just delayed.
     
  15. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    :hsugh:
     

Share This Page