Ticket #336 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Emails getting returned with error message: 553 From: address not verified

Reported by: kmaclean Owned by: kmaclean
Priority: critical Milestone: WebSite 0.2.1
Component: Web Site Version: Website 0.2
Keywords: Cc:

Description

Some emails not getting delivered immediately from WebGUI, then after a time they get sent. Not sure what has changed at Rogers/Yahoo?.

They get returned with this message:

Mail Delivery Subsystem <MAILER-DAEMON@ruby.localdomain> 	
to contact
	
show details
	 1:01 pm (1 hour ago) 
  ----- The following addresses had permanent fatal errors -----
<kmaclean@voxforge.org>
   (reason: 553 From: address not verified; see http://help.yahoo.com/l/us/yahoo/edit/alternate_email/index.html)

  ----- Transcript of session follows -----
... while talking to smtp.broadband.rogers.com:
>>> MAIL From:<contact@voxforge.org>
<<< 553 From: address not verified; see http://help.yahoo.com/l/us/yahoo/edit/alternate_email/index.html
501 5.6.0 Data format error

Final-Recipient: RFC822; kmaclean@voxforge.org
Action: failed
Status: 5.1.3
Diagnostic-Code: SMTP; 553 From: address not verified; see http://help.yahoo.com/l/us/yahoo/edit/alternate_email/index.html
Last-Attempt-Date: Fri, 15 Feb 2008 13:01:08 -0500


---------- Forwarded message ----------
From: <second@hush.com>
To: kmaclean@voxforge.org
Date: Fri, 15 Feb 2008 11:52:35 -0600
Subject: ralfherzog-20080215-de118

[...]

Change History

comment:1 Changed 12 years ago by kmaclean

WebGUI's post.pm script sets the from address as follows:

=head2 notifySubscribers ( )

Send notifications to the thread and forum subscribers that a new post has been made.

=cut

sub notifySubscribers {
    my $self = shift;
    my $i18n = WebGUI::International->new($self->session);
    my $var = $self->getTemplateVars();
    my $thread = $self->getThread;
    my $cs = $thread->getParent;
    $cs->appendTemplateLabels($var);
    $var->{relativeUrl} = $var->{url};
    my $siteurl = $self->session->url->getSiteURL();
    $var->{url} = $siteurl.$self->getUrl;
    $var->{'notify.subscription.message'} = $i18n->get(875,"Asset_Post");
    my $user = WebGUI::User->new($self->session, $self->get("ownerUserId"));
    my $setting = $self->session->setting;
    my $returnAddress = $setting->get("mailReturnPath");
    my $companyAddress = $setting->get("companyEmail");
    my $listAddress = $cs->get("mailAddress");
    my $posterAddress = $user->profileField("email");
    my $from = $posterAddress || $listAddress || $companyAddress;
    my $replyTo = $listAddress || $returnAddress || $companyAddress;
    my $sender = $listAddress || $companyAddress || $posterAddress;
    my $returnPath = $returnAddress || $sender;
    my $listId = $sender;
    $listId =~ s/\@/\./;
    my $domain = $cs->get("mailAddress");
    $domain =~ s/.*\@(.*)/$1/;
    my $messageId = "cs-".$self->getId.'@'.$domain;
    my $replyId = "";
    if ($self->isReply) {
        $replyId = "cs-".$self->getParent->getId.'@'.$domain;
    }
    my $subject = $cs->get("mailPrefix").$self->get("title");
    
    foreach my $subscriptionAsset ($cs, $thread) {
        $var->{unsubscribeUrl} = $siteurl.$subscriptionAsset->getUnsubscribeUrl;
        $var->{unsubscribeLinkText} = $i18n->get("unsubscribe","Asset_Collaboration");
        my $message = $self->processTemplate($var, $cs->get("notificationTemplateId"));
        my $groupId = $subscriptionAsset->get('subscriptionGroupId');
        my $mail = WebGUI::Mail::Send->create($self->session, {
			from=>"<".$from.">",
			returnPath => "<".$returnPath.">",
			replyTo=>"<".$replyTo.">",
			toGroup=>$groupId,
			subject=>$subject,
			messageId=>'<'.$messageId.'>'
			});
        if ($self->isReply) {
            $mail->addHeaderField("In-Reply-To", "<".$replyId.">");
            $mail->addHeaderField("References", "<".$replyId.">");
        }
        $mail->addHeaderField("List-ID", $cs->getTitle." <".$listId.">");
        $mail->addHeaderField("List-Help", "<mailto:".$companyAddress.">, <".$setting->get("companyURL").">");
        $mail->addHeaderField("List-Unsubscribe", "<".$siteurl.$subscriptionAsset->getUnsubscribeUrl.">");
        $mail->addHeaderField("List-Subscribe", "<".$siteurl.$subscriptionAsset->getSubscribeUrl.">");
        $mail->addHeaderField("List-Owner", "<mailto:".$companyAddress.">, <".$setting->get("companyURL")."> (".$setting->get("companyName").")");
        $mail->addHeaderField("Sender", "<".$sender.">");
        if ($listAddress eq "") {
            $mail->addHeaderField("List-Post", "No");
        } else {
            $mail->addHeaderField("List-Post", "<mailto:".$listAddress.">");
        }
        $mail->addHeaderField("List-Archive", "<".$siteurl.$cs->getUrl.">");
        $mail->addHeaderField("X-Unsubscribe-Web", "<".$siteurl.$subscriptionAsset->getUnsubscribeUrl.">");
        $mail->addHeaderField("X-Subscribe-Web", "<".$siteurl.$subscriptionAsset->getSubscribeUrl.">");
        $mail->addHeaderField("X-Archives", "<".$siteurl.$cs->getUrl.">");
        $mail->addHtml($message);
        $mail->addFooter;
        $mail->queue;
    }
}

may need to change this line:

my $from = $posterAddress
$listAddress $companyAddress;

to point to an address that is verified by Yahoo's smtp servers

comment:2 Changed 12 years ago by kmaclean

others are experiencing the same type of error:

comment:3 Changed 12 years ago by kmaclean

this might be a solution:

Had the same problem starting tonight (Feb 11th), went to the link suggested in the error message but it was useless.

I found I had to press the "Options" link in upper right of the Yahoo Mail Classic screen, the "Mail Addresses" under "Management" on the next screen and then "Add" a mail account. I wasn't asked to verify anything but now my send works again.

added contacts@… to my yahoo/rogers mail account (using classic mode) ... see if this fixes the problem

comment:4 Changed 12 years ago by kmaclean

should read:

added contact@… to my yahoo/rogers mail

comment:5 Changed 12 years ago by kmaclean

  • Status changed from new to closed
  • Resolution set to fixed

the above-noted changes seem to have fixed the problem - no more bounced emails

Note: See TracTickets for help on using tickets.