Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-16-2008, 05:08 PM   #1
LQ Newbie
Registered: May 2008
Posts: 1

Rep: Reputation: 0
How to configure ssmtp

I just installed ssmtp on my laptop which is running ubuntu. I would like to configure it in such a way that it would allow me to send out mails using the php mail() function. I just want to build my web page on my computer before uploading it to a server. So, I just need to send mail I don't need to receive them.

I understand that I need to cofigure the /etc/ssmtp/ssmtp.conf file.
But exactly do I do I have to do with it. Many thanks in advance.

# Config file for sSMTP sendmail
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named

# Where will the mail seem to come from?

# The full hostname

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
Old 05-29-2008, 09:20 AM   #2
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33

Well, I don't know about php, on says it just needs a working mail system, so if you need to know only how to write the ssmtp.conf file, then I can help you with that. ssmtp will allow you to send mail directly from your computer through an external smtp server.
A working ssmtp.conf file:

root=postmaster #you probably won't need to change it #eg.
hostname=what.goes.after.@.inyourmail #eg. #for the stmp account
AuthMethod=LOGIN # or CRAM-MD5

(ssmtp supports only these two authentication methods, check more at the manuals)

Last edited by rikijpn; 05-29-2008 at 09:58 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssmtp problem karlochacon Debian 4 12-02-2008 07:21 PM
getmail and ssmtp - stumped courtontherun Linux - Software 0 09-18-2006 12:26 AM
SSMTP and mailhub iskrem Linux - Software 2 02-11-2006 10:45 AM
sSMTP and Mandrake steve_beebe Linux - Networking 0 08-25-2003 03:43 PM
mutt/ssmtp - no recipients supplied lea Linux - General 0 09-24-2002 07:45 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration