Learn about Centmin Mod LEMP Stack today
Register Now

Featured Insight Guide SSH Login Email Alerts Centmin Mod Style

Discussion in 'Centmin Mod Insights' started by eva2000, Nov 16, 2016.

  1. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    8:30 PM
    Mainline
    10.2
    I reverted back to:
    inet_interfaces = localhost

    then:
    inet_protocols = ipv4

    Restarted:
    service postfix restart


    Works fine now. :)
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    40,624
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    10:30 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    excellent thanks for confirmation - updated 123.09beta01 to auto detect when you set DISABLE_IPVSIX='y' and set inet_protocols = ipv4 :)
     
    • Like Like x 2
  3. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    8:30 PM
    Mainline
    10.2
    How can we add more info to this?

    From the current implementation:
    ip:
    city:
    region:
    country:
    loc:
    postal:

    I want to add:
    Time:
    Account:
    Method: (password authentication)
    IP hostname:
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,624
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    10:30 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Have to script it yourself and make them variables to add to /root/.bashrc. Time is already in default one via date variable and well /root/.bashrc implies root user anyway. And just do a reverse lookup for ip but that could slow down ssh logins quite a bit
     
  5. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    8:30 PM
    Mainline
    10.2
    Where should I start troubleshooting if I didn't receive the email?
     
  6. eva2000

    eva2000 Administrator Staff Member

    40,624
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    10:30 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  7. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    8:30 PM
    Mainline
    10.2
    Sometimes I got this email.
    Code:
    <html><head>
    <meta http-equiv=content-type content=text/html;charset=utf-8>
    <title>502 Server Error</title>
    </head>
    <body text=#000000 bgcolor=#ffffff>
    <h1>Error: Server Error</h1>
    <h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
    <h2></h2>
    </body></html>
     
  8. eva2000

    eva2000 Administrator Staff Member

    40,624
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    10:30 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    probably coming from ipinfo.io site's server itself.
     
    • Like Like x 1
  9. fabianski

    fabianski Member

    92
    9
    8
    Feb 20, 2019
    Brazil
    Ratings:
    +28
    Local Time:
    9:30 AM
    is it possible to create a white list of ips for this?
    The notifications are very useful but I have many emails in my inbox and all are from my ip, I would like to avoid this, whenever it was an ip from the list would not send an alert email...
     
  10. eva2000

    eva2000 Administrator Staff Member

    40,624
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    10:30 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    easiest thing to do is setup email filters and labels by subject and to/from email addresses - that's what I do :)
     
  11. upgrade81

    upgrade81 Premium Member Premium Member

    221
    14
    18
    Sep 5, 2016
    Switzerland
    Ratings:
    +20
    Local Time:
    2:30 PM
    1.17
    10.3
    how can this function be disabled? We receive hundreds of emails a day.
    We have a script that copies video files via ftps every 5 minutes.
     
  12. eva2000

    eva2000 Administrator Staff Member

    40,624
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    10:30 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    just remove the added entries from /root/.bashrc
     
    • Like Like x 1