LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2016, 05:37 PM   #16
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 97

Have you checked your postfix configuration?

Edit:
Spent too long re-reading the posts before typing my response

Last edited by Disillusionist; 11-18-2016 at 05:41 PM.
 
Old 11-18-2016, 06:24 PM   #17
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
As Disillusionist posted postfix by default only listens to localhost. Edit inet_interfaces in the file /etc/postfix/main.cf

# Listen to all interfaces rather than strict to localhost
inet_interfaces = all

Just curious as to what you are trying to accomplish.
I am learning Linux networking.
Can you recommend a good way of learning Linux networking?

When I set inet_interfaces=all, and did this:

Code:
systemctl restart postfix

or 
systemctl reload postfix
both did not work. Meaning I could not telnet from host.
I had to reboot the VM.
Strange. Why?


To telnet into smtp form host to VM (guest) to work,
I also had to disable firewall,
or include postfix daemon in appropriate zone.

virbr0 did not work since it is in DOWN state.
How do you turn it to UP state?

However virtual ethernet (eno16777736) works:
Quote:
2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:e1:93:0b brd ff:ff:ff:ff:ff:ff
inet 10.0.0.145/24 brd 10.0.0.255 scope global dynamic eno16777736
... ...
I learned a whole bunch for this post.
Thank you everyone for your generous time.
 
Old 11-18-2016, 06:25 PM   #18
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Disillusionist View Post
Have you checked your postfix configuration?

Edit:
Spent too long re-reading the posts before typing my response
Thank you for your help.
 
Old 11-18-2016, 06:38 PM   #19
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
One more thing I learned.

To get telnet prompt do this:

Quote:
[student@localhost ~]$ telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix
ehlo
501 Syntax: EHLO hostname
#Enter Ctrl+] as in enter keys: Ctrl plus "closed square bracket"
^]
# Now telnet prompt shows up.
telnet>
 
Old 11-18-2016, 07:07 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,150

Rep: Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874
Using the escape key switches from session mode to command mode. You can change client parameters and your not talking to the server anymore until you switch back.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail using telnet SMTP tusharsharma43 Linux - Newbie 2 02-24-2015 07:26 AM
telnet to smtp SERVER mr.cracker Linux - Server 15 06-21-2013 05:25 AM
Cant Telnet SMTP pbaker Linux - Server 9 05-28-2010 04:11 PM
smtp problem..telnet to 25 rnj Linux - Newbie 9 12-12-2005 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration