Forwarded emails


#1

I would like to set up a large number of forwarded email addresses that can be controlled from php. I can do this with dreamhost?


#2

There is no published API for interfacing with the DreamHost email account/forwarding set-up processes that are available from the control panel.

That doesn’t mean it can’t be be done; only that it can’t be done easily. If you search these forums you will find example code where others have implemented some degree of “control” (for instance, the ability to create an address under a DreamHost account that forwards to an existing email box on Dreamhost) via PHP. You could always use that code as a “starting point”.

It’s hard to say more as I don’t really know what functions/properties of the “forwarded email address” you are talking about when you say “controlled by php” (creation, deletion, editing, password change, change where it forwards to, etc).

At any rate, doing any of that would be an unsupported programming project that would likely break if certain changes were applied to the DreamHost panel in the future - you could hack something together, but without an established API, you would have no way of knowing if it could be expected to continue to work for any period of time. :wink:

–rlparker


#3

Actually, this can be done. Firstly, set up a catch-all mailbox from the DreamHost web panel. Secondly, write a script which accesses the mailbox through POP or SMTP and forward emails to various email addresses by checking the designated email address in the message. Lastly, set up a cron job to run this script at a set interval. I hope this would answer your question.

Alternatively if you are looking to import a large number of forwarded email addresses (not controlled by web interface), there is such a function in the DreamHost web panel.

||||||||||||||||||||||||||||||||||||||||||||||||||
Check Out DreamHost Promo Codes


#4

That’s a good idea and a nice post. I think you understood what the OP was wanting to do a lot better than I did. :slight_smile:

–rlparker


#5

[quote]a large number

[/quote]

You should be aware of restrictions on email rates, although it may or not apply to what you do.

[quote]49. Do you allow mailing lists to be sent out from your servers? What is the email per hour limit?

You should use our mailing list software for any mailing lists you want to run with us. Websites that send email are limited to 100/hr via SMTP and 200/hr via SSH/SHELL. All mailings must be compliant with our anti-spam policy.

http://wiki.dreamhost.com/116_Common_Questions[/quote]
-±$-±$-±
[color=#CC0000]$97 Cash Back[/color] [color=#0000CC]JOHNGALT97[/color] ][ [color=#0000CC]JOHNGALT[/color] [color=#CC0000]$96 Cash Back[/color] ($1 for me)


#6

Note that it is possible to remove the limits on email sent by contacting DreamHost through the “Contact Support” section in the web panel although it differs on a case to case basis.

||||||||||||||||||||||||||||||||||||||||||||||||||
Check Out DreamHost Promo Codes


#7

IIRC, you at least need to have a double opt-in email policy.

Free unique IP and $67 off with promo code [color=#CC0000]FLENSFREEIP67[/color] or use [color=#CC0000]FLENS97[/color] for $97 off. Click here for more options