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

Joined: 16 Oct 2003 Posts: 3 Location: Los Angeles, CA
|
Posted: Thu Oct 16, 2003 5:49 pm Post subject: ssmtp seems so simple, but it's not |
|
|
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 |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 20609
|
Posted: Thu Oct 16, 2003 6:11 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
 |
devon l33t

Joined: 23 Jun 2003 Posts: 943
|
Posted: Thu Oct 16, 2003 10:25 pm Post subject: |
|
|
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 |
|
 |
phillip n00b

Joined: 16 Oct 2003 Posts: 3 Location: Los Angeles, CA
|
Posted: Thu Oct 16, 2003 10:32 pm Post subject: thanks for the reply |
|
|
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 |
|
 |
devon l33t

Joined: 23 Jun 2003 Posts: 943
|
Posted: Fri Oct 17, 2003 8:22 am Post subject: |
|
|
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 |
|
 |
phillip n00b

Joined: 16 Oct 2003 Posts: 3 Location: Los Angeles, CA
|
Posted: Fri Oct 17, 2003 8:40 am Post subject: |
|
|
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 |
|
 |
deepthought Guru


Joined: 04 Apr 2003 Posts: 321 Location: icbm://5131''N:0710''E
|
Posted: Fri Oct 17, 2003 11:21 am Post subject: |
|
|
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 |
|
 |
happy n00b


Joined: 15 Jan 2003 Posts: 21 Location: California
|
Posted: Tue Feb 17, 2004 11:49 pm Post subject: I can't send from Thunderbird, what gives? |
|
|
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 |
|
 |
|