# err sSMTP

**URL:** <https://community.f5.com/t/err-ssmtp/18213>\
**Category:** Technical Forums\
**Tags:** big-ip, application-delivery\
**Created:** [August 21, 2016, 12:14pm UTC](https://community.f5.com/t/err-ssmtp/18213 "2016-08-21T12:14:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Demeter\_Luo\_168](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@Demeter\_Luo\_168](https://community.f5.com/u/Demeter_Luo_168)\
**Post date:** [August 21, 2016, 12:14pm UTC](https://community.f5.com/t/err-ssmtp/18213/1 "2016-08-21T12:14:05Z")

</div>

Hi friends,

err sSMTP:Unable to locate mail

err sSMTP:Cannot open mail:25

there are massive err sSMTP log on bigip,who can tell me what do these err logs mean?why generate these err logs?and how to estimate these err los?

i am sure that there is no email alert configurated.

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [August 21, 2016, 6:57pm UTC](https://community.f5.com/t/err-ssmtp/18213/2 "2016-08-21T18:57:42Z")

</div>

which log file is that exactly?

what is the exact log entry?

which modules are you using?

which version?

---

<div class="post-metadata">

**Author:** ![IanB](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@IanB](https://community.f5.com/u/IanB)\
**Post date:** [September 6, 2016, 11:00am UTC](https://community.f5.com/t/err-ssmtp/18213/3 "2016-09-06T11:00:54Z")

</div>

Something is trying to send mail, and by default ssmtp (simple smtp) does this by trying to connect to “mail” (through DNS resolution) on port 25 (defined in /etc/ssmtp/ssmtp.conf as ‘mailhub’)

From version 11.5.0 and later, this file is not directly editable, and must be modified using tmsh commands.

Refer to [SOL13180](https://support.f5.com/kb/en-us/solutions/public/13000/100/sol13180.html) for information about how to configure that.

If that doesn’t solve or explain your problem, I recommend opening a support ticket so that F5 can take a look at your configuration.

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [September 11, 2016, 3:02pm UTC](https://community.f5.com/t/err-ssmtp/18213/4 "2016-09-11T15:02:00Z")

</div>

i noticed i have these also, can’t remember i had them with version 11.5.4, but with 12.1.1 i certainly do:

```tcl
Sep 11 16:00:01 bigip-01 err sSMTP[2451]: Unable to locate mail
Sep 11 16:00:01 bigip-01 err sSMTP[2451]: Cannot open mail:25
Sep 11 16:05:01 bigip-01 err sSMTP[3056]: Unable to locate mail
Sep 11 16:05:01 bigip-01 err sSMTP[3056]: Cannot open mail:25
Sep 11 16:10:02 bigip-01 err sSMTP[3328]: Unable to locate mail
Sep 11 16:10:02 bigip-01 err sSMTP[3328]: Cannot open mail:25

```

can’t really remember i ever configured email for something, anyone have a clue where to start looking?

---

<div class="post-metadata">

**Author:** ![IanB](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@IanB](https://community.f5.com/u/IanB)\
**Post date:** [September 12, 2016, 3:04am UTC](https://community.f5.com/t/err-ssmtp/18213/5 "2016-09-12T03:04:25Z")

</div>

It looks like we made some changes in 12.0.0 which result in some scripts that cron runs generating output, and this output by default gets sent to root, which is aliased to postmaster, which is delivered to the value of mailhub (default is ‘mail’).

I’m currently seeing this on a 12.1.1 system in my lab. Let me look into which scripts are doing it, and see what can be done to suppress the messages.

---

<div class="post-metadata">

**Author:** ![WK\_98444](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@WK\_98444](https://community.f5.com/u/WK_98444)\
**Post date:** [October 20, 2016, 9:06pm UTC](https://community.f5.com/t/err-ssmtp/18213/6 "2016-10-20T21:06:34Z")

</div>

After working with F5 Support, [SOL13180](https://support.f5.com/kb/en-us/solutions/public/13000/100/sol13180.html) worked for us. We are running 12.1.0 HF1.

Log into the F5 CLI and run the commands:

tmsh

modify /sys outbound-smtp mailhub [mail\_server]:[port]

save /sys config

quit

Now test:

echo “ssmtp test mail” | mail -vs “Test email for SOL13180” [your\_email\_address]

Interestingly, this change resulted in our F5s sending non-deliverable emails to our SMTP server. We had to implement the workaround indicated in BUG ID 467589 of the [11.5.2 release notes](https://support.f5.com/kb/en-us/products/big-ip_ltm/releasenotes/product/relnote-ltm-11-5-2.html).

Again, from the F5 CLI:

Remount the /usr partition as read-write:

mount -o remount -rw /usr

Edit the /usr/share/mysql/purge\_mysql\_logs.pl file and change this original line (line 27):

unless( $provisioned\_am || $provisioned\_asm || $provisioned\_psm ) {

to this:

unless( ​​$provisioned\_am == 1 || $provisioned\_asm == 1 || $provisioned\_psm == 1 ) {

Save the file, and remount /usr as read-only:

mount -o remount -r /usr

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [November 22, 2016, 11:28am UTC](https://community.f5.com/t/err-ssmtp/18213/7 "2016-11-22T11:28:54Z")

</div>

I tried the second part of the work around (needed to change line 19 and not 27) on my test box (12.1.0 HF1) and it had no effect. still getting the messages.

for a customer environment I opened a case and will report back with results.

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [November 24, 2016, 6:51am UTC](https://community.f5.com/t/err-ssmtp/18213/8 "2016-11-24T06:51:07Z")

</div>

Ok, my information based on the support ticket. there is one issue that currently if the big-ip wants to send mail and no mail server is configured it uses the default “mail” hostname. there is a bug ID564522 without a fix currently.

of course it doesn’t send these emails by accident, if these happen regularly (every minute, 5 minutes, hour) there must be something wrong in the automatically triggered scripts (usually by the cron daemon). the one for my test system i haven’t found but for another system is was the issue described here:

> **[DevCentral - An F5 Technical Community](https://community.f5.com/)**
>
> DevCentral is an online technical community where engineers and practitioners collaborate, share knowledge, and solve problems related to F5 technologies and industry trends.

that is for bug ID ID578036

for me what modifying /etc/cron.usbflush was not enough, also had to change the root crontab itself. please be careful with workarounds like this if you are not that familiar with linux.
