LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Send Email from root (https://www.linuxquestions.org/questions/slackware-14/send-email-from-root-488584/)

janap-146 10-01-2006 08:03 PM

Send Email from root
 
Hi,

I have just installed phpBB2 Forums on my Test Server but for some reason I cannot get email to be sent from root I thought that it should be something like root@MyUserName.localdomain but after I try to send an email to All Registered Users from Mass Email I just get two BEEPS but no email has been sent after I check.

I have made One Registered User on the forum just to test and then I tried to email using the Mass Email Function.

I am not a regular Linux User, I have just started using it again after months of being apart from it! I am a Windows Programmer and wish had more time to get into it properly.

Please if somebody knows what I can do to get this working, please could you give me some advice.

Many thanks

janap-146

chrwei 10-02-2006 08:31 AM

does phpbb use smtp or the sendmail compatable binary (probably via php mail() function)? can you set mail from your server any other way?

I have no idea what would make 2 BEEP's.

cdhjrt 10-02-2006 10:04 AM

mail test
 
I think you should be sending mail to root@localhost.localdoamin. Here is a test you can try.

Try this command:
mailx -s "test" -v root
.


Put a . in the next line and sendmail will echo back something like:


>>>RCPT To:<root@localhost.localdomain>

This is the email address of your local root user. If you want mail to be moved to a different server you will have to configure Sendmail.

Hope this helps.

operator10001 10-02-2006 12:43 PM

easy, log in as root, open your fav e-mail klient and go with it.

janap-146 10-02-2006 01:51 PM

Hi,

Thanks to everyone for replying, I have it working now.

phpBB2 was configured for sending emails via the Local Mail Function and I was trying to send to another email account, but my ISP was rejecting it and returning the email as 550 Invalid Sender Domain. I think I had one too many beers last night!!

I have now configured it through SMTP and everything is working fine.

Thanks again

janap


All times are GMT -5. The time now is 04:13 AM.