LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2009, 06:02 AM   #1
SibLiant
LQ Newbie
 
Registered: Dec 2006
Posts: 9

Rep: Reputation: 0
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!
 
Old 06-03-2009, 06:30 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Why not just install postfix and allow it only to relay local mail?
 
Old 06-03-2009, 07:10 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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.
 
Old 06-03-2009, 12:04 PM   #4
SibLiant
LQ Newbie
 
Registered: Dec 2006
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 06-03-2009, 12:44 PM   #5
barghota
Member
 
Registered: Jul 2003
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Debian, FreeBSD
Posts: 94

Rep: Reputation: 38
You could use PHPMailer http://phpmailer.codeworxtech.com/index.php
 
Old 06-03-2009, 05:40 PM   #6
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
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...
 
Old 06-03-2009, 09:46 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to allow wordpress to send email from server cucolin@ Linux - Server 4 08-01-2008 01:42 PM
Why send email from www-data@host.com? pk_kala Linux - Server 1 10-05-2007 06:32 AM
Best way to send server messages via email? swiftnet Linux - Software 0 07-08-2004 11:04 AM
How do I host Email on my server? unclejessie77 Linux - Software 1 02-15-2004 10:23 AM
Allowing an IP to send email using my email server... culprit Linux - Networking 7 09-09-2003 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration