Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 08, 2013 7:17 am 
Offline
Junior Member

Joined: Tue Oct 01, 2013 11:31 am
Posts: 21
Hello,
may I have just a confirm I had done well and one question?
I want to send mail from my linode machine but Ii do not want to receive anything.
I have setup postfix and set
inet_interfaces = loopback-only

Reading the postfix docs I am not sure if I have with this command also disabled sending the SMTP from outside?
Also I send on port 25 to my future,possible,any user. Is this safe since I will send login data to my service (passwords and such)?
What I do not know is how things works between mail servers. If I send on port 25 is the message unencrypted through all the way to the user or messaging between my postfix smtp server and the rest of the world is encrypted?

thanks
Nenad


Top
   
PostPosted: Tue Oct 08, 2013 10:07 am 
Offline
Junior Member

Joined: Tue Oct 01, 2013 11:31 am
Posts: 21
I have added to postifx main.cf
smtpd_client_restrictions = permit_inet_interfaces
but maybe it was not necessary beacause even without this I couldn't send with remote telnet the email (relay access denied).


Top
   
PostPosted: Tue Oct 08, 2013 10:32 am 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
You could just block the SMTP ports 25 and 465 with iptables (firewall). Then you don't have to mess with your mail server installation.


Top
   
PostPosted: Tue Oct 08, 2013 11:21 am 
Offline
Junior Member

Joined: Tue Oct 01, 2013 11:31 am
Posts: 21
Thanks
I did
iptables -A INPUT -s 0.0.0.0 -p tcp --dport 25 -j DROP
iptables -A INPUT -s 0.0.0.0 -p tcp --dport 465 -j DROP

and it seems it works

Nenad


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


Who is online

Users browsing this forum: No registered users and 2 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