Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Aug 10, 2015 12:11 pm 
Offline
Senior Newbie

Joined: Mon Aug 10, 2015 12:07 pm
Posts: 5
Website: http://outsideit.net
Hello,

I seem to be unable to get the mail command to send an email to my personal gmail address working. I'm running a Linode with CentOS 7.

Tried debugging from cli but I don't get any error or info that would get me any further.

CODE: SELECT ALL
➜ ~ echo "Your message" | mail -s "Message Subject" emailaddress
➜ ~ sudo echo "Your message" | mail -s "Message Subject" emailaddress
➜ ~ echo "Your message" | mailx -s "Message Subject" emailaddress
➜ ~ sudo echo "Your message" | mailx -s "Message Subject" emailaddress

CODE: SELECT ALL
telnet mail.messaging.microsoft.com 25
Trying 207.46.163.247...
Connected to mail.messaging.microsoft.com.

So I tried with mail and mailx but nothing is working. /var/log/maillog is empty.

Any advice is welcome to get this working.

WIllem

_________________
http://outsideit.net


Top
   
PostPosted: Mon Aug 10, 2015 12:53 pm 
Offline
Senior Member

Joined: Fri Feb 13, 2015 8:12 pm
Posts: 101
You need a MTA (mail transfer agent), like exim or postfix, then you need to read the documentation for the chosen MTA,
whatever it is, as each one has a different way to manipulate or check messages in the queue.

mail and mailx are just mail user agents (MUA), you need to know what happens with the MTA itself.


Top
   
PostPosted: Tue Aug 11, 2015 12:47 pm 
Offline
Senior Newbie

Joined: Mon Aug 10, 2015 12:07 pm
Posts: 5
Website: http://outsideit.net
Thanks Sanvila,

Got is working now. My postfix service wasn't started.

systemctl start postfix

did the trick.

Grtz

Willem

_________________
http://outsideit.net


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group