SendMail Not Sending, Messages Stuck In Queue As: Deferred: Connection
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.
SendMail Not Sending, Messages Stuck In Queue As: Deferred: Connection
Hello, I am running CentOS with the webmin to manage most everything, sendmail is active and running. When I send an email via PHP using the mail() function I can see the message in the webmail queue, but the status of messages are always:
Deferred: Connection timed out with mail.fieldtechnologies.com.
Where mail.fieldtechnologies.com is the domain of the recipient. Any idea how to fix this issue? The messages never get sent, and eventually time out. Thanks for the help.
Try this: echo hello |sendmail -v user@yourbox
That ought to tell you something about local mail, and remember, sendmail will NOT send mail anywhere off the box, by default. Have to change sendmail.cf if you want it to talk to the internet.
[ Fri Feb 02 - 9:54am - ~ ] BELVEDERE | root -=-> echo hello | sendmail -v root
root... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.13.1/8.13.1; Fri, 2 Feb 2007 09:54:49 -0800
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@localhost.localdomain> SIZE=6 AUTH=root@localhost.localdomain
250 2.1.0 <root@localhost.localdomain>... Sender ok
>>> RCPT To:<root@localhost.localdomain>
>>> DATA
250 2.1.5 <root@localhost.localdomain>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 l12Hsnic004575 Message accepted for delivery
root... Sent (l12Hsnic004575 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
What do I need to modify in the sendmail.cf to be able to send mail out of the internal network. Also, how I change it from saying localhost.localdomain. Thanks!
SendMail is extremely powerful, but also very complicated.
Unless you have a reason for using sendmail other than the fact that it is the default RedHat / Fedora / CentOS MTA, I'd suggest moving to another MTA. I find Postfix much simpler to configure for all my servers, except for my Mail Server, which runs qmail.
Postfix makes it much easier to change the "localhost.localhost" setup, as well as relaying etc...
Ok, I think I have sendmail almost all setup though, just a small thing I am sure is not configured correctly. I can send mail successfully inside the network, but outside traffic mail is stuck in the queue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.