Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm setting up my debian server as a web development base for myself. As it will be a home for my site, and it will use PHP Mail() pretty much, I need the mail to work, and I'm wondering how, as it won't work out of the box.

I've followed this tutorial, without success. http://www.thewireframecommunity.com/node/39

share|improve this question

2 Answers

By default debian is configured to send mail thru exim4 MTA. Try to use command

sendmail -v your@email < ./1.msg

file 1.msg:

Subject: test mail
test message
(newline)
(newline)

where (newline) is \n char. (just press Enter in this line).

This will send you email message using exim4 MTA. If sending mail success, then php will able to send emails.

share|improve this answer

You don't need that. Just create a no-reply@yourdomain.com address in /etc/php5/apache2/php.ini like below

sendmail_path = /usr/sbin/sendmail -t -i -fno-reply@urdomain -Fno-reply

Apache will send mail under this address so no problem with your MTA.

Don't remember where I saw that but it's working on my debian server.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.