Linux - SoftwareThis 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.
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.
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
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.
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.
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.