Sendmail wont send to the internet. Local mail ok.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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. ------
Received: from root by xdeviant with local (Exim 4.69)
for firstname.lastname@example.org; Wed, 20 May 2009 13:46:51 -0700
Date: Wed, 20 May 2009 13:46:51 -0700
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
The original message was received at Tue, 19 May 2009 13:06:33 -0700
from localhost [127.0.0.1]
----- Transcript of session follows -----
email@example.com... Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
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!
Last edited by themrrobert; 05-20-2009 at 05:06 PM.
Reason: Tried again with Deviant Sid
Note: I don't know what else to do =( Added sendmail.mc 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: sendmail.mc, 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=127.0.0.1')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=127.0.0.1')dnl
dnl # Be somewhat anal in what we allow MAYBE THIS?
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
Last edited by themrrobert; 05-20-2009 at 04:11 PM.
Reason: Added my /etc/mail/sendmail.mc file
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.
I don't have my notes here, but I'm pretty sure you comment out the line with '127.0.0.1' in it.
Its a default security setting to only send to/from localhost. Has to be disabled, then re-generate sendmail.cf.
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.
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.
that should be firstname.lastname@example.org (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.