Welcome to Centmin Mod Community
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,545
    1,088
    113
    May 25, 2014
    Ratings:
    +1,588
    Local Time:
    2:39 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,221
    8,900
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,713
    Local Time:
    4:39 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,545
    1,088
    113
    May 25, 2014
    Ratings:
    +1,588
    Local Time:
    2:39 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:
     
  4. eva2000

    eva2000 Administrator Staff Member

    40,221
    8,900
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,713
    Local Time:
    4:39 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,545
    1,088
    113
    May 25, 2014
    Ratings:
    +1,588
    Local Time:
    2:39 PM
    Mainline
    10.2
    Where should I start troubleshooting if I didn't receive the email?
     
  6. eva2000

    eva2000 Administrator Staff Member

    40,221
    8,900
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,713
    Local Time:
    4:39 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  7. rdan

    rdan Well-Known Member

    4,545
    1,088
    113
    May 25, 2014
    Ratings:
    +1,588
    Local Time:
    2:39 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,221
    8,900
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,713
    Local Time:
    4:39 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

    71
    5
    8
    Feb 20, 2019
    Brazil
    Ratings:
    +19
    Local Time:
    3:39 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,221
    8,900
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,713
    Local Time:
    4:39 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 :)
     
..