Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a server which hosts a email marketing application. I just got another server and I want to use that server to send emails also
I've decided to create a tunnel IPs between them.
Server A (email server)
Server B (the other server)
On server A I did:
ip tunnel add tun1 mode ipip remote <ip_server_B> local <ip_server_A>
ifconfig tun1 10.0.0.1 netmask 255.255.255.0 pointopoint 10.0.0.2
On server B I did:
ip tunnel add tun1 mode ipip remote <ip_server_A> local <ip_server_B>
ifconfig tun1 10.0.0.2 netmask 255.255.255.0 pointopoint 10.0.0.1
Everything seems to be working OK. I can ping each other tun interface with the private IP I choose.
My question is. Now.. How can I make my application to send email via server B ? Is there any internal route I still need to do ?
Because I will need more IPs from other servers. Server C and Server D let's say.
BUt the email software will be sending emails via private networks (10.11.0.1) let say... and them it should hit the tunneled IP. But I don't know if it will go out to the internet...
Is there anything to do ? maybe some route on the server ?
I still don't quite understand what you're trying to accomplish. If servers C and D can access the Internet through a NAT router and thus reach server A, they should be able to use it as a mail relay.
But anyway, if you're setting up a tunnel between servers A and B in order to have servers C and D go through server A to reach server B, you will need to do the following:
Server A must have a route entry for the private network of servers B, C and D, pointing at the remote tunnel IP (10.0.0.1 in this case)
Servers B and C must have a route entry for the IP of server A, pointing to server B (or they must use server B as the default gateway)
All servers (A, B, C and D) has access to the internet. However the email software is installed just on server A.
A tunnel was created using their valid IPs. Then I assign a private IP to each tun* interface.
But if server A send emails to this private IP let say (10.0.0.1) then it should go via tunnel to the server B and them go out to the internet via servers B's valid IP that was tunneled.
Also, keep in mind that I don't know if tunneling is the right solution here. Maybe you can suggest something else.
What I need to do is have server A ( the server that has the mailing software) send emails via its IP address and use another's servers IP address to send emails as well.
All servers (A, B, C and D) has access to the internet. However the email software is installed just on server A.
By "email software", do you mean some piece of software that sends out emails? Or do you mean a mail server?
Quote:
Originally Posted by g_paschoal
A tunnel was created using their valid IPs. Then I assign a private IP to each tun* interface.
But if server A send emails to this private IP let say (10.0.0.1) then it should go via tunnel to the server B and them go out to the internet via servers B's valid IP that was tunneled.
If server B is a mail server acting as a relay for server A, then it will forward mails from server A to any and all recipients. A tunnel is not required for this.
It sounds like what you're really looking for is a mail relay, in which case you should forget about the tunnel and set up Postfix or sendmail on server B, perhaps with SMTP authentication.
If that does not suit your requirements, then you need to explain in more detail why server B needs to be involved in these mail transactions.
What I need to do is have server A ( the server that has the mailing software) send emails via its IP address and use another's servers IP address to send emails as well.
So, basically you want help to obfuscate the source IP while sending out bulk 'marketing emails'?
edit: oh - old thread ...
Last edited by descendant_command; 08-30-2012 at 05:46 AM.
not that, just we want to manage our server for mailing.
ips of sending are allocated and assigned to a server, and the server of sending (smtp server) is separeted, so we want to connecte to the remote server and use the Ips, but the sending in not from the same server because it not contains Ip.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.