When I use forward to send a message to myself (at another address), the email arrives fine and looks just as I would expect it to. However I also receive the following message back from my server:

Hi. This is the qmail-send program at ds762.dedicated.turbodns.co.uk.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<recipients@defaulthost.defaultdomain>:
Sorry, I couldn't find any host named defaulthost.defaultdomain. (#5.1.2)

<Undisclosed@defaulthost.defaultdomain>:
Sorry, I couldn't find any host named defaulthost.defaultdomain. (#5.1.2)

I can see nowhere where these addresses are coming from and they only seem to be generated by using forward.

Any ideas, anyone?

Regards

Patrick

CommentFileSizeAuthor
#3 forward_3.patch502 bytesdesignerbrent

Comments

weibeln’s picture

Hi Patrick.

I have exactly the same problem... Did you find a solution?

Thanks

Nadir

seanr’s picture

I wonder if this is because it's sending to undisclosed recipients in the to field in order to put all of the recipients in the BCC field. Anyone know of a better way to do this?

designerbrent’s picture

Assigned: Unassigned » designerbrent
Status: Active » Needs review
StatusFileSize
new502 bytes

Attached is a patch for this problem. All that I did was remove the "Undisclosed recipients" from the function call and it drupal_mail still sends the mail just fine without any 'To:' field and it does not produce an error for me.

hd’s picture

I experienced the same problem, and I guess most sites do without knowing about it, because of being hosted on web hotels.

As indicated above, simply replacing "Undisclosed recipients" by nothing solves the problem.

seanr’s picture

Status: Needs review » Fixed

Patch worked. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)