Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail problem

Status
Not open for further replies.

sucram

Programmer
May 23, 2001
75
GB
Hi,

would someone be able to tell me if there is a way to check if sendmail is working on my machine.
I have tried:

> sendmail -t
To: Address
From: Address2
Subject: subject

Some text

>
I used control-D to exit.
Nothing seemed to happen.

Thanks for you time,
Marcus

 
If you are looged in as root, type mail and it should tell you if there is mail for root. If for some reason sendmail didn't deliver the mail it will be sent to root by default. You could also check your error logs to see if that can give you info about why the mail was rejected.
 
Hi,
the messages were being sent to root but I don't understand the error can anyone help me, I'm totally lost.

this is the error

Action: failed
Status: 5.5.2
Diagnostic-Code: SMTP; 501 < Sender domain must exist

Thanks,
Marcus
 
I answered this post in the sendmail forum. What the error means is that you mail server is not showing up on dns look up. Edit your dns &quot;MX&quot; and &quot;A&quot; records. It worked before, it should work again. :eek:)

 
Hi,

It could be the other end server is rejecting because of anti-relay / spam measures or because it is getting a look-up (dns) failure on the domain name. The latter control is normally invoked to prevent people sending with origin addresses like joe@localhost .

Depending on your connex it may be necessary to configure sendmail to masquerade as the smtp of the ISP you are connected to. You just have to change the sendmail config to make it masquerade as the ISP's smtp server (i.e. the outbound server you would setup in outlook or whatever if it were M$/windoze). See --> .

If you make changes to the config file remember you have to run it through the macro preprocessor (m4) to create the one that sendmail actually reads and then restart the server...

(First make backups for security !!)
cp /etc/sendmail.mc /etc/sendmail-original.mc
cp /etc/sendmail.cf /etc/sendmail-original.cf

[then edit the macro file /etc/sendmail.mc]

m4 /etc/sendmail.mc > /etc/sendmail.cf
/etc/rc.d/init.d/sendmail restart

(thats for redhat .. yours may be different.)

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top