# How to install SSMTP app from downloaded .pkg

**URL:** <https://forums.suse.com/t/how-to-install-ssmtp-app-from-downloaded-pkg/25223>\
**Category:** SLES Configure-Administer\
**Created:** [March 6, 2014, 2:52pm UTC](https://forums.suse.com/t/how-to-install-ssmtp-app-from-downloaded-pkg/25223 "2014-03-06T14:52:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gniecka](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gniecka](https://forums.suse.com/u/gniecka)\
**Post date:** [March 6, 2014, 2:52pm UTC](https://forums.suse.com/t/how-to-install-ssmtp-app-from-downloaded-pkg/25223/1 "2014-03-06T14:52:53Z")

</div>

Dear All,

I want to run SSMTP server on my SUSE 11 SP2.

I have downloaded package from official repository  
ssmtp-2.64-5-x86\_64.pkg.tar

and I have this .tar file in folder onto my SUSE now.

How to install this SMTP server from this package from cmd line as root?

Regards  
GN

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [March 6, 2014, 4:01pm UTC](https://forums.suse.com/t/how-to-install-ssmtp-app-from-downloaded-pkg/25223/2 "2014-03-06T16:01:14Z")

</div>

On 06/03/2014 12:54, gniecka wrote:  
[color=blue]

> I want to run SSMTP server on my SUSE 11 SP2.[/color]

Since you’ve posted in a SLES forum by “SUSE 11 SP2” do you mean SLES11  
SP2? Please post the output from “cat /etc/\*release”.  
[color=blue]

> I have downloaded package from official repository[/color]

Which official repository? Please post URL.  
[color=blue]

> ssmtp-2.64-5-x86\_64.pkg.tar
> 
> and I have this .tar file in folder onto my SUSE now.
> 
> How to install this SMTP server from this package from cmd line as  
> root?[/color]

..pkg files are normally associated with (Mac) OS X but they could apply  
to some variants of Linux too (but with a different file format).

Perhaps if you could let us know what you’re trying to achieve we can  
advise on the best way of getting there. I’m guessing (with the help of  
Google) that SSMTP is either a Simple or Secure SMTP server?

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![gniecka](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gniecka](https://forums.suse.com/u/gniecka)\
**Post date:** [March 6, 2014, 4:27pm UTC](https://forums.suse.com/t/how-to-install-ssmtp-app-from-downloaded-pkg/25223/3 "2014-03-06T16:27:18Z")

</div>

Dear Simon,

Yes, I’ mean SLES11 SP2 for SAP Applications.

All I want to do is to send email notification after one of my cron job (backup script) is finished.  
I though that can be done by installing, configuring and running Simple SMTP server, smth like:  
[http://www.nixtutor.com/linux/send-mail-with-gmail-and-ssmtp/](http://www.nixtutor.com/linux/send-mail-with-gmail-and-ssmtp/)

While my evaluation period for SLES11 is expired (no working repos on my SLES) I have to do this “by hand” manually.

Cheers  
GN

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [March 6, 2014, 5:43pm UTC](https://forums.suse.com/t/how-to-install-ssmtp-app-from-downloaded-pkg/25223/4 "2014-03-06T17:43:59Z")

</div>

On 06/03/2014 14:34, gniecka wrote:  
[color=blue]

> Yes, I’ mean SLES11 SP2 for SAP Applications.[/color]

Okay (and note there is a dedicated forum for SLES for SAP  
Applications[1] but your question is fine here as relates to SLES more  
generally).  
[color=blue]

> All I want to do is to send email notification after one of my cron job  
> (backup script) is finished.  
> I though that can be done by installing, configuring and running Simple  
> SMTP server, smth like:  
> [http://www.nixtutor.com/linux/send-mail-with-gmail-and-ssmtp/](http://www.nixtutor.com/linux/send-mail-with-gmail-and-ssmtp/)
> 
> While my evaluation period for SLES11 is expired (no working repos on my  
> SLES) I have to do this “by hand” manually.[/color]

Ah nothing so complicated as your original post suggested.

I’m not familiar with SLES for SAP Applications but I suspect you’ll  
find that you already have a package called postfix installed which can  
handle this. What does “rpm -q postfix” output?

If it produces “postfix-” then you have postfix already  
installed. If not you should be able to install it via “zypper in postfix”.

If/once installed you should edit /etc/postfix/main.cf and set relayhost  
= [\<DNS\_name\_or\_IP\_address\_of\_your\_SMTP\_host\>] like

relayhost = [[mail.example.com](http://mail.example.com)]

then run “rcpostfix restart” to restart the Postfix process to put that  
change into effect.

Next edit /etc/aliases and set/add an alias for root:  
\<your\_email\_address\> like

root: [email@example.com](mailto:email@example.com)

before running “newaliases” for that last change to take effect.

Now when cron runs it should email the root user which then gets  
redirected to your email address via Postfix.

HTH.

## [1] [https://forums.suse.com/forumdisplay.php?41-SLES-SAP-Applications](https://forums.suse.com/forumdisplay.php?41-SLES-SAP-Applications)

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![gniecka](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gniecka](https://forums.suse.com/u/gniecka)\
**Post date:** [March 7, 2014, 12:14pm UTC](https://forums.suse.com/t/how-to-install-ssmtp-app-from-downloaded-pkg/25223/5 "2014-03-07T12:14:41Z")

</div>

[QUOTE=smflood;19719]On 06/03/2014 14:34, gniecka wrote:  
If it produces “postfix-” then you have postfix already  
installed. If not you should be able to install it via “zypper in postfix”.  
[/QUOTE]

I have postfix by defaul onto my SUSE.

Simon, thank You for your support!
