Page 1 of 1
Ubuntu and XAMPP w/ mail server
Posted: Sat Jan 13, 2007 3:32 pm
by alex.barylski
I have installed the XAMPP for Linux on Ubuntu Dapper Drake? 6.10)
Everything works awesome, FTP, HTTP, etc...
But I cannot send emails using mail() and I need to test that functionality now...
Can someone tell me what might need tweaking in order to get PHP mail() working - I assume it's my SMTP server not configured properly?
Posted: Sun Jan 14, 2007 2:54 am
by dibyendrah
what Mail server are you using ?
Posted: Mon Jan 15, 2007 11:55 pm
by alex.barylski
None that I am aware of, whatever comes default with Ubuntu/Debian?
I haven't started one...to the best of my knowledge - so i can't test PHP scripts which use mail() and so on...its what I"m trying to figure out

Posted: Tue Jan 16, 2007 3:26 am
by Jenk
You'll need to install a mailserver, "sendmail" is the most common - but some argue not the best.
Posted: Tue Jan 16, 2007 11:30 pm
by alex.barylski
Jenk wrote:You'll need to install a mailserver, "sendmail" is the most common - but some argue not the best.
hey man, thats fine...but ummm...I dunno how
sendmail is fine...as it's only a test server...so long as I can test mailing functionality it's all good

Posted: Wed Jan 17, 2007 3:52 am
by Jenk
Here's the sendmail website:
http://www.sendmail.org/
Though you will be better off using Postfix, as that is the sanctioned default mail server according to this page:
https://help.ubuntu.com/6.10/ubuntu/ser ... vices.html
(which also has installation and configuration instructions)
Posted: Wed Jan 17, 2007 12:10 pm
by nickvd
Postfix is much better IMO when compared to sendmail. For the main reason of ease of configuration. It uses 'apache-style' configuration directives and inheritance, whereas sendmail... heh well, just look at some example config files and you'll see...
Though, you will need to talk to your isp regarding them blocking your email ports. Most ISP's are blocking all email access other than their own. So, if you want to either receive incoming mail on your box, or send outgoing mail via your own smtp server (as opposed to your isp's) you'll have a tough time with it.
Posted: Thu Jan 18, 2007 1:50 am
by dibyendrah
First install the package sendmail by following command if you're using Ubuntu/Debian linux.
Before that, see if you have active repository to fetch the package in
After that, use
then
Then, comes the configuration part which you can read at :
http://www.sendmail.org/doc/sendmail-current/cf/README
Configuration has to be done basically on following files :
Code: Select all
/etc/mail/access
/etc/mail/sendmail.mc
Then m4 macro has to be executed to configure sendmail from following command :
Code: Select all
m4 ${CFDIR}/m4/cf.m4 config.mc > config.cf
Also, virtusertable table must be configured as well. It's tough though interesting.
Manual will be a best handson for you to do this stuff.
Dibyendra
Posted: Thu Jan 18, 2007 1:52 am
by dibyendrah
There are other mail severs like exim, POSTFIX qmail and each of them has their own configurations. POSTFIX is similar to sendmail.