Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssmtp seems so simple, but it's not
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
phillip
n00b
n00b


Joined: 16 Oct 2003
Posts: 3
Location: Los Angeles, CA

PostPosted: Thu Oct 16, 2003 5:49 pm    Post subject: ssmtp seems so simple, but it's not Reply with quote

What am I doing wrong? I just can't seem to figure out the configuration for ssmtp, there's no man page, and the forums here haven't helped much, because everyone seems to have a different situation from me.

Here is all I need from ssmtp:

Mail (from cron jobs, log alerts, etc.) needs to be sent through a mail hub to my email account. I need it to be:

From: root@machinename.domain.domain
To: (realInternetAccount@isp.com)

And it needs to go through a machine named "mailhost".

Why can I not seem to get these two tiny configuration files working? I either get dead.letter or I get root@_HOSTNAME_, or the From: address is my realInternetAccount@isp.com address instead of root@localmachine.domain.

What gives? They say sendmail is difficult, but I've never had any trouble, and at least it has a man page. Any simple answers out there? I've googled and searched these forums, but I just can't seem to find an answer for my situation.

Thanks in advance.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20609

PostPosted: Thu Oct 16, 2003 6:11 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Thu Oct 16, 2003 10:25 pm    Post subject: Reply with quote

Can you post your ssmtp.conf file? I just tried it using my ISPs mailserver as the mailhub and my personal domain as the hostname and it worked.
Back to top
View user's profile Send private message
phillip
n00b
n00b


Joined: 16 Oct 2003
Posts: 3
Location: Los Angeles, CA

PostPosted: Thu Oct 16, 2003 10:32 pm    Post subject: thanks for the reply Reply with quote

utl1 root # cat /etc/ssmtp/revaliases
root:unix@mysite.com:mailhost
---------------------
utl1 root # cat /etc/ssmtp/ssmtp.conf
root=postmaster
mailhub=mailhost
rewriteDomain=root@lax1evtutl1.prod.tmcs
hostname=lax1evtutl1.prod.tmcs
#FromLineOverride=YES
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Fri Oct 17, 2003 8:22 am    Post subject: Reply with quote

My /etc/ssmtp/revaliases file is blank. Have you tried to # out your entry? I setup everything else similar to your settings in ssmtp.conf and it worked.
Back to top
View user's profile Send private message
phillip
n00b
n00b


Joined: 16 Oct 2003
Posts: 3
Location: Los Angeles, CA

PostPosted: Fri Oct 17, 2003 8:40 am    Post subject: Reply with quote

devon wrote:
My /etc/ssmtp/revaliases file is blank. Have you tried to # out your entry? I setup everything else similar to your settings in ssmtp.conf and it worked.

Thanks! I commented out that line, then I changed my ssmtp.conf:
Code:

root=unix@oursite.com
mailhub=mailhost
rewriteDomain=utl1.evt.tmcs
hostname=utl1.evt.tmcs

It looks a little weird (comes to undisclosed-recipients) but it does get through. I guess I was trapped in sendmail aliases mentality.

Thank you!
Back to top
View user's profile Send private message
deepthought
Guru
Guru


Joined: 04 Apr 2003
Posts: 321
Location: icbm://5131''N:0710''E

PostPosted: Fri Oct 17, 2003 11:21 am    Post subject: Reply with quote

This is the reason I use postfix...

Regards,
Alexander
_________________
Out of loyalty to its disregarded comrades, this message feels free to ignore the reader.
Registered Linux User #317705
Back to top
View user's profile Send private message
happy
n00b
n00b


Joined: 15 Jan 2003
Posts: 21
Location: California

PostPosted: Tue Feb 17, 2004 11:49 pm    Post subject: I can't send from Thunderbird, what gives? Reply with quote

Okay I've just installed Gentoo, I've got fluxbox as my WM, I'm running Thunderbird as my MUA, and I have the following ssmtp.conf but I still can't seem to send a test message from my MUA? Can anybody help?

Code:
#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#

# The person who gets all mail for userids < 1000
root=postmaster

# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=mx1.trustworthy.net

# Example for SMTP port number 2525
# mailhub=mail.your.domain:2525
# Example for SMTP port number 25 (Standard/RFC)
# mailhub=mail.your.domain       
# Example for SSL encrypted connection
# mailhub=mail.your.domain:465

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

# The full hostname
hostname=family.trustworthy.net

# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
#FromLineOverride=YES

# Use SSL/TLS to send secure messages to server.
UseTLS=YES

# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES

# Use this RSA certificate.
#TLSCert=/etc/ssl/certs/ssmtp.pem


And here is the content of my hosts file:

Code:
cat /etc/hosts
127.0.0.1       localhost
192.168.0.2     mx1.trustworthy.net     mx1
192.168.0.3     family.trustworthy.net  family


The first thing I thought was maybe ssmtp wasn't running, but there doesn't seem to be any script in /etc/init.d to get it started.

Can anyone shed some light on this ???

Thanks!
_________________
For me, to pursue social justice is to liberate as many computers as possible from the tyranny of Microsoft.
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