Questions tagged [ssmtp]

Simple MTA to deliver mail through a mail relay.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

A script can send emails when I run it manually, but not when run by crontab

I've written a script that emails me some information using ssmtp from an Ubuntu server. It works fine when I run it as root, but it fails when it's run with root's crontab. I can see this error in ...
nadrad's user avatar
  • 1
1 vote
0 answers
70 views

Generating Message-ID for mails sent by crond

On my NixOS installation I have Vixie cron installed, that runs regular jobs. The output for the scripts that are run is sent by e-mail using a ssmtp on the same host, that forwards the mails to my ...
Matthias Wimmer's user avatar
0 votes
2 answers
939 views

ssmtp don't work and don't want to log

I've configured SSMTP to send mail, but the problem is that i can't send mail from my webserver and there is no logs in /var/log. Sometimes, i've got Sender mismatch in apache logs. My config : Debian ...
Matancy's user avatar
  • 105
1 vote
1 answer
287 views

Sending email with ssmtp From value issue

I am trying to send an email from my cron script using ssmtp, the email is working fine but the "From" value is always showing Ubuntu <ub[email protected]> which I don't want to use ...
A l w a y s S u n n y's user avatar
1 vote
1 answer
2k views

Using stunnel as proxy between SSL versions for SMTP with STARTTLS

I have a quite old software which doesn't support TLS 1.2. However SMTP Server only supports TLS 1.2. Now I wanted to use stunnel to connect to SMTP server and and also listening for smtp access. I ...
Hannes's user avatar
  • 307
1 vote
1 answer
2k views

mailx default FROM: address

I'm setting up email alert for unattended upgrades on ubuntu 18.04. It looks like unattended-upgrades cannot set the 'FROM' address and rely on mailx. On mailx I'm using SMTP so the from address must ...
Niro's user avatar
  • 1,421
2 votes
1 answer
2k views

ssmtp error on trying to send emails

I'm trying to send emails from command line because I need to create a shell script later to send an email. this is my configuration: # # Config file for sSMTP sendmail # # The person who gets all ...
Oscar Vazquez's user avatar
2 votes
0 answers
744 views

Possible to rewrite TO: field with ssmtp?

I'm trying to re-write the TO: header in sent emails with ssmtp. I've configured mail sent to root to be sent via ssmtp (by creating a symlink at /etc/sendmail). It is redirected to the /etc/aliases ...
brandeded's user avatar
  • 1,860
0 votes
0 answers
778 views

Sending mail with ssmtp over IPv4

Apparently DigitalOcean blocks outbound SMTP on IPv6. I can confirm this with telnet as follows: ⟫ telnet smtp.gmail.com 465 Trying 2607:f8b0:400d:c07::6c... > Waits for about 2 minutes ...
aioobe's user avatar
  • 371
2 votes
1 answer
5k views

mail issues "535 Authentication credentials invalid"

I'm trying to send mails from command line with my 1and1 credentials. But if the following configuration worked to send mails from my nexcloud server : send mode : smtp encryption : SSL/TLS from ...
vmonteco's user avatar
  • 119
0 votes
2 answers
1k views

Single SMTP server for multiple originating domains (using ssmtp)

Is it OK to use a single SMTP server mail.domain1.com for authenticated mail sending from multiple originating domains other than domain1.com using ssmtp? If yes, what happens with FROM, SENDER, and ...
steakoverflow's user avatar
3 votes
1 answer
1k views

postfix relay with opendkim

i'm using opendkim + postfix as a MTA for my website , everything is working: mail are signed by DKIM , gmail mark them as "pass" the issue is when i'm using this config as a relay from another vm ( ...
vandel's user avatar
  • 53
4 votes
3 answers
4k views

What characters are illegal in password in ssmtp.conf?

I'm running Ubuntu Server 16.04 with the ssmtp package for sendmail. I've read from a variety of places that you cannot use "special" characters in the password, and I've discovered it's true that I ...
Jeff Puckett's user avatar
1 vote
3 answers
3k views

smtp delivery banner - unable to send mails via outlook

I am unable to send and receive mails via Outlook. I keep getting the following error message from ssmtp. ssmtp: 550 5.3.4 554-554 5.2.0 STOREDRV.Deliver; delivery result banner Here is the content ...
user2402244's user avatar
0 votes
2 answers
12k views

sSMTP: Cannot open smtp server

This is not a duplicate, I'm aware of the other question and it didn't help me. Here's my ssmtp.conf: [email protected] rewriteDomain=mydomain.com hostname=myHostnameHere FromLineOverride=YES ...
ForceMagic's user avatar
2 votes
1 answer
12k views

ssmtp settings for namecheap: Invalid response SMTP Server (STARTTLS)

I am trying to configure ssmtp to use the namecheap smtp server to send emails. My current configuration: [email protected] mailhub=mail.privateemail.com:465 rewriteDomain=email.com hostname=email....
Sgoettschkes's user avatar
2 votes
2 answers
3k views

Fail2ban not respecting email settings

In Fail2ban I have set up my email settings as: # Destination email address used solely for the interpolations in # jail.{conf,local} configuration files. destemail = [email protected] # # Name of the ...
James's user avatar
  • 345
8 votes
3 answers
4k views

Logwatch is not respecting MailFrom

I've gone through today to setup Logwatch on my server and have installed this all successfully. I've followed this guide on Digital Ocean and set the MailFrom parameter to: MailFrom = mailer@...
James's user avatar
  • 345
3 votes
2 answers
3k views

ssmtp root alias doesn't work

my ssmtp doesn't change "To" from 'root' to my email. In my ssmtp.conf I have: [email protected] In debug output I found only one difference between working and not working commands: working ...
Vaclav Kasal's user avatar
0 votes
1 answer
2k views

smtp sending mail as "Charlie &"

I'm trying to use ssmtp to send mail from my jails to the mail hub in one of them. However, the from name isn't properly being renamed. The & isn't being replaced with root so I'm getting mails ...
basbebe's user avatar
  • 313
2 votes
0 answers
2k views

SSMTP disable root mail sending

I installed SSMTP to easily send emails from cli with GMail. There is a problem that all system messages from root ([email protected]) are sent with email to [email protected]. How I can disable this? ...
user66638's user avatar
  • 377
0 votes
1 answer
334 views

Issue with sending email notifications using sSMTP and nagios(closed)

I have been fighting with this virtual server for a week to get it to send emails from nagios using sSMTP. I finally today got it to be able to send emails from the telnet, and through the nagios core....
Cody's user avatar
  • 1
0 votes
1 answer
484 views

Sending mail from perl applications with SSMTP

I am on host-server with Centos 7 and KVM virtualization. I have 2 guest systems which are in routed virtual LAN. One of them is WEB server, the other is a mail server. Web server has hostname example....
tester3's user avatar
  • 165
0 votes
1 answer
2k views

Crontabs and SSMTP?

I'm trying to send an email through cron and ssmtp. I created a script with this #!/bin/bash printf "Subject:test\n\Test text" | ssmtp [email protected] The script works fine when run from the ...
axlrose's user avatar
9 votes
1 answer
28k views

Why would an SMTP client send a RSET (Reset) command?

I’m trying to understand how exactly an email is processed by Postfix – and some of the finer details of SMTP mail transactions. My short-term goal is to debug a proprietary (binary, closed source) ...
Anthony Geoghegan's user avatar
1 vote
1 answer
379 views

Relay Mail from an application to Gmail through ssmtp

i want make my linux server to receive mail from an host (LAN but if possible through Internet) and than relay to Gmail. I made the second part with ssmtp let the server send mail through Gmail using ...
smark91's user avatar
  • 106
0 votes
1 answer
788 views

Sending outgoing mail from multiple e-mail accounts (of different domains hosted on the same server) using sSMTP

I'm hosting multiple domains in my public html folder of an ubuntu-nginx vps server. And I currently have my 'ssmtp.conf' file set up successfully to send outgoing mail(contact, registration, ...
Aj334's user avatar
  • 1
0 votes
1 answer
445 views

Unable to send external email via crontab

I'm trying to send email out from crontab. I've tried making crontab run a basic shell script, as well as specifying the actual command within the crontab. I've tried doing this with mpack and ssmtp . ...
Vince's user avatar
  • 1
70 votes
7 answers
279k views

how to fix "send-mail: Authorization failed 534 5.7.14 "

I am trying to create e-mail alert on ssh root login so I had to install ssmtp and mail utility. Then I configured ssmtp.conf file as follows : # Config file for sSMTP sendmail # The person who gets ...
Connect's user avatar
  • 811
5 votes
1 answer
7k views

ssmtp won't send cron email

I can't figure out why cron on my AWS EC2 (Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic x86_64)) can't seem to send email out via sSmtp to AWS SES. This works: echo "test" | ssmtp [email protected] ...
Roger Gilbrat's user avatar
3 votes
0 answers
843 views

global alias on sSMTP revaliases file

To send mail with sSMTP you have to add aliases for each user on /etc/ssmtp/revaliases My issue: User "user1" tries to send mail with ssmtp user1 don't have an entry in revaliases file ssmtp ...
user2925649's user avatar
4 votes
1 answer
2k views

Xenserver 6.2 cannot send alert using gmail smtp

I'm using Xenserver 6.2 and configured ssmtp.conf an mail_alert.conf in order to receive alerts through email. I followed the instructions on http://support.citrix.com/servlet/KbServlet/download/34969-...
Mert Gülsoy's user avatar
0 votes
3 answers
23k views

linux ssmtp error Cannot open smtp.gmail.com:587

I can not route may emails vie gmail.com. I use ssmtp facility. My config files in /etc/ssmtp are root:[email protected]:smtp.gmail.com:587 maciek:[email protected]:smtp.gmail.com:587 and ssmtp.conf: ...
mackowiakp's user avatar
3 votes
1 answer
3k views

nagios: trouble using check_smtps command

I'm trying to use this command to check on port 587 for my postfix server. Using nmap -P0 mail.server.com I see this: Starting Nmap 5.51 ( http://nmap.org ) at 2013-11-04 05:01 PST Nmap scan report ...
ethrbunny's user avatar
  • 2,369
0 votes
1 answer
526 views

SSMTP and .forward

I configured the SSMTP in a ubuntu server 13.04. Configured the root user email address. Everything works correctly. But, now I want to configure the "~/.forward" to send all emails to another ...
Beto Neto's user avatar
  • 595
1 vote
0 answers
721 views

Using SSMTP with PHPMailer

I'm not sure if this need to be posted here or on StackOverflow because I'm not sure if the problem is with PHPMailer or SSMTP. I'm having some trouble sending emails using PHPMailer and SSMTP. I ...
Jonathan Pellerin's user avatar
1 vote
2 answers
3k views

mail command does not return

On Ubuntu 13.04 I have been trying to send emails from the command line but the mail command will not return. I am running these from inside a putty terminal: sudo apt-get install mailutils sudo apt-...
Nash0's user avatar
  • 111
-5 votes
1 answer
5k views

Simple Linux SMTP Server [closed]

I need to provide 3 SMTP servers for clients to use for printers and scanners that require an SMTP server to send email out, they will be load balanced with DNS round robin. All I need it to do is ...
Riley's user avatar
  • 103
0 votes
1 answer
910 views

Send mail with ssmtp without creating a file

I am able to send an email using ssmtp using the following command line : ssmtp [email protected] < ./textfile.txt ...but I want to send a message from a cron task, and on the fly, without creating ...
Josef van Niekerk's user avatar
1 vote
1 answer
1k views

Send email from Debian Sqeeze via Microsoft Exchange

I am currently in the final stages of building a website which is going to use PHP to send out emails. The domain for the company the site is for, is already using the domain's MX record to point to ...
danbroooks's user avatar
4 votes
2 answers
4k views

Forcing email address cron is sent FROM [duplicate]

I'm running Ubuntu on AWS and am using their SES (Simple Email Service) and sSmtp to email logs since that is the only need for email on the server. I have ssmtp sent up and everything works, except ...
Roger Gilbrat's user avatar
2 votes
1 answer
2k views

Error from logwatch while sending mail with ssmtp to SES

I'm running a server on AWS (ubuntu) and I need outgoing email to be able to email log files. To do this I'm using ssmtp and amazon's SES (Simple Email Service). I have the email addresses verified ...
Roger Gilbrat's user avatar
1 vote
2 answers
5k views

linux, change "email from" address for user

I have ssmtp installed in order to use the company server to send emails from the machine. The problem is that the server is outlook and the emails have the "reply to" set to the user name: "root". ...
cristi's user avatar
  • 573
0 votes
1 answer
640 views

Ubuntu 12.10 Sendmail cannot connect ip:25

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. I have set up sSMTP / Sendmail ...
AzzerB's user avatar
  • 101
2 votes
1 answer
2k views

sSMTP rewritting From field in emails

My problem is that whenever my server sends emails, the sender field gets overwritten. From: should be: Web Site Name <[email protected]> But email is delivered to the address from: World ...
Scott's user avatar
  • 153
1 vote
1 answer
816 views

Centos 5.xx Nagios sSMTP mail cannot be sent from nagios server, but works great from console

I spent last 3 hours of reasearch on how to get nagios to work with email notifications, i need to send emails form work where the only accesible smtp server is the company's one. i managed to get it ...
adam's user avatar
  • 11
3 votes
1 answer
2k views

Prevent [email protected] bounces with sSMTP

Refrased question I have a VPS that only needs to send e-mail, so I don't have a pop3/imap deamon running like courier or dovecot. I have multiple domains that all have mailboxes hosted elsewhere, f....
Björn's user avatar
  • 131
1 vote
1 answer
7k views

sSMTP on Ubuntu: "ssmtp: Cannot open smtp.gmail.com:587"

I have configured sSMTP on Ubuntu and it worked fine yesterday. But today when I am trying to send email it shows "ssmtp: Cannot open smtp.gmail.com:587" error message. $ apt-get install ssmtp $ ...
Jerry's user avatar
  • 179
1 vote
0 answers
2k views

How to configure SSMTP to use the hostname from the host instead of hardcoding it in ssmtp.conf?

I want to deploy the ssmtp config to multiple machines and not have to hardcode the hostname to /etc/ssmtp/ssmtp.conf How can I do this?
sorin's user avatar
  • 8,036
3 votes
2 answers
13k views

sSMTP Unable to send message using external mail server SMTP

I'm trying to finish up my Nagios install by having it email me. It was emailing me using /bin/mail so it always got sent to my spam folders. I installed sSMTP to try to send a request to my work's ...
OrangeGrover's user avatar