-   Linux - Newbie (
-   -   Sendmail wont send to the internet. Local mail ok. (

themrrobert 05-20-2009 01:37 PM

Sendmail wont send to the internet. Local mail ok.
I am trying to get sendmail (my smtp server) to transport mail to outside internet addresses. We are getting a virtual server set up in the next few days, and it should work out of the box, but i need to get the local machine working to test it before uploading.

I can sendmail to other user accounts no problem, and (before i played with it) my main account (robert) could send mail, and this was the response it got: (but it didn't work before, it wont succeed in 5 days lol.)
Output from 2.6.27 kernel, latest sendmail in sid repos, default cfg, webmin installed.

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
    Mailing to remote domains not supported

------ This is a copy of the message, including all the headers. ------

Return-path: <root@xdeviant>
Received: from root by xdeviant with local (Exim 4.69)
        (envelope-from <root@xdeviant>)
        id 1M6sgd-00062P-Sh
        for; Wed, 20 May 2009 13:46:51 -0700
Message-Id: <E1M6sgd-00062P-Sh@xdeviant>
Date: Wed, 20 May 2009 13:46:51 -0700


Message contents       

    **      THIS IS A WARNING MESSAGE ONLY      **

The original message was received at Tue, 19 May 2009 13:06:33 -0700
from localhost []

  ----- Transcript of session follows ----- Deferred: Connection timed out with
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old

I have webmin, and i've already added robert to list of trusted users and restarted sendmail server.

Please help ^_^ I just want to send outgoing email!

themrrobert 05-20-2009 03:53 PM

Note: I don't know what else to do =( Added file
I should mention that I have tried exim, xmail, sendmail and the one that starts with an f. None of them work. I have spent countless hours trying to configure them, but most of it should configure automatically with Debian.

I have tried on Debian Sid, Lenny, Ubuntu ( i can't tell which kind, i think heron. 8.4 or something. ) none will send email out. (By the way i've tried from three different ips with 3 different isps, all of which claim not to block any outbound traffic.


# $Sendmail: -----
#  Copyright (c) 1998-2005 Richard Nelson.  All Rights Reserved.
#  This file is used to configure Sendmail for use with Debian systems.
VERSIONID(`$Id:, v 8.14.3-4 2008-05-20 07:20:30 cowboy Exp $')
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE

dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=')dnl

dnl # Be somewhat anal in what we allow MAYBE THIS?

define(`confCONNECTION_RATE_THROTTLE', `15')dnl


FEATURE(`access_db', , `skip')dnl

FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl

dnl # Stop connections that overflow our concurrent and time connection rates
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl


dnl # Default Mailer setup

Undeadzz 05-20-2009 05:45 PM

I'm pretty sure the mail server that your mail server is sending mail to needs to accept it, which means you either have to get a certificate from verisign or some other company, or talk to the person who owns the upstream mail server to allow your server to send mail to theirs.

chrism01 05-21-2009 01:29 AM

I don't have my notes here, but I'm pretty sure you comment out the line with '' in it.
Its a default security setting to only send to/from localhost. Has to be disabled, then re-generate

farslayer 05-21-2009 10:35 AM

So you intentionally installes sendmail on a Debian based system ? Why ? Sendmail is complex and difficult to configure, not a good choice if you are not familiar with it.

EXIM is the default smtp for Debian, and either EXIM or Postfix would be easier to configure than sendmail. Personally I prefer postfix because I am more familiar with it than exim, but I have used both successfully.

dpkg-reconfigure exim
choose Internet site - Done you should now be able to send and receive mail to the Internet..

With sendmail not so much.. I don't think the dpkg-reconfigure command works with that smtp server.

for best practices you should address the two following issues as well..

The hostname your mail server is identifying itself as is invalid - many mail servers will reject mail because of that, your server needs a alid hostname.

Return-path: <root@xdeviant>
that should be (or org, net, whatever.. ) it should be a valid address. that is my tipoff that your hostname isn' set properly

You should properly configured DNS HOST and rDNS records for your domain, or many mail servers will reject mail from you based on lack of those valid records.

repo 05-21-2009 01:24 PM


plz vist
please stop spamming

farslayer 05-21-2009 01:54 PM

repo did you report that ?

Looking at his post history, his last 7 posts have been spamming that site.. clearly a rules violation, and not very helpful either.


repo 05-21-2009 01:56 PM


repo did you report that ?

farslayer 05-22-2009 08:29 AM

Lots of how-to's for configuring sendmail.

Did you try the suggestion by chrism ? did it have any effect ?

All times are GMT -5. The time now is 09:47 AM.