General questions about fresh Slack install and Sendmai
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.
General questions about fresh Slack install and Sendmai
I just installed slackware with apache/php/mysql proftpd and samba.
I got everythign working right, but my website uses my mail server.
I got SENDMAIL installed on my system already, but I don't know how to use it or configure it or anything. My PHP script which utilizes the Mail(); function appears to go off without a hitch, but the email never arrives!
Can someone give any links where i can learn about hwo sendmail works and such?
You'll want to first look in your maillog to see what's happening with the mail. it might be located in either /var/log/mailog, /var/log/syslog or /var/log/messages. Post it here if you don't understand them and I'll try and help ya out.
To send email via a command prompt, you would do it through telnet like so:
(Type what is in bold)
user@hostname:# telnet hostname 25
Trying 127.0.0.1...
Connected to hostname.
Escape character is '^]'.
220 hostname ESMTP Sendmail 8.12.8/8.12.8; Sun, 4 Apr 2004 16:48:08 -0700
HELO localhost
250 hostname Hello IDENT:0@localhost [127.0.0.1], pleased to meet you MAIL from:<senders@emailaddress>
250 2.1.0 <senders@emailaddress>... Sender ok RCPT to:<recipitents@emailaddress>
250 2.1.5 <recipitents@emailaddress>... Recipient ok DATA
354 Enter mail, end with "." on a line by itself SUBJECT: Test
Your message.
.
250 2.0.0 i34NoYG3017433 Message accepted for delivery quit
221 2.0.0 hostname closing connection
Connection closed by foreign host.
Originally posted by artistikone You'll want to first look in your maillog to see what's happening with the mail. it might be located in either /var/log/mailog, /var/log/syslog or /var/log/messages. Post it here if you don't understand them and I'll try and help ya out.
Ok, I'm having the same problem trying to send mail in PHP. Checked my "maillog" file, saw the following:
sendmail[1234]: <blah> relay=root@localhost
<more lines like that> ...Connection refused by [127.0.0.1]
So, is the connection being refused by Apache, or by sendmail? Not sure where to look for this one...
It looks like sendmail is running, but it's refusing conections. Double-check your sendmail config etc, make sure connections from localhost are allowed, should be by default. Also, try what I mentioned about, about telneting manually to make sure all is good with sendmail. If you can do it manually, then it's probably going to be a perms/user issue. For instance maybe you have apache running as apache:nobody, which may not have perms to use sendmail. As always, restart sendmail if you made/make any changes.
Sorry to be vague, but I haven't used sendmail in awhile heh.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.