Re: [ubuntu-uk] Email for LAMP setup
On 22 June 2010 01:33, ian pettitt (RRes-BB) ian.pett...@bbsrc.ac.uk wrote: On 22 Jun 2010, at 00:19, Jonathon Fernyhough j.fernyho...@gmail.commailto:j.fernyho...@gmail.com wrote: It should be (fairly easily) possible to configure PHP to send via an existing SMTP server, so you don't have to worry about setting up a full MTA. Otherwise Postfix does a pretty good job, IIRC. Jonathon (apologies for TP, via Android Gmail) On 21 Jun 2010 22:47, Chris Rowson mailto:christopherrow...@gmail.comchristopherrow...@gmail.commailto:christopherrow...@gmail.com wrote: Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. Chris -- mailto:ubuntu-uk@lists.ubuntu.comubuntu-uk@lists.ubuntu.commailto:ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-ukhttps://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/https://wiki.ubuntu.com/UKTeam/ ATT1..txt I use postfix configured as a satellite system, so all mail is handled by another machine - my companies mail server. The setup is pretty straight forward, install and configure postfix and forward all mail from root etc through the this. Php mail will then work using this default system. I have a complete setup notes, but they are at work and I can't get them until weds, if you can wait until then I can email them to you. Some of the php smtp settings are applicable to windows only, so check the php manual to save time trying to set things in php.ini that won't work on ubuntu - something I have done in the past. I have always found exim trivial to set up on Ubuntu (and Debian) boxes, so you might want to consider it. I understand postfix and sendmail are more powerful and do better throughput, but unless you are running a mail server for a company exim will work fine If you have an mta configured then I think php just works to send mail, though it has been a while so can't remember Anton -- Anton Piatek email: an...@piatek.co.uk blog/photos:http://www.strangeparty.com pgp: [74B1FA37] (http://www.strangeparty.com/anton.asc) fingerprint: 7401 96D3 E037 2F8F 5965 A358 4046 71FD 74B1 FA37 No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
On 21 June 2010 22:46, Chris Rowson christopherrow...@gmail.com wrote: Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. I'd personally look at postfix or qmail as an MTA. qmail can be a bit fiddly to set up but is very light and reliable. For testing purposes, PEAR::mail doesn't need an MTA at all, but it's probably better to set something up so that you're not waiting for the SMTP process to complete. s/ -- Save BBC 6 Music http://www.love6music.com My CV: http://bit.ly/sfgreenwood_cv Linkedin: http://www.linkedin.com/in/simonfgreenwood Twitter: @sfgreenwood -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
On 22/06/10 08:27, Simon Greenwood wrote: For testing purposes, PEAR::mail doesn't need an MTA at all, but it's probably better to set something up so that you're not waiting for the SMTP process to complete. DevNULL SMTP FTW! -- The Open Learning Centre http://www.theopenlearningcentre.com -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. I'd personally look at postfix or qmail as an MTA. qmail can be a bit fiddly to set up but is very light and reliable. For testing purposes, PEAR::mail doesn't need an MTA at all, but it's probably better to set something up so that you're not waiting for the SMTP process to complete. s/ I did try out postfix and sendmail, but noticed that they both ship listening for mail. I'm guessing that they don't come out of the box configured to relay mail, but I wondered if there was a simple MTA that basically sends email but doesn't receive it? Cheers, Chris -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
http://jon.sprig.gs/blog/2009/11/29/use-gmails-smtp-gateway-using-the-command-line-from-ubuntu-without-lots-of-config-tips/ This will relay SMTP via GMail. There's no reason why you can't just set the same thing up to relay to your ISP's mail host (without the SSL stuff). -- Jon The Nice Guy Spriggs On Tue, Jun 22, 2010 at 11:38 AM, Chris Rowson christopherrow...@gmail.com wrote: Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. I'd personally look at postfix or qmail as an MTA. qmail can be a bit fiddly to set up but is very light and reliable. For testing purposes, PEAR::mail doesn't need an MTA at all, but it's probably better to set something up so that you're not waiting for the SMTP process to complete. s/ I did try out postfix and sendmail, but noticed that they both ship listening for mail. I'm guessing that they don't come out of the box configured to relay mail, but I wondered if there was a simple MTA that basically sends email but doesn't receive it? Cheers, Chris -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
http://jon.sprig.gs/blog/2009/11/29/use-gmails-smtp-gateway-using-the-command-line-from-ubuntu-without-lots-of-config-tips/ This will relay SMTP via GMail. There's no reason why you can't just set the same thing up to relay to your ISP's mail host (without the SSL stuff). -- Jon The Nice Guy Spriggs Hi Jon, Unfortunately if you relay mail via Google you can hit their sending limits, plus I believe that Google rewrite's the 'from' address to that of the Google account sending. https://www.google.com/support/a/bin/answer.py?hl=enanswer=166852 Also (unfortunately) my ISP will only relay mail sent from it's own network (and my server isn't on their network). Cheers, Chris -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
On Tue, 2010-06-22 at 11:41 +0100, Jon Spriggs wrote: http://jon.sprig.gs/blog/2009/11/29/use-gmails-smtp-gateway-using-the-command-line-from-ubuntu-without-lots-of-config-tips/ This will relay SMTP via GMail. There's no reason why you can't just set the same thing up to relay to your ISP's mail host (without the SSL stuff). Thanks Jon, nice article! One question though: why do you need xinetd? What's missing in the default Ubuntu install to define the service? Bruno -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
On Tue, Jun 22, 2010 at 11:55 AM, Bruno Girin brunogi...@gmail.com wrote: On Tue, 2010-06-22 at 11:41 +0100, Jon Spriggs wrote: http://jon.sprig.gs/blog/2009/11/29/use-gmails-smtp-gateway-using-the-command-line-from-ubuntu-without-lots-of-config-tips/ This will relay SMTP via GMail. There's no reason why you can't just set the same thing up to relay to your ISP's mail host (without the SSL stuff). Thanks Jon, nice article! One question though: why do you need xinetd? What's missing in the default Ubuntu install to define the service? Bruno To be honest, I just followed two or three walk-throughs to tie the various tutorials together. I think xinetd provides the TCPport-to-command interface, but I might be wrong! Rgds, -- Jon The Nice Guy Spriggs -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
On 22 June 2010 11:38, Chris Rowson christopherrow...@gmail.com wrote: Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. I'd personally look at postfix or qmail as an MTA. qmail can be a bit fiddly to set up but is very light and reliable. For testing purposes, PEAR::mail doesn't need an MTA at all, but it's probably better to set something up so that you're not waiting for the SMTP process to complete. s/ I did try out postfix and sendmail, but noticed that they both ship listening for mail. I'm guessing that they don't come out of the box configured to relay mail, but I wondered if there was a simple MTA that basically sends email but doesn't receive it? Instal exim! It can easily (you answer a few wizard questions) send mail only Anton -- Anton Piatek email: an...@piatek.co.uk blog/photos:http://www.strangeparty.com pgp: [74B1FA37] (http://www.strangeparty.com/anton.asc) fingerprint: 7401 96D3 E037 2F8F 5965 A358 4046 71FD 74B1 FA37 No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. I'd personally look at postfix or qmail as an MTA. qmail can be a bit fiddly to set up but is very light and reliable. For testing purposes, PEAR::mail doesn't need an MTA at all, but it's probably better to set something up so that you're not waiting for the SMTP process to complete. s/ I did try out postfix and sendmail, but noticed that they both ship listening for mail. I'm guessing that they don't come out of the box configured to relay mail, but I wondered if there was a simple MTA that basically sends email but doesn't receive it? Instal exim! It can easily (you answer a few wizard questions) send mail only Anton -- Anton Piatek I'll give it a go :-) -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
Instal exim! It can easily (you answer a few wizard questions) send mail only Anton -- Anton Piatek I'll give it a go :-) Thanks, that worked brilliantly. The answer to the wizard question to set the server up not to listen to SMTP requests from the Internet was 'internet site; mail is sent and received directly using SMTP' then set the server to listen on localhost for SMTP. Cheers, Chris -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
On 22 June 2010 13:54, Chris Rowson christopherrow...@gmail.com wrote: Instal exim! It can easily (you answer a few wizard questions) send mail only I'll give it a go :-) Thanks, that worked brilliantly. The answer to the wizard question to set the server up not to listen to SMTP requests from the Internet was 'internet site; mail is sent and received directly using SMTP' then set the server to listen on localhost for SMTP. Actually that will have set it up to accept mail from the internet, but only allow sending mail from localhost. If you really don't want the box to receive any mail then you want one of the smarthost options iirc, that way your box sends mail but it expects all replies to go somewhere else (note that you really should have a legitimate reply address) Anton -- Anton Piatek email: an...@piatek.co.uk blog/photos:http://www.strangeparty.com pgp: [74B1FA37] (http://www.strangeparty.com/anton.asc) fingerprint: 7401 96D3 E037 2F8F 5965 A358 4046 71FD 74B1 FA37 No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
On 22 June 2010 17:16, Chris Rowson christopherrow...@gmail.com wrote: It can easily (you answer a few wizard questions) send mail only I'll give it a go :-) Thanks, that worked brilliantly. The answer to the wizard question to set the server up not to listen to SMTP requests from the Internet was 'internet site; mail is sent and received directly using SMTP' then set the server to listen on localhost for SMTP. Actually that will have set it up to accept mail from the internet, but only allow sending mail from localhost. If you really don't want the box to receive any mail then you want one of the smarthost options iirc, that way your box sends mail but it expects all replies to go somewhere else (note that you really should have a legitimate reply address) Are you sure? I just did a quick check and happened across this guide (that I didn't notice before) http://library.linode.com/email/exim/send-only-mta-ubuntu-10.04-lucid It also seems to indicate selecting the 'internet site' option even when using the server to send mail only. Hmm, maybe you are correct The options are: -internet site; mail is sent and received directly using SMTP -mail sent by smarthost; received via SMTP or fetchmail -mail sent by smarthost; no local mail -local delivery only; not on a network -no configuration at this time The first is a normal server - mail sent and received directly (of course you need MX records set up at your domain to receive mail, but telnet to the smtp port and you could try writing a mail from a remote box addressed to root) The second and third set an upstream server to use for sending all mail - you often may need this if your ISP does not allow you to send email directly (you often set it to mail.ISP.xxx) The fourth means it runs locally only and you cannot send or receive mail outside of that box I guess the first is the only real option for sending only. If that works for you then that should be fine, though make sure you set a return address so you can actually test bounces etc. Without an MX record nobody will be able to send mail to your box anyway Anton -- Anton Piatek email: an...@piatek.co.uk blog/photos:http://www.strangeparty.com pgp: [74B1FA37] (http://www.strangeparty.com/anton.asc) fingerprint: 7401 96D3 E037 2F8F 5965 A358 4046 71FD 74B1 FA37 No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
[ubuntu-uk] Email for LAMP setup
Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. Chris -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
It should be (fairly easily) possible to configure PHP to send via an existing SMTP server, so you don't have to worry about setting up a full MTA. Otherwise Postfix does a pretty good job, IIRC. Jonathon (apologies for TP, via Android Gmail) On 21 Jun 2010 22:47, Chris Rowson christopherrow...@gmail.com wrote: Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. Chris -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Email for LAMP setup
On 22 Jun 2010, at 00:19, Jonathon Fernyhough j.fernyho...@gmail.commailto:j.fernyho...@gmail.com wrote: It should be (fairly easily) possible to configure PHP to send via an existing SMTP server, so you don't have to worry about setting up a full MTA. Otherwise Postfix does a pretty good job, IIRC. Jonathon (apologies for TP, via Android Gmail) On 21 Jun 2010 22:47, Chris Rowson mailto:christopherrow...@gmail.comchristopherrow...@gmail.commailto:christopherrow...@gmail.com wrote: Hi folks, Just wondering what mail agent you're using on your LAMP setups? I've been revisiting the subject while setting up a new Lucid server and have been a little surprised that there's not much info out there about setting up a simple SMTP server that doesn't receive email but just sends it when PHP tries to use sendmail to send email. Chris -- mailto:ubuntu-uk@lists.ubuntu.comubuntu-uk@lists.ubuntu.commailto:ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-ukhttps://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/https://wiki.ubuntu.com/UKTeam/ ATT1..txt I use postfix configured as a satellite system, so all mail is handled by another machine - my companies mail server. The setup is pretty straight forward, install and configure postfix and forward all mail from root etc through the this. Php mail will then work using this default system. I have a complete setup notes, but they are at work and I can't get them until weds, if you can wait until then I can email them to you. Some of the php smtp settings are applicable to windows only, so check the php manual to save time trying to set things in php.ini that won't work on ubuntu - something I have done in the past. Ian -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/