Multi IP Server & PhpMailer
Posted: Tue Oct 15, 2019 9:03 pm
Hello everyone,
I have an Centos server with multiple IPs (5 different). All 5 websites are served over different IP addresses. The problem is one of my website do not support SMTP mailing, just PHPmailer (old script).
This cause the website send emails over the main IP address, now the IP is blacklisted in spamhaus because it belongs to my main domain... (lol)
Is there an option to set phpmailer for website & IP based? I could not find an option (site based php.ini maybe?) By the way, i'm a newbie with PHP but i'm open for self development, so please share your experiences and i will try my best to fix it.
If i can't find an option, i will move the old script to the main IP address, so it can do whatever it want... but i prefer to learn a method to spare all website to their IP addresses for mailing to prevent any other spam situation.
Edit : Oh by the way, it looks like i have to edit exim config too for setting ip addresses for domains too. Please inform me about that also.
Edit2 : I think i found the solution of exim, but still curious about phpmailer: viewtopic.php?t=11789
Thanks.
I have an Centos server with multiple IPs (5 different). All 5 websites are served over different IP addresses. The problem is one of my website do not support SMTP mailing, just PHPmailer (old script).
This cause the website send emails over the main IP address, now the IP is blacklisted in spamhaus because it belongs to my main domain... (lol)
Is there an option to set phpmailer for website & IP based? I could not find an option (site based php.ini maybe?) By the way, i'm a newbie with PHP but i'm open for self development, so please share your experiences and i will try my best to fix it.
If i can't find an option, i will move the old script to the main IP address, so it can do whatever it want... but i prefer to learn a method to spare all website to their IP addresses for mailing to prevent any other spam situation.
Edit : Oh by the way, it looks like i have to edit exim config too for setting ip addresses for domains too. Please inform me about that also.
Edit2 : I think i found the solution of exim, but still curious about phpmailer: viewtopic.php?t=11789
Thanks.