LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can't send email from linux machine using sendmail (http://www.linuxquestions.org/questions/linux-general-1/cant-send-email-from-linux-machine-using-sendmail-735345/)

Zero187 06-24-2009 02:12 PM

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?

colucix 06-24-2009 02:25 PM

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

Zero187 06-24-2009 03:33 PM

Quote:

Originally Posted by colucix (Post 3584979)
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.


All times are GMT -5. The time now is 06:12 AM.