Send mail from user's dedicated IP

justjosh

Verified User
Joined
Oct 13, 2019
Messages
33
Hey,

A user informed me that their mails were getting blocked by Yahoo and I did a test on mail-tester.com and it appears it was being sent by the shared server IP. User has a dedicated IP and the DNS records has MX set to mail.domain.com which has A record to the dedicated IP.

How do I force DA to send via the dedicated IP?

I've set add_domain_to_domainips=1 in directadmin.conf and restarted directadmin but still have no files in /etc/virtual/domainips or /etc/virtual/helo_data


Thanks
 
Last edited:
This thread might be helpfull for you.

 
Also keep in mind that forms that use php mail will still use the server ip to send email.
 
This thread might be helpfull for you.

This thread seems to be for setting up exim on a single secondary IP. What I'm trying to do is get exim to send the mail from whatever dedicated IP each user has configured.

Following the guide for setting add_domain_to_domainips, I can't get the files in /etc/virtual to generate for some reason
 
Did you run:

Code:
echo "action=rewrite&value=domainips&empty=yes" >> /usr/local/directadmin/data/task.queue
 
Similarly, for helo_data:
All:
echo "action=rewrite&value=helo_data" >> /usr/local/directadmin/data/task.queue
Just for one IP:
echo "action=rewrite&value=helo_data&ip=1.2.3.4" >> /usr/local/directadmin/data/task.queue
 
This thread seems to be for setting up exim on a single secondary IP.
In that case I wonder if you have read this thread, because the first help section pointed to in that thread was this one:
which is definately for setting up exim on multiple ip's. There was also more talk about the domani ip's.

But hopefully you will succeed to get them by the tips from Floyd.

Be aware to change the directadmin.conf setting needed for this.
 
I am merely quoting pieces from the help section that he himself referenced. He didn't read it all the way through.
 
In that case I wonder if you have read this thread, because the first help section pointed to in that thread was this one:
which is definately for setting up exim on multiple ip's. There was also more talk about the domani ip's.

But hopefully you will succeed to get them by the tips from Floyd.

Be aware to change the directadmin.conf setting needed for this.
I am merely quoting pieces from the help section that he himself referenced. He didn't read it all the way through.

Apologies, the help section is not very well formatted. I read the exim.conf section and saw that it was not necessary for versions 4.4.x and I assumed that the rest of it was not necessary. I see now that I should have executed everything else below that section as well.

Thanks for pointing it out.
 
Back
Top