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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-14-2005, 10:53 PM
|
#1
|
Member
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Rep:
|
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
|
|
|
12-15-2005, 05:31 AM
|
#2
|
LQ Newbie
Registered: Jan 2005
Posts: 18
Rep:
|
m4 ? did u compile it?
what's in ur sendmail.cf?
|
|
|
12-15-2005, 06:21 AM
|
#3
|
LQ Newbie
Registered: Mar 2005
Location: Bangalore
Posts: 3
Rep:
|
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
jus try this
|
|
|
12-15-2005, 08:37 AM
|
#4
|
LQ Newbie
Registered: Jan 2005
Posts: 18
Rep:
|
m4 is only for frequently update and patch.
try to search file sendmail.cf , edit there and restart sendmail.
good already
|
|
|
12-15-2005, 11:33 PM
|
#5
|
Member
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Original Poster
Rep:
|
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 ?
|
|
|
12-16-2005, 12:56 PM
|
#6
|
LQ Newbie
Registered: Jun 2005
Distribution: Fedora
Posts: 15
Rep:
|
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
|
|
|
12-16-2005, 01:06 PM
|
#7
|
LQ Newbie
Registered: Jan 2005
Posts: 18
Rep:
|
get a sample sendmail.cf and files in /etc/mail can solve all the problem.
|
|
|
12-16-2005, 04:28 PM
|
#8
|
Member
Registered: Feb 2004
Location: Chester, UK
Distribution: Linux From Scratch. 64 bit. Kernel 5.8.3. Fluxbox.
Posts: 53
Rep:
|
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
|
|
|
12-18-2005, 11:56 PM
|
#9
|
Member
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Original Poster
Rep:
|
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.
|
|
|
12-21-2005, 08:16 AM
|
#10
|
Member
Registered: Feb 2004
Location: Chester, UK
Distribution: Linux From Scratch. 64 bit. Kernel 5.8.3. Fluxbox.
Posts: 53
Rep:
|
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.
|
|
|
06-17-2009, 10:16 PM
|
#11
|
LQ Newbie
Registered: Aug 2008
Distribution: Ubuntu/Fedora/Mandriva
Posts: 7
Rep:
|
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
|
|
|
06-18-2009, 12:43 AM
|
#12
|
Member
Registered: Jun 2009
Location: India
Distribution: All flavours of linux
Posts: 93
Rep:
|
Quote:
Originally Posted by sailu_mvn
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
|
|
|
All times are GMT -5. The time now is 08:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|