LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SMTP random ip address in sending email (https://www.linuxquestions.org/questions/linux-newbie-8/smtp-random-ip-address-in-sending-email-4175441817/)

conflicker 12-17-2012 02:58 PM

SMTP random ip address in sending email
 
Hi everybody,

Do you have any idea, on how to send email using smtp server that randomly change the ip address to prevent being block by other mail company like gmail, yahoo, etc.?

I have a php based mailer application and I used smtp accounts to send mail under CentOS 5 platform. My application is now in the point of sending thousands of mail per hour and the problem is, my server was easily block by other mail company, if my server will send consecutive mail for a short time.

Let say I need to send mail to "user1@gmail.com,user2@gmail.com and more", the gmail will consider my server as spammer and that way google will decide to block my server in sending mail.


I'm just wondering if there is any server configuration that will randomly provide ip address to send mail to other mail company.

I hope this make sense to you guys, thank you for any help.



-Conflicker

jmc1987 12-17-2012 03:13 PM

Using a dynamic IP will get your email flagged or blocked due to spam rules. You should get a dedicated ip so your ip can build a rep with each isp over time and determine its trust worthy. If your sending small amounts of email and I mean small amounts then you might be able to get away with it. But you'll have to maintain dynamic DNS which can be a pain. dyndns.org can help with this. I suggest you check out sites like lowendbox.com and find you a cheap vps to configure as a mail server. Centos 6 with postfix/dovecot is probably the easiest way to go. This will allow to you maintain static dns, enable dkim, spf. But still start sending mail in small amounts to keep the ip from being flagged at the start and make sure all your email includes opt out links.

You can also consider paying for a smtp from people like google, enome, etc.

Kustom42 12-17-2012 03:15 PM

Conflicker,


You are basically asking how to spoof for spam purposes. First thing, if this server is hosted by a provider they should have an SMTP server you can use as a Smart Host which they will maintain the IPs for and make sure they get removed from the blocklists. I was an e-mail admin at one point in time and spent a big part of my time getting ips removed from blocklists due to these automatic triggers that happen with spam filters. If your provider cannot provide you with a smart host then find a new one as this is something that every reputable provider has. If you are hosting this locally your ISP should have an SMTP server that you can use, you should call them and verify that you are not going to violate any of their terms(sometimes they will make you pay more for business email sending).


This should get you in the right direction, but if you can't relay your outgoing mail through a smart host you will just have to stay on top of your outgoing emails and remove your IPs from the blocklists as soon as they are added. It is a pain but is apart of being an admin of a mail server.

conflicker 12-18-2012 12:29 AM

Thank you guys for your response.

I've been searching in google and found this exim feature of whm/cpanel. I wonder if it can manage to maintain IPs and get removed from block list.


Any idea?

Kustom42 12-19-2012 01:14 PM

It doesn't automatically remove you from blocklists, there is no automated blocklist removal tool that I know of and can't imagine there would ever be one as the spam lists like spamhaus aren't going to go for something automated like that.

jmc1987 12-19-2012 01:17 PM

If you are worried about block list I suggest you sign up with loop back feed from yahoo, aol, etc. Basically you'll provide enough information that if spam starts to go to there servers from you server the'll send a notification for you to look into it to prevent a block from happening.

There is no standard on block list so building something automated is impossible. As Kustom said they aren't going to provide an API for auto removal. That'll open the doorway to spammers.


All times are GMT -5. The time now is 06:23 PM.