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

Modified Email Format

Discussion in 'Feature Requests & Suggestions' started by ethanpil, Jan 15, 2016.

Tags:
  1. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:47 AM
    I am wondering what others think about the email notifications? In my gmail account, I receive the CentMinMod notification text as attachments called "noname" like the image below. It is quite cumbersome to read the emails as I need to download the attachment, and rename to open with a default text viewer. This happens with allthe CentMinMod notifications, including new vhosts, cron notifications, etc.


    Can we include the text in the body of the email to make it more searchable in webmail? Whats the reason not to?

    [​IMG]
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,878
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:47 AM
    Nginx 1.21.x
    MariaDB 10.x
    is this for emails you received from this community.centminmod.com own forums ? or you mean from your centmin mod lemp installed server ?

    i don't get that with my installs any all, so something in your emails is making gmail serve them to you that way i think
     
  3. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:47 AM
    These are from my Lemp server. They are generally Centos 7 based fresh installs. Happened every time. Wordpress email notifications arrive normally ... if you think that it's a local configuration issue, I am not even sure where to look...
     
  4. eva2000

    eva2000 Administrator Staff Member

    49,878
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:47 AM
    Nginx 1.21.x
    MariaDB 10.x
    when you receive gmail noname attachements check the original headers and see what content-type they're sent with plain text or binary or octet-stream

    Code:
    User-Agent: Heirloom mailx 12.5 7/5/10
    MIME-Version: 1.0
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    
     
  5. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:47 AM
    Yup, there it is. Octet stream. Is this due to the default centos/linode config or a centmin setting?

    Code:
    Subject: Wordpress WP-CLI Auto Update Fri Jan 15 08:02:44 UTC 2016
    User-Agent: Heirloom mailx 12.5 7/5/10
    MIME-Version: 1.0
    Content-Type: application/octet-stream
    Content-Transfer-Encoding: base64
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    49,878
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:47 AM
    Nginx 1.21.x
    MariaDB 10.x
    no it's due to contents of your email itself see mailx sends text body as an attachment - Red Hat Customer Portal
     
  7. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:47 AM
    Am I the only centminmod user experiencing this 'expected behavior'? I dont know what character could cause this....
     
  8. eva2000

    eva2000 Administrator Staff Member

    49,878
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:47 AM
    Nginx 1.21.x
    MariaDB 10.x
    no it happens to any emails that have non-US-ASCII or non-printable characters and it's how Gmail deals with it when it receives such. I'll rework wordpress auto updater emails to use mutt instead and see

    also see mailx(1): send/receive Internet mail - Linux man page
     
  9. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:47 AM
  10. eva2000

    eva2000 Administrator Staff Member

    49,878
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:47 AM
    Nginx 1.21.x
    MariaDB 10.x
    indeed nice.. but wordpress auto update isn't using cat so will see what i can come up with :)
     
  11. eva2000

    eva2000 Administrator Staff Member

    49,878
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:47 AM
    Nginx 1.21.x
    MariaDB 10.x
    ah fixed for wordpress auto updater email notifications at least in your wordpress cron file wp_updater_yourdomain.com.sh

    you can find path to that file by listing your cronjobs which usually is at /root/tools/wp_updater_yourdomain.com.sh
    Code:
    crontab -l
    change last line

    from
    Code:
    } 2>&1 | mail -s "Wordpress WP-CLI Auto Update $(date)" $EMAIL
    to so you pipe output through dos2unix :)
    Code:
    } 2>&1 | dos2unix | mail -s "Wordpress WP-CLI Auto Update $(date)" $EMAIL
     
  12. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:47 AM
    What about new vhost creation? Did you take a look there? Also happens to me every time I add a new vhost or vhost+WP ... thanks
     
  13. eva2000

    eva2000 Administrator Staff Member

    49,878
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:47 AM
    Nginx 1.21.x
    MariaDB 10.x
    you mean centmin.sh menu option 22 ? option 2 doesn't send emails only option 22 does but that is send from wordpress php itself not server emails
     
  14. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:47 AM
    I'm not talking about the WordPress confirmation emails, those have always come in correctly. I mean the centminmod emails that include the new FTP passwords, as well as the shell commands to delete the vhost, etc
     
  15. eva2000

    eva2000 Administrator Staff Member

    49,878
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:47 AM
    Nginx 1.21.x
    MariaDB 10.x