Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Some background info: I have a website (lets say 'example.com') running off a LAMP server (ubuntu 10.04), and all mail traffic is handled by an external email service. My DNS records are set so that the MX records are pointing to the external email server (that all works fine). Postfix is installed but not configured (I believe I need a 'null client' set up?). PHP ini's sendmail_path is set to default. I have little understanding of sendmail (and mail in general), but I can see it is on the default php sendmail path. So I'm trying to send emails from info@example.com to clients through PHP's mail() function, and obviously no emails are being sent. How can I fix/track whats happening (whilst keeping the MX records untouched)?

share|improve this question
add comment

1 Answer

If postfix is not configured and started your emails will get queued . You can see them issuing 'mailq' from shell. You should configure your postfix to either send all emails by itself (autonomous system) or vía an smarthost (maybe your domains server). How to do it depends very much on your website hosting (does it allow direct mail sending?) and your mail hosting (will it accept relaying from your website?).

share|improve this answer
add comment

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.