ssmtp


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu ssmtp
# 1  
Old 08-22-2012
ssmtp

I installed sSMTP in ubuntu 12.04
This works goed but I have two problems and I don't
find a answer with google.
I don't find how to stop sSMTP so this server only
works when I want.
sudo etc//init.d/ssmtp stop doesn't work because
ssmtp isn't in init.d
When I start truecrypt than I always have a file
in my home "dead_letter" with information about truecrypt.

Last edited by thailand; 08-22-2012 at 03:15 AM..
# 2  
Old 08-22-2012
Quote:
Originally Posted by thailand
I installed sSMTP in ubuntu 12.04
This works goed but I have two problems and I don't
find a answer with google.
I don't find how to stop sSMTP so this server only
works when I want.
sudo etc//init.d/ssmtp stop doesn't work because
ssmtp isn't in init.d
When I start truecrypt than I always have a file
in my home "dead_letter" with information about truecrypt.
Without knowing the package in question, some general hints.

There must be some sort of start-script. Analyze this and find out what the process' name is (it doesn't have to be "ssmtp" at all). Maybe you find a stop-script in the process, by analyzing the packages contents, etc.. Use this. In case you find no such script/command:

First possibility: there are system-related mechanisms to start subsystems, like the system resource controller in AIX. I don't know of such a mchanism in Ubuntu, though.

Second possibility: the process maintains a PID file in /var/run. In this case use the content of the PID file to kill it and remove the file once it succeeds:

Code:
# kill -15 $(cat /var/run/<process>.pid)
...
# rm /var/run/<process>.pid

This is the most preferable way daemons should behave in case they don't rely on a system-specific way of doing it, like the above-mentioned.

Third possibility: using the process' name search the process list and kill it:

Code:
# ps -fe | grep <processname>
.....
# kill -15 <PID1> [<PID2> ....]

If kill -15 (SIGTERM) won't work (but only then!) replace it with kill -9 (SIGKILL).

I hope this helps.

bakunin
# 3  
Old 08-22-2012
Quote:
Originally Posted by thailand
I don't find how to stop sSMTP so this server only
works when I want.
sudo etc//init.d/ssmtp stop doesn't work because
ssmtp isn't in init.d
I do not use ssmtp, but from apt-cache show ssmtp I can read:
Quote:
A secure, effective and simple way of getting mail off a system to your
mail hub. It contains no suid-binaries or other dangerous things - no mail
spool to poke around in, and no daemons running in the background. Mail is
simply forwarded to the configured mailhost. Extremely easy configuration.
.
WARNING: the above is all it does; it does not receive mail, expand aliases
or manage a queue. That belongs on a mail hub with a system administrator.
--
Bye
# 4  
Old 08-22-2012
Quote:
Originally Posted by Lem
I do not use ssmtp, but from apt-cache show ssmtp I can read:
Oops. I wonder what thread-O/P wants to switch off, then??

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Ssmtp -t < /path/to/the/message.txt (How to format message.txt for html email)

ssmtp has been running well under Kubuntu 12.04.1 for plain text messages. I would like to send html messages with ssmtp -t < /path/to/the/message.txt, but I cannot seem to get the message.txt file properly formatted. I have tried various charsets, Content-Transfer-Encoding, rearranging the... (0 Replies)
Discussion started by: Ronald B
0 Replies

2. Red Hat

Problem setting up SSMTP with Office 365

Hi guys! Im trying to setup my box so it can send its emails through Office 365 SMTP. I spent 8 hours yesterday trying to configure sendmail to do this, but I gave up. Now Im trying to do it with SSMTP and I followed this guide to configure it How to install and configure sSMTP on CentOS /... (0 Replies)
Discussion started by: RedSpyder
0 Replies

3. Shell Programming and Scripting

[Fixed Itself!] Sending mail form script using sSMTP does not work

I have installed sSMTP and set it up to use my gmail. Sending from cli does work fine: msg file:From: test@gmail.com To test2@gmail.com Subject: test post This is a test Executing from console:ssmtp -t < msg does work fine. But from script it does not work:#!/bin/sh ssmtp -t < msg... (0 Replies)
Discussion started by: Jotne
0 Replies

4. Shell Programming and Scripting

Configuring ssmtp

Hi, I have trouble in configuring ssmtp for sending mail to gmail. I have configured the following way, plz suggest/correct me if i have done something wrong root=nagiostool@gmail.com mailhub=smtp.gmail.com:587 #RewriteDomain= # The full hostname Hostname=nagiosxi # Set this to... (1 Reply)
Discussion started by: nagios
1 Replies

5. Linux

ssmtp error : Cannot open <ip_address>:25

Hello, I am facing a problem with ssmtp mailing agent. I have installed and configured ssmtp in my RHEL5.3 system. I have written a shell script which sends mail to a couple of email id's. The script uses ssmtp to send mails. When I am running the scipt manually i.e. sh <script_name>.sh then... (3 Replies)
Discussion started by: senrooy
3 Replies
Login or Register to Ask a Question