Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
need help setting up sSmtp (Solved)
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
Tim_
n00b
n00b


Joined: 23 Jan 2006
Posts: 30

PostPosted: Fri Mar 03, 2006 2:26 am    Post subject: need help setting up sSmtp (Solved) Reply with quote

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 :oops:


Last edited by Tim_ on Fri Mar 03, 2006 3:01 am; edited 1 time in total
Back to top
View user's profile Send private message
indynet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2005
Posts: 108
Location: Prague - Czech Republic

PostPosted: Fri Mar 03, 2006 2:56 am    Post subject: Re: need help setting up sSmtp Reply with quote

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 :oops:


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
View user's profile Send private message
Tim_
n00b
n00b


Joined: 23 Jan 2006
Posts: 30

PostPosted: Fri Mar 03, 2006 3:01 am    Post subject: Reply with quote

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
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