Ubuntu and XAMPP w/ mail server
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Ubuntu and XAMPP w/ mail server
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?
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?
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
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)
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)
-
nickvd
- DevNet Resident
- Posts: 1027
- Joined: Thu Mar 10, 2005 5:27 pm
- Location: Southern Ontario
- Contact:
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.
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.
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
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 :
Then m4 macro has to be executed to configure sendmail from following command :
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
Before that, see if you have active repository to fetch the package in
Code: Select all
/etc/apt/sources.listCode: Select all
$apt-get updateCode: Select all
#apt-get install sendmailhttp://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.mcCode: Select all
m4 ${CFDIR}/m4/cf.m4 config.mc > config.cfManual will be a best handson for you to do this stuff.
Dibyendra
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact: