Find the answer to your Linux question:
Results 1 to 3 of 3
Let me start with...I am brand new to sendmail. I have a web application running on APACHE2. I'm told that it uses a PHP mail function to send emails for ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    1

    Question sendmail - n00b here

    Let me start with...I am brand new to sendmail.

    I have a web application running on APACHE2. I'm told that it uses a PHP mail function to send emails for notifications. I configured my php.ini to use sendmail by adding the following line:

    sendmail_path= /usr/sbin/sendmail -t -i (ive tried it without the i as well)

    As far as the sendmail configuration is concerned, I used the GUI interface provided in the KDE environment (labeled Mail Transfer Agent).

    I inputted my outgoing mail server's IP address and login information. I also unchecked TLS since my mail server does not use that.

    The problem is that no email ever gets sent. The web application states that the email was successfully sent...But I think its because it hands the email to php....(leaving the responsiblity to PHP)...then it believes the email is sent.

    My mail server uses plain text for authentication. Im not doing anything special with it. I told my mail server to accept connections from my linux box.

    I also checked my mail server's logs and see that no record of any connection from my linux server is logged. So it seems my linux server isnt even communicating with my mail server.

    Both boxes are on the same network. My linux box can ping my mail server just fine. Firewall is disabled.

    So my question is, How do I correclty configure sendmail to use an outgoing SMTP server to send emails.......And how do I verify that setting works without using the web application I installed? (I want to verify whether or not the issue is with sendmail or the web application)

    One more question...Where do I find sendmail's logs so I can check to see why it's not hitting my mail server?

    This problem has been plaguing me for weeks now

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105

  3. #3
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    in PHP i have never had to setup email like the way you are talking about.
    i always just used:

    Code:
    mail($to_address,$subject,$body,$from);
    Maybe I'm missing something on your system, but all the ones I've ever moved my code around to never have a problem working like a charm.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...