Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Smtp email on boot

    Scheduled Pinned Locked Moved webGUI
    2 Posts 2 Posters 708 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      charlie0440
      last edited by

      Is it possible to have an email sent using the smtp settings (system > advanced) when pfsense boots?

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @charlie0440:

        Is it possible to have an email sent using the smtp settings (system > advanced) when pfsense boots?

        'booting' is one thing, pfSense should be able to connect to a mail server, which could be some where on the Internet.
        This means that interfaces should be up and functional.

        This is what I tried :
        Insert

        notify_all_remote(sprintf("pfSense booted."));
        

        just before the ending "?>" in this file : /etc/rc.bootup

        I received a mail saying "pfSense booted." when I rebooted pfSense..

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.