directadmin assign ip to domain (PROBLEM: Smallest ip active for server and all domain) - Directadmin ip management Error

juststar

Verified User
Joined
Dec 10, 2013
Messages
24
https://docs.directadmin.com/direct...html#:~:text=How to assign a User an owned IP

Hello, I have read the document many times. I also watched youtube videos. I think I did everything right.

I added 5 new IP addresses to IP management by logging in as admin. My server's Main IP address has the largest number.

for example:
MAIN SERVER IP: 55.66.77.90
IP Managaments > Adding new ip and assing reseller
  • 55.66.77.70 > assing RESELLER 01
  • 55.66.77.80 > assing RESELLER 02
  • 55.66.77.81 > assing RESELLER 01
  • 55.66.77.82 > assing RESELLER 01
  • 55.66.77.83 > assing RESELLER 01
Go to reseller 02 page > ip management > 55.66.77.80 > Shared. and > My Users > Change ip all domain

go to reseller 01 page > My Users >

  • ...77.70 assing domain 01 > Owned
  • ...77.81 assing domain 02 > Owned
  • ...77.82 assing domain 03 > Owned
  • ...77.83 assing domain 04 > Owned
Note: DNS configurations of all domains are correct.

So far everything seems normal and all websites are working.

BUT >>> >>> ERRORS:

  • When I try to make any updates to the server, including Configserver, it does not upload due to the unauthorized IP address.
  • Except for domain 01 (55.66.77.70), no e-mail is sent to Gmail from any other domain.
  • Mail Tester websites give 0 or 1 points for all domains. (0-10 points).
Because And Problem !!!!! >>> HERE <<<

The Main Server Main IP Address starts working with the smallest IP address. Server Main ip working > 55.66.77.70
All e-mail addresses use this IP address when sending or receiving e-mail: 55.66.77.70

Settings:

All settings in mail programs are programmed correctly. All e-mail addresses are operated only as mail.domain.com and smtp.domain.com.
Everything looks correct on all "dnslookup" websites. All domain IP configurations show their own IP address.
All domains were checked in the Directadmin Administration panel > DNS ADMINISTRATION page.

So:
mail.domain04.com > assing to 55.66.77.83 ip
smtp.domain04.com > assing to 55.66.77.83 ip
But Use: >>> ( WHY ??? ) <<<
Why does it use 55.66.77.70 IP address when sending emails? Why doesn't email use its own IP address?
 
Last edited:
add to directadmin.conf
add_domain_to_domainips=1
if you want domains to use their dedicated IP for emails, also run rewrite confs
echo "action=rewrite&value=domainips" >> /usr/local/directadmin/data/task.queue
as described in provided manual: https://docs.directadmin.com/change...main-ips-file-for-exim-outbound-ip-interfaces
maybe this will solve another your problem with IPs priority, but maybe it's network configuration issue (wrong prefix/mask)
 
Hello, thank you for your quick response and help. I don't know if I'm doing something wrong. I couldn't solve the problem.

if only this: directadmin.conf >> add_domain_to_domainips=1
domain use ipv6 sending mail.
but
if disable ipv6 >> exim_conf >> disable_ipv6= true

Thunderbird:
Sending of the message failed.
The message could not be sent because connecting to Outgoing server (SMTP) smtp.senfony.net failed. The server may be unavailable or is refusing SMTP connections. Please verify that your Outgoing server (SMTP) settings are correct and try again.
 

Attachments

  • 01.jpg
    01.jpg
    55.4 KB · Views: 79
  • 07-My Users.png
    07-My Users.png
    44.7 KB · Views: 68
  • 06-IP managements.png
    06-IP managements.png
    40.5 KB · Views: 77
  • 05 - error.png
    05 - error.png
    36.7 KB · Views: 67
  • 04 - Disable ipv6.png
    04 - Disable ipv6.png
    52.4 KB · Views: 66
  • 03.png
    03.png
    77.8 KB · Views: 69
  • 02.png
    02.png
    60 KB · Views: 64
did you rewrited confs? by next command:
echo "action=rewrite&value=domainips" >> /usr/local/directadmin/data/task.queue
 
to disable IPv6 you must create file:
/etc/exim.variables.conf.custom
and put to it:
disable_ipv6=true
because without this file your settings will be reseted to defaults at any update.
 
did you rewrited confs? by next command:
echo "action=rewrite&value=domainips" >> /usr/local/directadmin/data/task.queue
yes i did
but
if disable ipv6

Thunderbird:
Sending of the message failed.
The message could not be sent because connecting to Outgoing server (SMTP) smtp.senfony.net failed. The server may be unavailable or is refusing SMTP connections. Please verify that your Outgoing server (SMTP) settings are correct and try again.
 
Last edited:
The complete senfony.net domain does not resolve.
Seems your nameservers from senfony.net on 178.63.1.30 do not resolve.
You have to set them correctly pointing to the correct ip with your registrar.
Check this:
or set them correctly on your DA server.
 
The complete senfony.net domain does not resolve.
Seems your nameservers from senfony.net on 178.63.1.30 do not resolve.
You have to set them correctly pointing to the correct ip with your registrar.
Check this:
or set them correctly on your DA server.
Hello, there is currently a problem with the Hetzner servers. When I restart the system the server freezes. Self is not a mistake.
I'm waiting for them to fix it.
 
currently a problem with the Hetzner servers.
With your server then. We also have servers with Hetzner but don't have issues and if the server freezes it's most likely a hardware issue, maybe disk or ram.
Hopefully they fix it soon and then we can see if things start working correctly and help you further if needed.
 
Hi,
(I reinstalled the server exactly 4 times. The screen froze while restarting with each installation. I finally made it. They published an under-investigation notification regarding this error in the warnings section of the Hetzner Robot page. Fortunately, I have now completed the installation without any problems. but I'm afraid to reboot :) I'm so tired of constantly loading 70GB backup files and more importantly creating all users from scratch.)

I added the ip addresses and assigned them to users. This time I did not create a reseller. I tried using it directly with the admin user. I am sharing the current IP addresses and configuration screenshot respectively.

I'm trying to install CSX using the script below. because I have the license for my server's main IP address:
Main ip: 178.63.1.47
cd /usr/src
rm -f cxs*
wget https://download.configserver.com/cxsinstaller.tgz
tar -xzf cxsinstaller.tgz
perl cxsinstaller.pl ipv4
rm -fv cxsinstaller.*
But when I try to install a package to the server, the main server uses different ip address:
ERROR LOG:

[root@server src]# tar -xzf cxsinstaller.tgz
[root@server src]# perl cxsinstaller.pl ipv4
OS: [CentOS Stream release 8] [ipv4]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 101 0 101 0 0 255 0 --:--:-- --:--:-- --:--:-- 255
Unable to install: Invalid license - contact [email protected] with your order details and IP address [178.63.1.41]
[root@server src]# rm -fv cxsinstaller.*
removed 'cxsinstaller.pl'
removed 'cxsinstaller.tgz'

Note:

i did this:
add to directadmin.conf
add_domain_to_domainips=1
if you want domains to use their dedicated IP for emails, also run rewrite confs
echo "action=rewrite&value=domainips" >> /usr/local/directadmin/data/task.queue
It uses IPv6 when sending emails. disable_ipv6=true If I turn off ipv6 Exim crashes and doesn't work again. Services page > Exim stopped. and i can't start again.
(I'm afraid to restart the server, sorry :)) If it doesn't open again, I have to do everything again.)
 

Attachments

  • 01-IP LIST.png
    01-IP LIST.png
    41.9 KB · Views: 62
  • 01-server dns.png
    01-server dns.png
    44.9 KB · Views: 64
  • 02-ipv6 disabblet and exim crashed.png
    02-ipv6 disabblet and exim crashed.png
    23.6 KB · Views: 53
Hello, I had to restart the server and it still wouldn't boot. I did a clean install from scratch at least 6 times. I sent a support request to Hetzner. I hope they care. I will let you know when the issue is resolved. Thank you very much.
I'm sorry for taking up your time due to circumstances beyond my control.
Best Regards
 
I'm sorry for taking up your time due to circumstances beyond my control.
That's no problem. It's best to first find out why the server does not reboot every time or keeps hanging on boot.
So please keep us informed on that.
Good luck!
 
Hello,
I moved to a completely new 3rd server. I gave up on Centos S8. I upgraded to Centos S9. I am using vmware esxi.
I added the IP addresses to directadmin ip management. All domains working with the Virtual server main IP are active. However, domains with additional IP definitions do not work. I think configurations are required in the ESXI server network settings. I searched on Google and hetzner documentation but couldn't fix it.
I tried these ways.
1- I bought single rope from Hetzner. I added it in directadmin ip management. it didn't work.
2- (installed esxi) For the main server ip, I purchased subnet ip addresses/29. I added it to directadmin. domains did not work.
3- For the virtual server ip, I purchased subnet ip addresses/29. I added it to directadmin. domains did not work.

I've been trying to figure out how to define subnet IP addresses to the ESXI server for hours now.
Please help me. I shouldn't waste time on simple tasks anymore. I need to get the server online without any problems. I couldn't take care of any other work.
 
Back
Top