View previous topic :: View next topic |
Author |
Message |
Tim_ n00b

Joined: 23 Jan 2006 Posts: 30
|
Posted: Fri Mar 03, 2006 2:26 am Post subject: need help setting up sSmtp (Solved) |
|
|
As the subject say i need help setting up sSmtp it get an error everytime i try to use it.
Code: | localhost tim # mail -s "testing ssmtp" timsbills@midsouth.rr.com
test
Cc:
send-mail: 501 5.0.0 Invalid domain name (thardy01@midsouth.rr.com)
Can't send mail: sendmail process failed with error code 1
|
This is the contents of my /etc/ssmtp/ssmtp.conf
Code: |
cat /etc/ssmtp.conf
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
root=thardy01@midsouth.rr.com #actual root email address
mailhub=smtp-server.midsouth.rr.com #actual isp mail server
rewriteDomain=smtp-server.midsouth.rr.com
hostname=thardy01@midsouth.rr.com
FromLineOverride=YES
|
Would somebody please tell me whats wrong or give me an ideal where to look evidently im not using the right terms in google to find the answer 
Last edited by Tim_ on Fri Mar 03, 2006 3:01 am; edited 1 time in total |
|
Back to top |
|
 |
indynet Tux's lil' helper


Joined: 07 Feb 2005 Posts: 108 Location: Prague - Czech Republic
|
Posted: Fri Mar 03, 2006 2:56 am Post subject: Re: need help setting up sSmtp |
|
|
Tim_ wrote: | As the subject say i need help setting up sSmtp it get an error everytime i try to use it.
Code: | localhost tim # mail -s "testing ssmtp" timsbills@midsouth.rr.com
test
Cc:
send-mail: 501 5.0.0 Invalid domain name (thardy01@midsouth.rr.com)
Can't send mail: sendmail process failed with error code 1
|
This is the contents of my /etc/ssmtp/ssmtp.conf
Code: |
cat /etc/ssmtp.conf
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
root=thardy01@midsouth.rr.com #actual root email address
mailhub=smtp-server.midsouth.rr.com #actual isp mail server
rewriteDomain=smtp-server.midsouth.rr.com
hostname=thardy01@midsouth.rr.com
FromLineOverride=YES
|
Would somebody please tell me whats wrong or give me an ideal where to look evidently im not using the right terms in google to find the answer  |
You have mistake in hostname=$hostname.$domain so hostname look like gentoo.midsouth.rr.com (example) I have no real experince with ssmtp but problem will be with hostname. Error code say it too. |
|
Back to top |
|
 |
Tim_ n00b

Joined: 23 Jan 2006 Posts: 30
|
Posted: Fri Mar 03, 2006 3:01 am Post subject: |
|
|
you are correct although i was following .....err i thought i was following a guide on how to set it up correctly anyhows i just commented the line out altogether and it works correctly now. Thanks for your help. |
|
Back to top |
|
 |
|