• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Automated bounced users

Sunka

Well-known member
#1
I setup options in ACP but I do not know is automatic bouncing for users working or not working

I switch to Amazon SES for outgoing e-mails (SMPT), and it working like it should be.
I created gmail for bounced e-mails and setup that in ACP for automated bounced e-mail handler too.
All configuration you can see on screenshot below.

Also, I create Amazon SNS thread and notificaton for bounced e-mails and suscribe with bounced email address.

There is no log for bounced emails/users in ACP

xen.png
 

Mike

XenForo developer
Staff member
#2
If you send an email to the bounce account directly, does it get logged in the XF ACP eventually? (This can take around 30 minutes.) If so, it's going to be an issue with SES not sending the bounces to that address as expected.
 

Mike

XenForo developer
Staff member
#4
Are there any server error logs listed? You mention that XF "read" the email, but if there's no log entry in the ACP for it, then I'm not sure if that's the case. XF will log every email it reads, regardless of whether it's a bounce. Note that if you read the mail yourself, it's likely that XF won't process it again.
 

Sunka

Well-known member
#5
I get notification that there is new mail in my bounced e-mail, after xenforo cron is passed, mails are not show any more (they are automatically archived after reading).
Is there problem maybe that xenforo can not recognize that this is bounced email?

Example of mail for test user with fake mail:
Code:
AWS Notifications no-reply@sns.amazonaws.com via amazonses.com
Mar 1 (2 days ago)

to me
{"notificationType":"Bounce","bounce":{"bounceSubType":"General","bounceType":"Transient","reportingMTA":"dsn; a6-178.smtp-out.eu-west-1.amazonses.com","bouncedRecipients":[{"action":"failed","emailAddress":"e671932@trbvm.com","status":"4.4.7","diagnosticCode":"smtp; 554 4.4.7 Message expired: unable to deliver in 840 minutes.<421 4.4.0 Unable to lookup DNS for trbvm.com>"}],"timestamp":"2016-03-01T00:09:14.317Z","feedbackId":"000001532f81e0c0-31f8b3a4-6a1e-47e2-9651-d8c45449d260-000000"},"mail":{"timestamp":"2016-02-29T09:29:15.000Z","sourceArn":"arn:aws:ses:eu-west-1:695309777512:identity/info@pijanitvor.com","sendingAccountId":"695309777512","source":"info@pijanitvor.com","messageId":"010201532c5c3b7e-6261361d-51d0-46d6-ac67-02a776ec3b4e-000000","destination":["e671932@trbvm.com"]}}
 

Mike

XenForo developer
Staff member
#6
Is there problem maybe that xenforo can not recognize that this is bounced email?
That's not a bounce -- it's a notification from AWS/SNS, but it's not what a normal bounced email looks like. So no, XF won't be able to process that. (There should still be a log that it read it though.)
 

Sunka

Well-known member
#8
Also, will users with status user state email invalid (bounced) get some notification regarding that, or should I create some notice for that users?
 

Sunka

Well-known member
#10
what is phrase for that notice so I could change it, and is ther way to disable that notice and create custom one with default notice system?
 

Breixo

Active member
#13
That's not a bounce -- it's a notification from AWS/SNS, but it's not what a normal bounced email looks like. So no, XF won't be able to process that. (There should still be a log that it read it though.)
Ah, now log shows something.
Is it like expected?
Is this image confirm that now automated bounced and bounced email settings is configured OK?

View attachment 129707
Same issue here.
Any idea how to turn from "notificationType" to "normal bounced email"? I'm out of ideas after trying many alternatives.
I'm also using bd_mails as @Mouth stated here, but still no results:
1510140176562.png
{"notificationType":"Bounce","bounce":{"bounceType":"Permanent","bounceSubType":"General","bouncedRecipients":[{"emailAddress":"sinpubli <sinpubli12312as@gmail.com>","action":"failed","status":"5.1.1","diagnosticCode":"smtp; 550-5.1.1 The email account that you tried to reach does not exist. Please try\n550-5.1.1 double-checking the recipient's email address for typos or\n550-5.1.1 unnecessary spaces. Learn more at\n550 5.1.1 https://support.google.com/mail/?p=NoSuchUser p92si2265413edp.537 -...
1510140297529.png
Thanks for your help!
 

Breixo

Active member
#14
After many attempts I noticed that "Delivery Status Notification (Failure)" arrive to "Default Email Address" when no "Bounced Email Address" is stated at "Email Options":
1510143617610.png

But, when I write the bounced email address... nothing goes to that address, neither to spam:
1510143730237.png
Is there a bug? Any idea why that's not working?

On the other hand, if I set up SNS and SES at AWS (as explained by @Anthony Parsons https://xenforo.com/community/threads/amazon-ses-with-xenforo.25136/page-4#post-938849 thanks! :) ), emails arrive, but as mentioned before, just the notification, not the bounced email:
1510144031840.png
So went back to no-SNS...
1510143860922.png
I don't know what else to try :(
 

Breixo

Active member
#15
Just in case someone have the same problem.
Finally solved it by registering and verifing bounced email accout also at AWS > SES, without SNS.
There was also a problem with google security, it blocked access from server to the email account because first time I didn't activate the "less secure app". Solved by changing the password and confirmation that it was "me" from server IP.