Get the most out of your Centmin Mod LEMP stack
Become a Member

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

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:09 PM
    Mainline
    10.2
    I reverted back to:
    inet_interfaces = localhost


    then:
    inet_protocols = ipv4

    Restarted:
    service postfix restart


    Works fine now. :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    11:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    excellent thanks for confirmation - updated 123.09beta01 to auto detect when you set DISABLE_IPVSIX='y' and set inet_protocols = ipv4 :)
     
  3. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:09 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

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    11:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:09 PM
    Mainline
    10.2
    Where should I start troubleshooting if I didn't receive the email?
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    11:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:09 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

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    11:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    probably coming from ipinfo.io site's server itself.
     
  9. fabianski

    fabianski Member

    102
    14
    18
    Feb 20, 2019
    Ratings:
    +36
    Local Time:
    10:09 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

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    11:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Member

    295
    17
    18
    Sep 5, 2016
    CH
    Ratings:
    +30
    Local Time:
    2:09 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

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    11:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just remove the added entries from /root/.bashrc