LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache virtual host send email without email server (https://www.linuxquestions.org/questions/linux-software-2/apache-virtual-host-send-email-without-email-server-730368/)

SibLiant 06-03-2009 06:02 AM

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!

irishbitte 06-03-2009 06:30 AM

Why not just install postfix and allow it only to relay local mail?

farslayer 06-03-2009 07:10 AM

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.

SibLiant 06-03-2009 12:04 PM

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.

barghota 06-03-2009 12:44 PM

You could use PHPMailer http://phpmailer.codeworxtech.com/index.php

irishbitte 06-03-2009 05:40 PM

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...

farslayer 06-03-2009 09:46 PM

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.