Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Simple Sendmail Binary for PHP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
freemarklar
n00b
n00b


Joined: 02 Nov 2007
Posts: 9

PostPosted: Fri Nov 02, 2007 3:33 am    Post subject: [SOLVED] Simple Sendmail Binary for PHP Reply with quote

Can anyone suggest a solution with the lowest overhead for offering PHP a working sendmail binary?

The only thing mail-related I will ever do on my server is send email with the PHP mail() function. So I don't want or need a mail daemon with a hundred package dependencies.

Thanks,
fm


Last edited by freemarklar on Mon Dec 10, 2007 6:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Guybrush
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2003
Posts: 99
Location: 48°27'N, 11°8'O

PostPosted: Fri Nov 02, 2007 8:04 am    Post subject: Reply with quote

Hi,

I suppose you try ssmtp. It's only purpose is to act as a local mailhub to your mailserver.
Back to top
View user's profile Send private message
freemarklar
n00b
n00b


Joined: 02 Nov 2007
Posts: 9

PostPosted: Fri Nov 02, 2007 7:26 pm    Post subject: Reply with quote

Guybrush wrote:
Hi,

I suppose you try ssmtp. It's only purpose is to act as a local mailhub to your mailserver.


That would require me to have my own mail server somewhere though right? Or I could use something like Gmail, but would that mean that all emails would have the Gmail address in the "From:" header rather than the address I specify in PHP mail()?

fm
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Sat Nov 03, 2007 6:43 pm    Post subject: Reply with quote

Most ISPs allow you to (in fact, when you're using the default smtp port, many require you to) relay mail through their server, generally something like smtp.isp.com or mail.isp.com, provided you authenticate using your assigned username and password.

Gmail won't modify the From: header if your gmail account is configured to allow sending mail from that address; it will, however, add a Sender header containing your gmail address.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
freemarklar
n00b
n00b


Joined: 02 Nov 2007
Posts: 9

PostPosted: Wed Nov 07, 2007 10:45 pm    Post subject: Reply with quote

tarpman wrote:
Most ISPs allow you to (in fact, when you're using the default smtp port, many require you to) relay mail through their server, generally something like smtp.isp.com or mail.isp.com, provided you authenticate using your assigned username and password.

Gmail won't modify the From: header if your gmail account is configured to allow sending mail from that address; it will, however, add a Sender header containing your gmail address.


Thanks. I'll tryout ssmtp in the next week or two and look at the overhead.

I'll post my results here afterward.

--
fm
Back to top
View user's profile Send private message
freemarklar
n00b
n00b


Joined: 02 Nov 2007
Posts: 9

PostPosted: Mon Dec 10, 2007 6:29 pm    Post subject: [SOLVED] Simple Sendmail Binary for PHP Reply with quote

I've set this up on a couple servers now using gmail as the service provider. This appears to be an excellent way to avoid the overhead of running sendmail or postfix.

--
fm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum