Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jun 14, 2013 11:42 am 
Offline
Senior Newbie

Joined: Wed May 16, 2012 11:19 am
Posts: 19
Website: http://www.creativetags.com
Location: Northern Ireland
I'm trying to setup postfix to create forwarding accounts for a client who wants emails to their new domain to forward to their existing account on an old domain.

I've configured postfix for this and I know it's running via netstat:

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 9980/master

I've checked the firewall via iptables -L -v -n | grep :25

0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25

but when I test it via telnet from my own machine I get:

telnet 176.58.103.165 25
Trying 176.58.103.165...
telnet: connect to address 176.58.103.165: Operation timed out

I've also trying setting it up on port 587 but it just says Connection refused.

What am I doing wrong?


Top
   
PostPosted: Fri Jun 14, 2013 1:20 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Firstly postfix is only listening on 127.0.0.1 so it won't accept other addresses.
eg
Code:
% telnet 176.58.103.165 25
Trying 176.58.103.165...
telnet: Unable to connect to remote host: Connection refused



The timeout you're seeing is because of a firewall. Clearly I didn't hit that firewall when I just did my test. Where did you try to connect from? If a home machine then be aware that many ISPs block outgoing port 25 these days.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
PostPosted: Sat Jun 15, 2013 5:08 pm 
Offline
Senior Newbie

Joined: Wed May 16, 2012 11:19 am
Posts: 19
Website: http://www.creativetags.com
Location: Northern Ireland
Thanks sweh. I managed to get it listening globally rather than just locally by setting: inet_interfaces = all

I'm now nervous about accidentally setting up an open relay. How do I set it up to make forwarder emails for a couple of domains e.g. info@example.com -> example@gmail.com without contributing to spam?

I'm particularly concerned about "mydestination"


Top
   
PostPosted: Sat Jun 15, 2013 7:08 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
creativetags wrote:
I'm now nervous about accidentally setting up an open relay.

There are plenty of websites you can use to test for an open relay situation. I use http://www.mxtoolbox.com/diagnostic.aspx


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