Systemd email not working (can't find ssmtp.conf) [solved]

I set up systemd to send email when a unit fails, as described here: https://wiki.archlinux.org/index.php/Sy … ers#MAILTO
But when I run:
systemctl status [email protected]
I get the error:
[email protected] - status email for dbus to user1
Loaded: loaded (/etc/systemd/system/[email protected]; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2015-06-14 10:19:36 MDT; 20min ago
Process: 31229 ExecStart=/usr/local/bin/systemd-email [email protected] %i (code=exited, status=1/FAILURE)
Main PID: 31229 (code=exited, status=1/FAILURE)
Jun 14 10:19:36 sindhu systemd[1]: Starting status email for dbus to user1...
Jun 14 10:19:36 sindhu sSMTP[31230]: /etc/ssmtp/ssmtp.conf not found
Jun 14 10:19:36 sindhu sSMTP[31230]: Unable to locate mailhub
Jun 14 10:19:36 sindhu systemd-email[31229]: sendmail: Cannot open mailhub:25
Jun 14 10:19:36 sindhu systemd[1]: [email protected]: main pro...RE
Jun 14 10:19:36 sindhu systemd[1]: Failed to start status email for dbus to ...1.
Jun 14 10:19:36 sindhu systemd[1]: Unit [email protected] ente...1.
Jun 14 10:19:36 sindhu systemd[1]: [email protected] failed.
Hint: Some lines were ellipsized, use -l to show in full.
/etc/ssmtp/ssmtp.conf is in fact present, and configured as suggested in the Arch wiki.
If I run something like:
echo -e "To: [email protected]\nFrom: [email protected]\nSubject: Hello Notification\n\n Hello, this is a test"|ssmtp [email protected]
I receive email as expected.
Last edited by emacsomancer (Yesterday 00:49:17)

I made a test:  I ran a "status" - "start" - "status" sequence, then rebooted and ran a "start" - "status" sequence. Both times successful, no errors reported. Here are the logs from my virtual box, where I made those experiments as user "wm".
The status+start+status log
cze 22 00:41:33 arch login[306]: LOGIN ON tty1 BY wm
cze 22 00:42:34 arch sudo[376]: wm : TTY=tty1 ; PWD=/home/wm ; USER=root ; COMMAND=/usr/bin/systemctl status [email protected]
cze 22 00:42:34 arch sudo[376]: pam_unix(sudo:session): session opened for user root by wm(uid=0)
cze 22 00:42:38 arch sudo[376]: pam_unix(sudo:session): session closed for user root
cze 22 00:43:34 arch sudo[382]: wm : TTY=tty1 ; PWD=/home/wm ; USER=root ; COMMAND=/usr/bin/systemctl start [email protected]
cze 22 00:43:34 arch sudo[382]: pam_unix(sudo:session): session opened for user root by wm(uid=0)
cze 22 00:43:34 arch dbus[300]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
cze 22 00:43:34 arch systemd[1]: Starting Authorization Manager...
cze 22 00:43:34 arch polkitd[387]: Started polkitd version 0.113
cze 22 00:43:34 arch polkitd[387]: Loading rules from directory /etc/polkit-1/rules.d
cze 22 00:43:34 arch polkitd[387]: Loading rules from directory /usr/share/polkit-1/rules.d
cze 22 00:43:34 arch polkitd[387]: Finished loading, compiling and executing 1 rules
cze 22 00:43:34 arch dbus[300]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
cze 22 00:43:34 arch systemd[1]: Started Authorization Manager.
cze 22 00:43:34 arch polkitd[387]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
cze 22 00:43:34 arch polkitd[387]: Registered Authentication Agent for unix-process:383:19398 (system bus name :1.3 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
cze 22 00:43:34 arch systemd[1]: Created slice system-status\x2demail\x2duser1.slice.
cze 22 00:43:34 arch systemd[1]: Starting system-status\x2demail\x2duser1.slice.
cze 22 00:43:34 arch systemd[1]: Starting status email for dbus to [email protected]...
cze 22 00:43:39 arch sSMTP[396]: Creating SSL connection to host
cze 22 00:43:39 arch sSMTP[396]: SSL connection using ECDHE-RSA-AES128-GCM-SHA256
cze 22 00:43:42 arch sSMTP[396]: Sent mail for root@arch (221 2.0.0 closing connection di7sm14260437wib.23 - gsmtp) uid=99 username=nobody outbytes=1312
cze 22 00:43:42 arch polkitd[387]: Unregistered Authentication Agent for unix-process:383:19398 (system bus name :1.3, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8) (disconnected from bus)
cze 22 00:43:42 arch sudo[382]: pam_unix(sudo:session): session closed for user root
cze 22 00:43:42 arch systemd[1]: Started status email for dbus to [email protected].
cze 22 00:45:15 arch sudo[405]: wm : TTY=tty1 ; PWD=/home/wm ; USER=root ; COMMAND=/usr/bin/systemctl status [email protected]
cze 22 00:45:15 arch sudo[405]: pam_unix(sudo:session): session opened for user root by wm(uid=0)
cze 22 00:45:15 arch sudo[405]: pam_unix(sudo:session): session closed for user root
and the start+status log
cze 22 00:58:19 arch login[308]: LOGIN ON tty1 BY wm
cze 22 00:59:50 arch sudo[378]: wm : TTY=tty1 ; PWD=/home/wm ; USER=root ; COMMAND=/usr/bin/systemctl start [email protected]
cze 22 00:59:50 arch sudo[378]: pam_unix(sudo:session): session opened for user root by wm(uid=0)
cze 22 00:59:51 arch dbus[301]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
cze 22 00:59:51 arch systemd[1]: Starting Authorization Manager...
cze 22 00:59:51 arch polkitd[383]: Started polkitd version 0.113
cze 22 00:59:51 arch polkitd[383]: Loading rules from directory /etc/polkit-1/rules.d
cze 22 00:59:51 arch polkitd[383]: Loading rules from directory /usr/share/polkit-1/rules.d
cze 22 00:59:51 arch polkitd[383]: Finished loading, compiling and executing 1 rules
cze 22 00:59:51 arch dbus[301]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
cze 22 00:59:51 arch systemd[1]: Started Authorization Manager.
cze 22 00:59:51 arch polkitd[383]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
cze 22 00:59:51 arch polkitd[383]: Registered Authentication Agent for unix-process:379:16268 (system bus name :1.3 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
cze 22 00:59:51 arch systemd[1]: Created slice system-status\x2demail\x2duser1.slice.
cze 22 00:59:51 arch systemd[1]: Starting system-status\x2demail\x2duser1.slice.
cze 22 00:59:51 arch systemd[1]: Starting status email for dbus to [email protected]...
cze 22 00:59:57 arch sSMTP[392]: Creating SSL connection to host
cze 22 00:59:59 arch sSMTP[392]: SSL connection using ECDHE-RSA-AES128-GCM-SHA256
cze 22 01:00:01 arch sSMTP[392]: Sent mail for root@arch (221 2.0.0 closing connection f8sm14300037wiy.7 - gsmtp) uid=99 username=nobody outbytes=1312
cze 22 01:00:01 arch systemd[1]: Started status email for dbus to [email protected].
cze 22 01:00:01 arch polkitd[383]: Unregistered Authentication Agent for unix-process:379:16268 (system bus name :1.3, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8) (disconnected from bus)
cze 22 01:00:01 arch sudo[378]: pam_unix(sudo:session): session closed for user root
cze 22 01:00:24 arch sudo[397]: wm : TTY=tty1 ; PWD=/home/wm ; USER=root ; COMMAND=/usr/bin/systemctl status [email protected]
cze 22 01:00:24 arch sudo[397]: pam_unix(sudo:session): session opened for user root by wm(uid=0)
cze 22 01:00:24 arch sudo[397]: pam_unix(sudo:session): session closed for user root
If you still have errors I would think that your e-mail config files might be wrong, but your error message is very strange. So maybe something wrong with permissions. I'm afraid I'm just guessing.
To be clear.
Each command
systemctl start [email protected]
generated an e-mail message.
None of
systemctl status [email protected]
commands generated any e-mail messages.

Similar Messages

  • Java not working - can't find missing plug in

    I just installed updates for both Java and OS X 10.7.5 and now Java isn't working. All preferences are enabled, I downloaded version 7 update 9, but I can't get it to work. I tried reverting back to version 6 using the terminal window but I can't get it to work, it tells me to enter my password then won't let me type. Any help would be appreciated. I'm not very technical, so you may have to explain things in a little more detail.

    Normally when you install QuickTime it includes the plugin for Firefox. (This article has the link, which you already know about: [[Use the QuickTime plugin to play audio and video]].)
    When you check your plugins list, is QuickTime listed there as disabled, or just completely missing? (The disabled plugins cluster toward the bottom on a gray background.)
    Tools menu > Add-ons > Plugins category

  • With the IPhone4, the bluetooth is not working (can't find any other iphone or mac). is it a bug or is it just a problem with mine?

    I'm trying to connect to mac or Ipad or even Iphone and it's searching without any result.

    For what purpose are you trying to connect them?
    Only specific apps support Bluetooth connections between iOS devices, and you can only connect an iPhone to a computer via Bluetooth for internet tethering.

  • Apple iPad 3. BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Can anyone help me please.

    BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Apple iPad 3. Can anyone help me please.

    All resolved at last
    Deleted the SMTP setting
    Recreated the SMTP using the same settings
    Able to send emails now
    No logic - as usual - just a bug!

  • Hi. I habe one old ID and now i have one new ID. The old one is bad , because the Email not working. But i hav a lot of Apps and i want to copy this apps in my new ID. How can i do this?

    Hi. I habe one old ID and now i have one new ID. The old one is bad , because the Email not working. But i hav a lot of Apps and i want to copy this apps in my new ID. How can i do this?

    You don't. Apps are permanently tied to the ID used to purchase them. Instead of creating a new ID, change the primary email address on your existing ID.

  • Mistakenly opened all the folders in my library of music and the Finder stopped working. Now every time I restart the mac, all folders are reopened and can not work with the finder and tried killall-KILL Finder and nothing they reappear

    mistakenly opened all the folders in my library of music and the Finder stopped working.
    Now every time I restart the mac, all folders are reopened and can not work with the finder and tried killall-KILL Finder and nothing will reappear

    mistakenly opened all the folders in my library of music and the Finder stopped working.
    Now every time I restart the mac, all folders are reopened and can not work with the finder and tried killall-KILL Finder and nothing will reappear

  • My iPod touch needs to be restored. however, all of my movies/apps/songs/photos are not backed up on my computer because the shop on my computer does not work. can i still get the memory on my iPod touch 32gb back?

    my iPod touch needs to be restored. however, all of my movies/apps/songs/photos are not backed up on my computer because the shop on my computer does not work. can i still get the memory on my iPod touch 32gb back?

    If you weren't able to sync the purchases to a computer previously and now your iPod needs to be restored so you can't sync it now, then you may be out of luck and will need to purchase your content again. Officially Apple does not allow redownloads of purchased items other than iPhone/iPod touch applications and iBooks. The official statement of their policy can be found here, among other places.
    You can try contacting iTunes Store Customer Service (select the "Music Purchases" or "Video Purchases" category, as appropriate, then "Lost or Missing Items". You'll find either an "Express Lane" button - just follow the instructions to get to the contact form - or an "Email Us" button) ") and explaining what happened. Reportedly in some cases Apple has allowed redownloading on a one-time basis. But don't count on it. 
    Good luck.

  • Share photos by email not working. Brings up grayed out check box? Want to share photos thru Entourage.

    Share photos by email not working in Photos Version 1.0 (209.52.0) on a Macbook Pro 17" Yosemite 10.10.3.  Brings up grayed out check box? Want to share photos thru  MS Entourage for Mac 2008 Ver. 12.3.6  Thanks!

    @Naiks, having suffered through unsuccessful synching attempts for Calendar and Contacts myself, l would suggest you try the following:
    UNINSTALL iCloud control panel from your PC. Seems silly, but do it.
    Go into Outlook, and look at the very top menu. Click FILE, then ACCOUNT SETTINGS, then click the popup box.
    You will see a list of all your email accounts. Make sure that ONE of them has a checkmark against it. If not, select the account your want as your default, and click "set as default.
    Exit out of Outlook and reboot your machine.
    Now reinstall iCloud, check CALENDAR and CONTACTS, and do as instructed when prompted.
    Reboot for good luck and now launch OUTLOOK. All that remains is to locate your iCloud Contacts and Calendar files, and make them your default.
    IMPORTANT: Don't panic if you can't find your contacts -- they're there. Click CONTACTS and you'll see you have several available contact files. Locate the one label "iCloud" in grey type. Right-click on it, select PROPERTIES, then click the Outlook Address Book tab. Check the box that says something like "Make this my default Outlook Address Book." Keep clicking "apply" and "okay" until you've exited out of the dialog box maze.
    You may have to do something similar with your Calendar files. I dd not, but if you need to, do it.
    Everything should now sync pretty seamlessly.
    I didn't have the exact same problem as you, but my dilemma was close enough. Good luck!
    Arthur P. Johnson

  • Email not working ,office365

    my email not working ,im not able to receive emails nor send email . both are not working. I'm using outlook web , office 365 and my mail id is [email protected]

    Hi teja vardhan,
    Would you please let me know current situation of this issue?
    As HCI3 said, would you please let us know more details? Those may help us to understand this issue clearly.
    When can’t send or receive emails, can you find any related error message? Did you in SBS domain environment?
    If so, would you please let me know the server version? If any update, please feel free to let us know.
    Best regards,
    Justin Gu

  • Shows a upload not finished can't find it ?

    Shows a upload not finished can't find it ?

    Hi Pattie,
    It may have resolved itself the notice has now disappeared, strange 
    though...thanks
    NOTICE: This e-mail message including any attachment (collectively  the
    "e-mail") may contain PRIVILEGED and CONFIDENTIAL INFORMATION. The  pictures
    are ©2014 Bob Lampert If you are _not the intended  recipient, then please (a)
    do not read this e-mail, (b)  do not forward, print, copy or otherwise
    disseminate this e-mail, (c) notify me of the error by a reply to this e-mail,
    and (d) delete this e-mail from your computer.. Click to  see..
    Pictures.............
    (https://www.adoberevel.com/shares/4fa8a327a68e4c65a49f61289e154f09/albums/b29e66ff5f18425c 865ac243351f0faa#!) 
    In a message dated 7/15/2014 10:47:51 A.M. Pacific Daylight Time, 
    [email protected] writes:
    Shows  a upload not finished can't find it ?
    created by Pattie F (https://forums.adobe.com/people/Pattie+F)  in  Revel
    - View the full  discussion
    (https://forums.adobe.com/message/6552671#6552671)

  • I can open all emails ok but can't find or open attachments.

    I can open all emails ok but can't find or open attachments.
    The attachment bar at the bottom of incoming emails has no ''paperclip'' to select and open attached documents

    If the menu bar is hidden then press the F10 key or hold down the Alt key, that should make the menu bar appear.
    * Go to "View > Toolbars" and check-mark "Menu Bar" with a click if you want to make that permanent
    See [[Menu bar is missing]]
    Make sure that all the toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization
    * [[Back and forward or other toolbar buttons are missing]]

  • I lost the pictures i took with my ipad2 and my vídeos, also my safe note, where can i find them??

    I LOST THE PICTURE I TOOK WITH MY IPAD2 AND MY VIDEOS, ALSO MY SAFE NOTES, WHERE CAN I FIND THEM????

    Had you reset your iPad or just done anything else when you found that they were missing ? If they were on the iPad when you last synced/backed up via your computer's iTunes then you could try restoring to that back up and see if that restores them to your iPad. Also for Notes you could check to see if they are stored on any of the email accounts that you've got on the iPad - try logging into the accounts via a browser and see if any have a Notes folder underneath them.

  • When i type in the correct answer for my security question it always comes up as incorrect I have the answer written down but there not working can someone help

    hello
    when i type in the correct answer for my security question it always comes up as incorrect I have the answer written down but there not working can someone help

    Hi, Corinneact. 
    Thank you for visiting Apple Support Communities. 
    The usual cause for errors is that the security question responses are case sensitive.  If case sensitivity is not an issue with your answers, see the last step in the attached section of the article below. 
    Navigate to My Apple ID using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so. 
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Cheers,
    Jason H. 

  • Email not working on iphone

    iphone email not working it gives a message username or password is wrong. this is using aol.

    Hello maxx1010,
    The article linked below provides some useful troubleshooting steps that can help get your mail account working.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/TS3899
    Cheers,
    Allen

  • Outgoing icloud email not working on iphone5, ipad and mbpro.

    Outgoing icloud email not working on iphone5, ipad and mbpro.
    Get message - Outgoing server failed.
    Problem started last night.
    I'm in Northern California.
    Never had this problem before, dont know what to do next.

    I still can't make it work on the iPhone5 or iPad.
    I can't figure out how to switch outgoing servers on the iP5 or iPad.
    On the MBPro I can use a different outgoing server and it works.
    Here's another threrad on the topic: https://discussions.apple.com/message/25446573#25446573

Maybe you are looking for

  • Muvo NX prob

    I am having a bit of a problem with my Muvo NX. It's been working great for about 6 months now, but yesterday when I was moving some files onto it, it stopped mid-transfer. I tried to restart the transfer but it froze again. I tried to delete the fil

  • Xl spreadsheets too small to read...?

    just recently come fromt he dark side...and really liking this OS and pretty much everything on this macbook pro. however I still prefer to stick with xl and as such am trying to find out how to make the spreadsheets appear larger...without having to

  • IS_NUMBER function?

    I wrote a very primitive function to check if the contents of a VARCHAR field is Numeric. The function simply checks if every character in the field is between 0 - 9. I feel like this is a very inefficient way to check for numeric/non-numeric data. I

  • Premiere Pro CS6 moving Extremly Slow, No solutions.  I quit.

    Im uninstalling this software and counting my losses.   Not a professional editing platform.  After hours of searching online there are no available solutions.  And MANY others are experiencing the exact same thing as I am and Ive tried on 3 Mac comp

  • The program did not start on the remote computer. For assistance, contact your system administrator RDS 2012

    The issue is when a USER tries to open a program, and it's mapped to a network drive T:\fixedast\app.exe they get the tittle error message. If i log in as admin, it opens up just fine. Ideas? The user can remote desktop to the RDS server and open the