Skip to main content
GrN.dk

Main navigation

  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

mail

By Greg Nowak, 3 December, 2020

Sending Mails From A Linux Server

In this example we use Ubuntu linux.

Software: mailutils

Restart postfix after changing postfix config file: main.cf: sudo service postfix restart

First test if you can access gmail through port 25: telnet gmail-smtp-in.l.google.com 25

Test mail with: echo "Hello world" | mail -s "Test Email" -a "From: [email protected]" toMail.com

Or: echo "Test from $HOSTNAME" | mail -s "Everything A okay" -a "From: noreply@$HOSTNAME" [destinationmail.com]

 

Tags

  • Linux
  • mail
mail

Review Greg on Google

Greg Nowak Google Reviews

 

  • Portfolio
  • About Greg Nowak
  • Gregs IT and Logistics Optimization
  • Shrink PDF In Linux
  • Running Linux on T450s T495s T14, Thinkpads and Others
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.