LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 0
How to configure ssmtp


Hello,
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.


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

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

# Where will the mail seem to come from?
rewriteDomain=rewrite.com

# The full hostname
#hostname=ryy

# 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
FromLineOverride=YES
 
Old 05-29-2008, 08:20 AM   #2
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
ssmtp.conf

Well, I don't know about php, on http://www.w3schools.com/PHP/php_ref_mail.asp 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
mailhub=where.the.mail.goes.com #eg. stmp.someserver.com
hostname=what.goes.after.@.inyourmail #eg. domain.com
AuthUser=your.login.name #for the stmp account
AuthPass=your.password.for.it
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 08:58 AM.
 
  


Reply



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 06:21 PM
getmail and ssmtp - stumped courtontherun Linux - Software 0 09-17-2006 11:26 PM
SSMTP and mailhub iskrem Linux - Software 2 02-11-2006 09:45 AM
sSMTP and Mandrake steve_beebe Linux - Networking 0 08-25-2003 02:43 PM
mutt/ssmtp - no recipients supplied lea Linux - General 0 09-24-2002 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:27 PM.

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