LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-24-2009, 01:12 PM   #1
Zero187
Member
 
Registered: May 2009
Posts: 30

Rep: Reputation: 15
Can't send email from linux machine using sendmail


I get an error in the logs when I try to send to an internal email address in my domain from my linux PC (I took out my email address and replaced it with myemail@nospam.com):
Code:
Content-Type: message/delivery-status

Reporting-MTA: dns; Linux-PET300.SuSE
Received-From-MTA: DNS; localhost
Arrival-Date: Wed, 24 Jun 2009 13:34:34 -0400
Final-Recipient: RFC822; myemail@nospam.com
Action: failed
Status: 5.1.8
Diagnostic-Code: SMTP; 553 5.1.8 <FWLogWatch@Linux-PET300.SuSE>... Domain of sender address FWLogWatch@Linux-PET300.SuSE does not exist
Last-Attempt-Date: Wed, 24 Jun 2009 13:34:35 -0400

--n5OHYZUY022214.1245864875/Linux-PET300.SuSE
Content-Type: text/rfc822-headers

Return-Path: <FWLogWatch@Linux-PET300.SuSE>
Received: from Linux-PET300.SuSE (localhost [127.0.0.1])
        by Linux-PET300.SuSE (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n5OHYWUX022212
        for <myemail@nospam.com>; Wed, 24 Jun 2009 13:34:34 -0400
Received: (from root@localhost)
        by Linux-PET300.SuSE (8.14.3/8.14.3/Submit) id n5OHYWiX022208
        for myemail@nospam.com; Wed, 24 Jun 2009 13:34:32 -0400
Message-Id: <200906241734.n5OHYWiX022208@Linux-PET300.SuSE>
Date: Wed, 24 Jun 2009 13:34:32 -0400
From: FWLogWatch@Linux-PET300.SuSE
To: myemail@nospam.com
Subject: Firewall Log
User-Agent: Heirloom mailx 12.2 01/07/07
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="=_4a4263a8.jJVwbrsBDasLWFRnjbkywNDlTyQd3ZXrxKENENEIOG8gjV9j"

--n5OHYZUY022214.1245864875/Linux-PET300.SuSE--
How would I allow this domain? I have tried adding it to the accepted domains in my exchange server and restarted it but that didn't change anything.

Also played around a little with my access and linux.mc files but with no luck.

Any help would be appreciated.

Thanks,
Brian


EDIT:
Also I found a few people saying to edit a Sendmail.mc file and use m4 to rebuild but there is no such file on my system. I have a Linux.mc file which has a lot of the stuff the sendmail.mc should have so I assume it's the same file just different name. So should I use use the command:

m4 linux.mc > /etc/sendmail.cf

when I'm done editing?

Last edited by Zero187; 06-24-2009 at 01:16 PM.
 
Old 06-24-2009, 01:25 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,375

Rep: Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911Reputation: 1911
Code:
Diagnostic-Code: SMTP; 553 5.1.8 <FWLogWatch@Linux-PET300.SuSE>... 
Domain of sender address FWLogWatch@Linux-PET300.SuSE does not exist
I've had a similar problem. I solved using option -f:
Code:
sendmail -f FWLogWatch@Linux-PET300.SuSE recipient@domain.it
 
Old 06-24-2009, 02:33 PM   #3
Zero187
Member
 
Registered: May 2009
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Code:
Diagnostic-Code: SMTP; 553 5.1.8 <FWLogWatch@Linux-PET300.SuSE>... 
Domain of sender address FWLogWatch@Linux-PET300.SuSE does not exist
I've had a similar problem. I solved using option -f:
Code:
sendmail -f FWLogWatch@Linux-PET300.SuSE recipient@domain.it
Still not getting the emails, but no error anymore.. Tried to send to my gmail account and that didn't work either.

When I try to restart the SMTP service it says:

"Initializing SMTP port (sendmail) failed"


So from there I changed the port in the Linux.mc file by removing "dnl" from the "DAEMON_OPTIONS(`Port=587,Name=MSA,M=E')" line because I thought maybe it was having a problem with the other exchange server running on port 25 but it still doesn't work. Do I need to recompile/rebuild the linux.mc file first before it applies changes?

Very confused as all the documentation I have found so far tells me I should be editing a sendmail.mc file yet there is none on my system.


EDIT: Could it be that sendmail is having trouble because of the exchange server? How would I use mailx with my exchange server instead of sendmail? It worked fine before I added this machine to the domain with the exchange server on it.

Last edited by Zero187; 06-25-2009 at 10:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail will not send email alwayslearning Linux - Software 3 05-06-2008 10:32 AM
How can i get unix to send an email to windows machine Nejad Linux - Server 1 12-03-2007 11:34 PM
Can't send email from my machine to internet BrianK Linux - Networking 3 02-10-2006 09:02 PM
send email with sendmail from out stigmata Linux - Software 1 12-20-2005 02:35 PM
sendmail won't send email robmainella Linux - Software 0 09-10-2003 04:54 PM


All times are GMT -5. The time now is 03:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration