PDA

View Full Version : Unbalanced ">" bounce


natvetorg
02-14-2008, 01:25 PM
The mail server is receiving <name<xxx@xxx.xxx> ,this is causing the receiving server to bounce the message as "unbalanced".

I have the current release.

If someone can point me to the file to edit, it would be a great help.

Thanks

Nia

4ice
02-14-2008, 01:53 PM
Although I haven't heard anyone else with this problem, you might want to take a look at the files class.misc.php and class.ticket.php

Is it with all sent emails?

natvetorg
02-14-2008, 01:57 PM
Yes it is all emails.

Thanks for the files, will let you know.

natvetorg
02-14-2008, 02:42 PM
This what my mail server is getting from OsTicket

12:43:33 [25516895] cmd: MAIL FROM:<alerts@nvois.com<alerts@nvois.com>>
12:43:33 [25516895] rsp: 250 OK <alerts@nvois.com<alerts@nvois.com>

The second line is missing the ">"

I'm going to reboot the whole machine.

Rebooted both web and mail server machines. Still getting this. All other email going through fine.

This occurred when I installed newest version.

Just on a thought, I copied class.misc.php from RC2 over RC3 and it looks like this and runs fine.

13:03:35 [32977404] cmd: MAIL FROM:<support@nvois.com>
13:03:35 [32977404] rsp: 250 OK <support@nvois.com> Sender ok

Are you using pear now? If so, I have pear in my php.

natvetorg
03-25-2008, 01:21 PM
Upgraded to RC4 and I have the unbalanced problem again. Looked to the files, but all looked good.

Here is what my mail server is saying:

12:09:43 [60257] Delivery started for support@nvois.com<support@nvois.com at 12:09:43 PM
12:10:13 [60257] Sending remote mail for support@nvois.com<support@nvois.com
12:10:13 [60257] Connecting to 66.196.97.250
12:10:13 [60257] Connection to 66.196.97.250 succeeded
12:10:13 [60257] RSP: 220 mta102.mail.re3.yahoo.com ESMTP YSmtp service ready
12:10:13 [60257] CMD: EHLO mail.nvo.org
12:10:14 [60257] RSP: 250-mta102.mail.re3.yahoo.com
12:10:14 [60257] RSP: 250-8BITMIME
12:10:14 [60257] RSP: 250-SIZE 31981568
12:10:14 [60257] RSP: 250 PIPELINING
12:10:14 [60257] CMD: MAIL FROM:<support@nvois.com<support@nvois.com> SIZE=968
12:10:14 [60257] RSP: 501 Syntax error in parameters or arguments
12:10:14 [60257] CMD: QUIT

TunaMaxx
03-26-2008, 02:42 AM
I have (had) the same issue. I bullied my way into a solution by modifying class.misc.php around about line 66:
//$headers .= "From: ".$fromname."<".$fromaddress.">".$eol;
//$headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol;
//$headers .= "Return-Path: ".$fromname."<".$fromaddress.">".$eol;
//$headers .= "Message-ID: <".time()."-".$fromaddress.">".$eol;
//$headers .= "X-Mailer: osTicket v 1.6".$eol;
$headers .= "From: ".$fromaddress.$eol;
$headers .= "Reply-To: ".$fromaddress.$eol;
$headers .= "Return-Path: ".$fromaddress.$eol;
$headers .= "Message-ID: ".time()."-".$fromaddress.$eol;
$headers .= "X-Mailer: osTicket v 1.6".$eol;

Getting rid of the < and > characters from $headers was the only solution I could come up with. Otherwise, some servers (not all) would show the same problem you describe.

natvetorg
03-27-2008, 01:00 PM
Thanks! I'm glad I didn't have to migrate to something else!

TheITnerd
12-27-2008, 10:12 PM
Finally someone hits the nail on the head. I frankly did not even look at the smtp log deeply enough to see that the "<" ">" symbols were not correctly transmitted.

Thanks TunaMaxx.

mark11
02-10-2009, 09:31 PM
Finally someone hits the nail on the head. I frankly did not even look at the smtp log deeply enough to see that the "<" ">" symbols were not correctly transmitted.

Thanks TunaMaxx.
In my case I was getting a "550 Administrative prohibition error" because class.misc.php was sending the "Reply To:" address as "myuser@mydomain.com<myuser@mydomain.com>" Bluehost does not like the email name as the sender name. I had to modify (hardcode) the name in the place of ".$fromname." I realise this is going to be a problem for more that one department, but for now, anything helps. If anyone has any ideas why this happens, please let me know.

svardaman
02-11-2009, 07:58 PM
I'm pretty sure you have to have a space here (before the "<"):

"myuser@mydomain.com <myuser@mydomain.com>"