install packages:
# yum install ssmtp logwatch
Edit /usr/share/logwatch/default.conf/logwatch:
MailTo = androus@gawab.com
Range = Yesterday
Detail = 10
Service = xxx
mailer = /usr/sbin/ssmtp -t
The available services are on /usr/share/logwatch/scripts/services
to config ssmtp you can check
Mail Forwarder Post
then:
# logwatch
and check your e-mail!
Posted in linux tips
I have been trying to set up ssmtp so I can send email using Gmail's ssmtp servers. However, when I try to send mail (using mailx), I get the following message:
Code:
Can't send mail: sendmail process failed
Here's the last line from dmesg (the only one applicable, according to the timestamps and message content):
I already have Ssmtp installed and working in a Centos 5.7 machine with Gmail configured.
I can send mails in th shell without problems.
Now i want to use the ssmtp to allow a web app (installed in the same machine) to send mails but for do this i have to find a way to ssmtp "hears" in the port 25 (or any other).
There is a way to do this?
I try to do this:
$ mail -s "Hello world" foo@example.com
This is a test from my server
EOT
…and get this:
/usr/sbin/ssmtp: No such file or directory
$ "/home/user//dead.letter" 9/248
. . . message not sent.
Which makes sense, because I uninstalled SSMTP in favor of Postfix. How do I change it so mail uses the right MTA?
I have recently set up an old box with Ubuntu 12.10 and LAMP running on it. I am using php as my cron jobs and would like to send an email as part of the scripts.
Hi
I read about mail in linux and I installed mailutils to send mail in command lines.
at first when I pressed ctrl+D to end the mail body, mail text ended. but the problem was that it didn't send mails at all. now moreover than that problem, even ctrl+D also does not work and after ctrl+D, I must use ctrl+C to end the mail.
Hi folks !!
I have an ubuntu Amazon EC2's instance and a godday domain.
When I try to send emails from ubuntu using the godaddy's smtp I get this error from /va/log/mail.err:
sSMTP[6871]:STARTTLS not working
sSMTP[6871]: Cannot open smtpout.secureserver.net:80
The /etc/ssmtp/ssmtp.conf configuration is
UseSTARTTLS=YES
root=noreplay@mydomain.com
mailhub=smtpout.secureserver.net:80
AuthUser=norep
I have an old message stuck somewhere. The recipient's address is invalid and the system keeps trying to re-send despite mail output queue being supposedly empty.
Every day
I get an error mail from the server, about an email that could not be sent.
The error mail is sent successfully by ssmtp.
The mail that failed to get delivered, is failed because it's sent by the cron service to:
andre@odin2 (no such email address exist)
Technical details of permanent failure:
DNS Error: Domain name not found
I've tried to force all CRON email to go to corr