Page 1 of 1

Does phpBB include its own MTA?

Posted: Tue Sep 20, 2011 8:30 pm
by RigNalScIn
To the best of my knowledge, my server does not have any MTA installed to it, yet phpBB is able to send mail.

So..... - Where is the magic stored?

Thanx!

Re: Does phpBB include its own MTA?

Posted: Tue Sep 20, 2011 8:44 pm
by Erik Frèrejean
PHP has some mailing functions build in which are utilised by phpBB

Re: Does phpBB include its own MTA?

Posted: Wed Sep 21, 2011 12:18 pm
by RigNalScIn
Zend?

Re: Does phpBB include its own MTA?

Posted: Wed Sep 21, 2011 12:39 pm
by stevemaury
Sendmail

Re: Does phpBB include its own MTA?

Posted: Wed Sep 21, 2011 1:55 pm
by RigNalScIn
Sendmail is what I would've figured too except this is on a vanilla Ubuntu (Dapper server) install with no MTA (including sendmail, pear or postfix) added.

Is sendmail somehow bundled into PHP with a different name perhaps?

Sitting at the root prompt in /, issuing find -name 'sendmail' returns no results..

Sorry, this is more a curiosity to me than an actual support issue, phpBB is purring like the sleek, sexy kitten is is. I just have an (external) dev that is pushing me to install an MTA (sendmail) so she can mail form results and I'm telling her to get bent because the phpBB install I put on is sending mail just fine. :P

She's figured out I need to edit php.ini to point it to sendmail but... sendmail 'aint on the server and with it being Dapper (and out of the loop on repository updates) I'm definitely not adding anything more to it.

I'd love to be able to tell her how to code her script. Or at least point the way for her but.. well, I'm a little perplexed too since I haven't been able figure out how phpBB is doing it either. At least, not yet.

Doesn't help that I haven't really had my hands in this box since putting it out there 5 yrs ago or so but phpinfo does tell me that it has Zend extensions installed.

So...... - I'm guessing thats what phpBB is using since no other MTA is installed?

Re: Does phpBB include its own MTA?

Posted: Wed Sep 21, 2011 1:58 pm
by Brf
phpBB does not have any sort of mail agent. It uses the simple SMTP mail function built into PHP.

http://us2.php.net/manual/en/function.mail.php

Re: Does phpBB include its own MTA?

Posted: Wed Sep 21, 2011 3:49 pm
by RigNalScIn
Got it.. - Thanks guys! :D

Re: Does phpBB include its own MTA?

Posted: Wed Sep 21, 2011 3:55 pm
by soumik
Maybe an MTA was installed as a dependency for some package. Export a list of all packages installed and see if you have sendmail/postfix/exim4 installed.

Code: Select all

dpkg --get-selections | egrep 'sendmail|postfix|exim'

Re: Does phpBB include its own MTA?

Posted: Wed Sep 21, 2011 4:35 pm
by RigNalScIn
soumik wrote:Maybe an MTA was installed as a dependency for some package. Export a list of all packages installed and see if you have sendmail/postfix/exim4 installed.

Code: Select all

dpkg --get-selections | egrep 'sendmail|postfix|exim'
Yep, still nada. I kept that puppy just as lean as possible, being a one man band and with management wanting to move away from Novell to Microsoft.... <sigh>

I set the internal SMTP in my php.ini - Going to guess my dev will have no issues at this point. From Brf's link, I see that those ini settings can be passed at the command so I'm guessing thats what phpBB has been doing, just that I wasn't patient enough to rout them out of the .php files before asking here.

Again, thanks for saving me time and sleep, guys. - Knowing I won't have to add any extra packages to the new machine and still keep the dev happy (and from trying to do an end-around on me w/ management) is a great comfort! :mrgreen:

Re: Does phpBB include its own MTA?

Posted: Thu Sep 22, 2011 3:49 am
by Lumpy Burgertushie
(and from trying to do an end-around on me w/ management) is a great comfort! :mrgreen:
ah, the silly childishness of corporate life. don't miss it a bit.


robert