Sending e-mail "from" an inexistant e-mail address?

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
User avatar
Josh1billion
Forum Contributor
Posts: 316
Joined: Tue Sep 11, 2007 3:25 pm

Sending e-mail "from" an inexistant e-mail address?

Post by Josh1billion »

I noticed that when I send a large number of e-mails from noreply@seedsoftime.net with Swift Mailer, it doesn't work unless the noreply@seedsoftime.net e-mail address actually exists (otherwise it spits out some error into the logs, and doesn't end up sending to any of the receipients). And it also apparently doesn't work if the noreply@seedsoftime.net e-mail inbox has a ton of e-mails in it (e-mail storage filled up, I assume). So it only works if I have the e-mail address created, and then only works up until the e-mail gets full of e-mails (typically "Message returned to sender" mails). Basically, this forces me to have to go in and manually delete all e-mails that get sent back to the noreply@seedsoftime.net e-mail address.

Any way to send the e-mails when the e-mail address doesn't actually exist? Or alternatively, is there any way to, with CPanel, block all e-mails coming into that e-mail address?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Sending e-mail "from" an inexistant e-mail address?

Post by Chris Corbyn »

This is something specific to your server and nothing to do with Swift sorry ;) I'd suggest speaking to your host.

By the way, you should *never* send from an address which does not exist. You should create the address but just do not monitor it (that's the general way noreply@ addresses work). You obviously have to periodically delete the mail in the mailbox though.
User avatar
Josh1billion
Forum Contributor
Posts: 316
Joined: Tue Sep 11, 2007 3:25 pm

Re: Sending e-mail "from" an inexistant e-mail address?

Post by Josh1billion »

Chris Corbyn wrote:By the way, you should *never* send from an address which does not exist. You should create the address but just do not monitor it (that's the general way noreply@ addresses work). You obviously have to periodically delete the mail in the mailbox though.
I see.. that's what I'm doing right now, but the inbox fills up fairly quickly. Is there any way to block all e-mails, using CPanel, to that address? There's a SpamAssassin I believe, but it doesn't appear to be address-specific (i.e. if I put "block all e-mails from anyone, anywhere, anytime", it would also affect my "real" accounts).

Edit: Nevermind, I believe to have found it. For others who may wonder, it is in CPanel in: Mail -> E-mail Filtering -> Add Filter. Then you put the no-reply e-mail address in the "To" header.
Post Reply