LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-14-2005, 09:53 PM   #1
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
sendmail configuration does not work


The sendmail configuration does not work for me.
I configured DNS and then Sendmail.
The procedure I used is:
in /etc/mail/sendmail.mc,
#DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
commented the above line
then
LOCAL_DOMAIN(`host.com')dnl
MASQUERADE_AS(`host.com')dnl
my domail name is set to host.com.

whats the problem
it should work.
Any further help will be appreciated
 
Old 12-15-2005, 04:31 AM   #2
chenglim
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Rep: Reputation: 0
m4 ? did u compile it?
what's in ur sendmail.cf?
 
Old 12-15-2005, 05:21 AM   #3
joel_dz
LQ Newbie
 
Registered: Mar 2005
Location: Bangalore
Posts: 3

Rep: Reputation: 0
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
jus try this
 
Old 12-15-2005, 07:37 AM   #4
chenglim
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Rep: Reputation: 0
m4 is only for frequently update and patch.
try to search file sendmail.cf , edit there and restart sendmail.
good already
 
Old 12-15-2005, 10:33 PM   #5
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440

Original Poster
Blog Entries: 1

Rep: Reputation: 30
i did m4 and generated a sendmail.cf file.
its no offense
and for the comment , i used dnl only not #
everything is set, whats the problem ?
 
Old 12-16-2005, 11:56 AM   #6
atotomex
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora
Posts: 15

Rep: Reputation: 0
Hi,

I don't know if at this time it would help you, but anyway.

because your are masquerading, did you include "host.com" in the /etc/mail/local-host-names?

Regards

Al
 
Old 12-16-2005, 12:06 PM   #7
chenglim
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Rep: Reputation: 0
get a sample sendmail.cf and files in /etc/mail can solve all the problem.
 
Old 12-16-2005, 03:28 PM   #8
greenleaf
Member
 
Registered: Feb 2004
Location: Chester, UK
Distribution: Linux From Scratch. 64 bit. Kernel 5.8.3. Fluxbox.
Posts: 53

Rep: Reputation: 22
sailaja - Its not quite clear what you mean by 'the sendmail configuration does not work for me'. There's all sorts of things that could be wrong. For example, sometimes the ISP blocks the smtp data in-bound. So then you can't receive stuff on that port from outside. nmap is a useful for checking on network capabilities.

If you could be very specific about the symptoms of your problem it might help people to see what could be wrong.

greenleaf
 
Old 12-18-2005, 10:56 PM   #9
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Being specific!!!!
ok, all the configuration part is doe. I configured my mail client with this configuration. It says no error. But I can neither send nor recieve mails.
 
Old 12-21-2005, 07:16 AM   #10
greenleaf
Member
 
Registered: Feb 2004
Location: Chester, UK
Distribution: Linux From Scratch. 64 bit. Kernel 5.8.3. Fluxbox.
Posts: 53

Rep: Reputation: 22
sailu_mvn -

sorry, I didn't mean to be annoying. There are many things that could be wrong. I suggest you divide the possible areas into different parts by differentiating the various symptoms. For example, is this
a) a problem on all networks?
or
b) just on the external network?

You could tell this by sending yourself an email without going through your isp. Do something like
[me@hopeless]$ mail root
This will start the mail program and you can then send some words to root.
Finish the message with a CTRL-D

Now become root
[me@hopeless]$ su - root
and provide the root password.
You can check your mail with a straighforward
[root@hopeless]$ mail
If root has received that message, then sendmail is probably working on your PC.

Another thing to check, as root, are the contents of the maillog. sendmail writes observations to the maillog, and if it is making any complaints you should find them there.
For that you do
[me@hopeless]$ view /var/log/maillog
which will bring up the maillog under vi with no danger of accidentally editing the log.
You can use the character `G' to move to the bottom of the file and see the latest messages.
To leave the editor do
:q


If sendmail is fielding local mail then the problem is probably something to do with your external network and the ISP. If you attach a windows machine to the external network from the same point, can you get & receive email? What email client do you use? If you use something like aol, then you are likely to have problems anyway because aol uses different protocols.

Another possibility is that the sendmail daemon is not actually running. It should be, but you can check with
[me@hopeless] ps -A | grep sendmail
If you get nothing, the daemon is not running.
 
Old 06-17-2009, 09:16 PM   #11
viklahan
LQ Newbie
 
Registered: Aug 2008
Distribution: Ubuntu/Fedora/Mandriva
Posts: 7

Rep: Reputation: 0
Sendmail Problems

Ok I wanna use sendmail for sending some emails to my commercial email accounts. I know this script worked on my corporate network but some how on my personal network its not working. The script executes properly but does not send email.

Following is the script i am using:

#!/usr/bin/python

import os
import sys
import re

#Search for the sendmail location on your system.

SENDMAIL = "/usr/sbin/sendmail"

p = os.popen("%s -t" % SENDMAIL, "w")
p.write("To: viklahan@gmail.com\n")
p.write("Subject: Warning: CPU temperature on the DELL laptop is critical\n")
p.write("Please diagnose the problem as soon as possible as it's been observed that the CPU temperature on the DELL laptop is very critical.\n")
p.write("This problem needs to be rectified or else the system might crash.\n")
p.write("This can result is loss of valuable data\n")
sts = p.close()
if sts != 0:
print "Mail has been sent. Now Exiting", sts
when I grab ps -aux output for sendmail, I get the following:

root 4764 0.0 0.2 8744 2524 ? Ss 18:25 0:00 sendmail: MTA: accepting connections

Well, I am pretty sure that its my ISP, i.e. att, so is there is anyway, I can get root to mail me? And also there is nothing in /var/log/messages

Thanks in advance
Vik
 
Old 06-17-2009, 11:43 PM   #12
sushantchawla2005
Member
 
Registered: Jun 2009
Location: India
Distribution: All flavours of linux
Posts: 93

Rep: Reputation: 14
Wink

Quote:
Originally Posted by sailu_mvn View Post
The sendmail configuration does not work for me.
I configured DNS and then Sendmail.
The procedure I used is:
in /etc/mail/sendmail.mc,
#DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
commented the above line
then
LOCAL_DOMAIN(`host.com')dnl
MASQUERADE_AS(`host.com')dnl
my domail name is set to host.com.

whats the problem
it should work.
Any further help will be appreciated

Hi
U didn't specified your problem in details. Plz provide the OS with version u r using & also send the /etc/hosts file because ur mail server will never work if ur hosts file is misconfigured & also try to send mails to your local users.

Send me the output of the /var/log/mail also. It helps a lot to assure the issue.

Good Luck
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Configuration - I need Help ukjairaj Linux - Networking 5 06-23-2005 12:26 PM
Sendmail Configuration turishi007 Linux - Software 1 12-16-2004 12:51 PM
Sendmail Configuration ralphf Linux - Newbie 1 06-09-2004 12:47 PM
Sendmail Configuration svsalian Linux - Software 7 08-29-2003 04:17 AM
Sendmail Configuration TheDude074 Linux - General 1 08-07-2003 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration