PDA

View Full Version : [ubuntu] Forging ahead with sendmail



Vegan
October 5th, 2009, 11:49 PM
I have finally got my domains working the way I want. I changed my /etc/resolv.conf to localhost and my linksys box, works fine when I use DIG ubuntu.com or any other valid domain such as one of my own.

Now I have a GMAIL account, I would like to leverage it if possible but I would accept other ideas such as one of my domains.

I would like to leverage SENDMAIL to send messages such as error reports etc. I also wanted to use it from PHP to send messages from the web site.

Thoughts? :confused:

yknivag
October 6th, 2009, 12:13 AM
sudo apt-get install postfix

In the set-up chose "Internet domain" and all will work out of the box!

Sendmail is fine but horrendously complicated to configure...

nix4me
October 6th, 2009, 01:48 AM
I also recommend postfix. Much easier to configure, and better support available.

Vegan
October 6th, 2009, 06:25 AM
I already have that installed, so what is next.

yknivag
October 6th, 2009, 03:32 PM
If it's installed correctly then it should simply work. Have you tried running a php script which sends an email? If so, what happened?

Vegan
October 7th, 2009, 04:12 AM
So I wanted to use my gmail address as the source, anything I need to look at?

yknivag
October 7th, 2009, 10:20 PM
Just specify the source address in the email headers. How you do this will depend on what you're using to send the email.

Vegan
October 9th, 2009, 02:23 AM
I using postfix as that is the default choice with tasksel.

I wanted to be able to use it generally from my web sites for forum validations etc.

The problem I see is there is no conspicuous file to edit with the particulars.

yknivag
October 9th, 2009, 05:18 PM
There are settings files (in /etc/postfix/ I think) but I've never yet come across a situation where it hasn't just worked out of the box.

What "particulars" are you trying to edit?

Vegan
October 10th, 2009, 02:53 AM
I looked at that directory, nothing seemed to be what I was seeking. I have several vhosts on my web server that I need to look after.

The email will be sent from phpBB my forum, but also from PHP programs.