Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 11th February 2013, 18:53
hermestrismegistus hermestrismegistus is offline
Junior Member
Join Date: Aug 2012
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default Using a second ip for mail services?

A couple of days, my server has been abused by outsiders to send spam trough my ip. For that reason my ip got blacklisted. Although after some upgrades of the software the problem seem to be solved now, but still need to get removed from some of the blacklists. Therefore my isp gave me a second ip. So i could use this ip for outcoming and incoming mail.

My question is, how can i configure the mail system to use the second ip adres they gave me? Btw, i have used the perfect server setup for debian 6.0 to configure my server.
Reply With Quote
Sponsored Links
Old 12th February 2013, 13:53
Parsec Parsec is offline
Join Date: Jan 2013
Posts: 66
Thanks: 1
Thanked 9 Times in 8 Posts

I've been pondering on answering your question, I am not sure however if I can make the answer simple and how it affects the ISPConfig on your server (although I'm guessing it won't affect ISPConfig).

So here is a brief outline....

Configure your second IP to your NIC interface ie: eth0:0
Give the IP a name (FQDN) and make sure that name is added to the second IP both in your dns and in your /etc/hosts file
Change /etc/mailname to this new FQDN for the second IP

In /etc/postfix/main.cf you'll need to alter a few things for postfix.

inet_interfaces =, your.second.ip.address
(note if you also have a private lan attached on another network card ie: eth1 - you'll need to also add that network)

mydestination = "fqdn of your second ip", localhost, localhost.localdomain
(note you should perhaps leave the existing name of your server that is in here as well - as you most probably are using local mail delivery for that to)

You will also note the "myorigin = /etc/mailname" is in here as well - that's why you had to change that mailname file.

Now, you will most probably have to create a new ssl cert for postfix under the new name - if you created one for the old name.

restart postfix, a reload won't do when you change the interfaces.

Thats basically it.
Things to watch out for: try and get a reverse dns entry for your second IP to match the fqdn you gave it - your provider will most probably need to do this.

Questions? fire away...
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I prevent bad customer from using their services? ignasigarcia General 2 1st April 2012 10:16
Our mailserver hacked ??? - a lot of SPAM is being send out mazgit Installation/Configuration 9 14th February 2010 15:12
Adding Services Tyilanmenyn Installation/Configuration 2 6th October 2009 16:39
all services seem to be offline in the services dialog! hkaiser Installation/Configuration 9 7th June 2007 01:08
ISP Services wouldn't restart any service, possibly Domain Host configuration issue. Kamran Shah Installation/Configuration 20 17th August 2006 18:33

All times are GMT +2. The time now is 01:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.