LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   outgoing mail not working (https://www.linuxquestions.org/questions/linux-newbie-8/outgoing-mail-not-working-314281/)

BillyB 04-17-2005 06:06 PM

outgoing mail not working
 
Hello all,

I having a little problem trying to send outgoing mail from a php script which communicates with the sendmail service on a fedora lnux distribution. However i had it working before when i was using red hat and there wasn't any complications(confusing).

I've been doing some research on the net and the suggestions were to make sure that the send mail settings were correct. From what i can see they're being the smtp name is correct with the port number and the path to the where sendmail is saved was correct as well.

This is most confusing beause everthing to me seems correct and double checked to see if the sendmail service was actually running and it is


Any suggestions would be cool

Billl


P.S

Theres nothing wrong with my PHP script. lol

barnamos 04-18-2005 12:08 PM

can you send email from sendmail directly? can you see anything in the mail queue?

BillyB 04-18-2005 04:18 PM

When i look in the mail log for sendmail it stats that the mail has been sent(confusing). Also when i look at the sendmail program where the path in the php.ini file pointing to it comes encoded which i don't know nothing about at all.???????

barnamos 04-18-2005 06:13 PM

Have you sent yourself an email directly from sendmail? Sendmail is certainly a pain to play with but I'd really want to make sure sendmail was happy before looking at why the mail function isn't working.

mcd 04-18-2005 06:16 PM

not sure if this is your problem, but by default sendmail does not allow you to relay mail from other computers, so if you want to set up an smtp service that other computers can use, you need to add their ip addresses to /etc/mail/access like this:

192.168.1 RELAY
110.7.191.71 RELAY

and then run make from that directory.

BillyB 04-19-2005 08:01 AM

Sorry for asking such a silly question but how do send an e-mail from sendmail. Do i have to run it in the graphic interface because i'm currently using ssh to view my web servers configuration.

mcd 04-19-2005 04:51 PM

i always use pine (i do it all over ssh too). that's if you want to log into your mail server with ssh, and then send a message from the server directly (which, incidentally, is a good way to test whether your problem is with relaying).


All times are GMT -5. The time now is 03:27 PM.