• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1531
  • Last Modified:

Need send-only sendmail configuration for Fedora 7 web server

I am learning PHP using the book "PHP 5 Fast & Easy Web Development" by Julie Meloni.  I am using a Fedora 7 machine on our company internal network on which I have just installed Sendmail as my webserver. I have done no configuration on Sendmail at all.  I need to configure  Sendmail so that I can use PHP to send e-mail as per Chapter 8 in the book.  If I were working on a Windows machine, this would be simple - there would be no sendmail to deal with and php.ini  would only need to set
SMPT = mail.mymailprovider.com
sendmail_from =  me@mydomain.com

Being on linux, I must set
sendmail_path = /usr/sbin/sendmail
and that is all that php.ini can do for me. The mail configuration must be done with  sendmail.

This is where my knowledge of what to do next comes to an end.  I only need to send mail, not receive it, on this Fedora 7 machine.  I want it to take PHP-produced email messages and ship them off to mail.mymailprovider.com.  No other e-mail  capabilities whatsoever are needed.

what do I need to do to the Fedora 7 sendmail config to make this happen?
2 Solutions
Actually, you could do the same thing in Linux. Nowhere is it carved in stone that you must use a local MTA. I'm not sure why you think the OS makes a difference for that issue. There's no reason you can't use an MTA provided on another host.

If you want to use the local sendmail, I'm not sure what you mean by a "send-only" configuration. Could you explain what it is you're looking for.
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
If you don't have sendmail running but a valid sendmail.cf in place, mail and mailx will deliver to your "mailhost" directly.
This I'd call a "send-only" setup.
Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now