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.
It could be one of a million things. Post the contents of your sendmail.mc file (please remove the dnl commented lines so it won't be so long). I'd be happy to take a look at it.
I'm not familiar with sendmail, but a couple other things to consider, if it is not your configuration, check your firewall and ISP. Your firewall, or your ISP might be blocking the required ports without you knowing it. This is a common practice for ISPs. Also, make sure DNS is working properly. Sendmail needs to be able to resolve the domains to send the mail.
It looks like you've used the exact default sendmail.mc file except you changed Addr=127.0.0.1 to Addr=my.homedns.org. Try changing this part back to the default. I reverted mine to the default and it worked. Now take a look at /var/log/maillog after you try to send a message. Try
Code:
tail /var/logmaillog
to see the end of the file. If you're getting some kind of error similar to this:
Code:
dsn=5.6.0, stat=Data format error
here is the fix that worked for me.
In /etc/mail/sendmail.cf there is a section that reads
Code:
# my official domain name
# … define this only if Sendmail cannot automatically determine your domain
Dj$w.foo.COM
by default. The last line should be changed to
Code:
Dj{myDomain}
where {myDomain} is the qualified domain name of the machine.
If this doesn't work, then we'll try something else.
Sorry, but could you post the entire messge starting with the date. Here was my error message, for example:
Code:
Jun 1 16:03:25 mailman sendmail[17394]: k51K3Po9017392: to=<jeellison@tva.gov>, ctladdr=<nobody@localhost.localdomain> (99/99), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=122110, relay=marvin.cha.tva.gov. [152.85.50.106], dsn=5.6.0, stat=Data format error
The key part of your error is "dsn=4.0.0" The dsn error code refers to RFC 1893. This code corresponds to a "Persistent Transient Failure." This could mean a lot of different things, so post the rest of your error and I'll try to troubleshoot some more.
Just remember to be patient with Sendmail and it will be good to you in the future.
I looks like you've got Sendmail set up correctly. Since your dsn error is not a 5.x.x error, then the error is not permenant. The "No route to host" means exactly what it sounds like; it can't access the remote location, which is in this case mail2.pomeroy.com. Make sure your computer (i.e. firewall, router) are correctly configured for port 25, which Sendmail uses to send mail. You need port 25 open and that port also needs to be forwarded to your PC if you're behind a router.
An easy way to see if your Sendmail connection is working is to
Code:
telnet 127.0.0.1 25
If it lets you connect then you're probably configured correctly. If you get an error that says
Code:
Unable to connect to remote host: Connection refused
this means that the remote host you are trying to connect to does not receive connections. I tested mail2.pomeroy.com and received this error. Try sending mail to me: jeelliso@gmail.com and see if it will work.
The only thing I *think* it could be is some kind of problem with your network; are you behind a router or some other wierd configuration?
What client are you using to try to send the email? If you're not using "mail" then try that.
If you've tried to send a bunch of messages that have failed, you might want to clean out your mqueue (/var/spool/mqueue) so all those back messages don't get send WHEN you get sendmail working.
This machine is my router/firewall, it is connected directly to my broadband modem, everything else is behind it.
I am using Webmin for sending the messages, and I keep the mqueue clear.
I'm all out sane of ideas except blaming it on your ISP. Who is your internet provider? If you can receive mail, but cannot send it, pdeman2 may have been right when he said your ISP may be blocking certain ports coming out of your machine. Try
Code:
traceroute -p 25 googe.com
and post your results. Sorry I was not able to help much more than I am. Just when you think you understand sendmail, it gets the best of you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.