Apache virtual host send email without email server
Hello all,
Debian 5, apache 2.2 I've got Apache up and hosting multiple sites. Each site will have a php contact me page that will simply dump an email to a fixed address. What program should i be using to accomplish this? I've used nullmailer before but that assumes you have a fixed smarthost somewhere which I don't. Can anyone point me in the right direction. Thanks! |
Why not just install postfix and allow it only to relay local mail?
|
Agreed, Postfix (or EXIM the default Debian Mailer), and configure as Internet site when prompted. shouldn't need to do anything else with it in the way of configuration.
|
That's the direction I think I needed. I installed nullmailer on the box. I'm guessing I'll just blow away that installation and just apt postfix and you're saying it should prompt me to install as "internet site". I'll give that a shot and let you know. Thanks.
|
You could use PHPMailer http://phpmailer.codeworxtech.com/index.php
|
Yup, when installing postfix it will automatically setup correctly for you to send email from the local machine only when you select 'Internet Site' configuration.
Make sure your hostname is correct and resolvable, otherwise the machine may end up as an unknown site for strict resolvability. It's not a big deal, you just have to ensure the files /etc/hostname and /etc/resolv.conf are setup correctly prior to installing postfix. If you've any other issues, post here and we'll help... |
I have a blog post available on how-to properly change the hostname if you happen to need it..
http://www.linuxquestions.org/blog/f...hostname-1648/ |
All times are GMT -5. The time now is 10:18 AM. |