Allowing smtp access from the outside world

Discussion in 'Linux Networking' started by Eirik, Jul 30, 2003.

  1. Eirik

    Eirik Guest

    When I do 'telnet localhost 25', it works, but
    'telnet burk 25'(burk is the machine's name), it
    telnet: Unable to connect to remote host: Connection refused

    HTTP/80 and SSH/22 works, it is only SMTP that
    gives me problems.

    How can I allow access from other computers?
    Eirik, Jul 30, 2003
    1. Advertisements

  2. Eirik

    Juha Laiho Guest

    I'd guess you're running sendmail on a relatively recent RedHat distribution.
    Please read the sendmail FAQ first (from
    Also, RH installation/configuration documents should provide the needed

    If these fall short, this has been discussed for numerous times in here
    as well as in comp.mail.sendmail .
    Juha Laiho, Jul 31, 2003
    1. Advertisements

  3. Eirik

    James Knott Guest

    Is it blocked by your ISP? Many of them take a dim view of customers
    running smtp servers, because of the potenial for abuse. Can you access it
    over ssh or ssl, to get around the ISP?

    Fundamentalism is fundamentally wrong.

    To reply to this message, replace everything to the left of "@" with
    James Knott, Jul 31, 2003
  4. Eirik

    redhat_devel Guest

    easy, just edit your /etc/mail/

    go to the line that reads:


    change the "" to "" and then save the file.

    type "m4 /etc/mail/ < /etc/

    then type "service sendmail restart"

    Then others can connect to you fine.
    redhat_devel, Aug 1, 2003
  5. Eirik

    Les Mikesell Guest

    Use something other that RedHat's 'broken as designed'
    version, or read their documentation describing what they
    must think is a user-friendly configuraration interface to fix it.
    Les Mikesell, Aug 2, 2003
  6. Well a first start would be to check the sendmail config files,
    With my Distro (SuSE) all the files are in /etc/mail
    there is a file called access that says this

    # Network IP-addresses have to end on octet boundary, e.g. 127.0.0
    # The right hand side `<keyword or ### text>' could be one of
    # the keywords
    # OK (accept mails even if other rules would reject them)
    # REJECT (reject mails even if other rules would accept them)
    # RELAY (relay this domain, implicit OK within other rules)
    # DISCARD (mail are discard)
    # or an `###' RFC 821 compliant error code and some text, e.g.
    # ERROR:"550 We don't accept mail from spammers"
    # Examples:
    # ERROR:"550 We don't accept mail from spammers" OK
    #192.168 RELAY

    you will probalby find that in this file it says OK

    this allows localhost - but if you are open to the internet do not allow all
    to relay.

    Then you need to run make in that directory to create the new database file
    from the access file.
    Michael Forster, Aug 3, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.