AOL’s misconfigured SMTP servers bouncing emails with 521 error
We’ve fount out there is a problem with AOL SMTP servers that randomly reject emails with this hard error code:
521 5.2.1 "Service unavailable. Please try again later."
In fact this doesn’t happen very often and we may not have noticed something like that even happens if we hadn’t sent newsletters to our customers which counts thousands of emails to aol.com domain. In fact, it happened with 9 emails from total 3000 emails sent to aol.com but once these 9 people are your customers it may bother you.
From the technical point of view it seems like one of the SMTP servers (suppose aol has dozens of MX servers in cluster behind something like content switch) is not configured properly and responds with 521 error (5xx are hard errors) instead of 421 which causes the email to bounce back to sender immediately. Here you can see the table of SMTP reply codes and as you can see 521 is not defined here which proves 521 error code is not very common. According to RFC1846 521 SMTP error code exists but doesn’t seem to be a real reason why AOL rejects randomly emails.
We’ve considered options how to deal with this awkward behaviour and ended up with reconfiguring our mail server to transform a reply from remote SMTP server from error 521 to 421.
To accomplish this with Postfix you need to run at least Postfix 2.7 or later. We’re running servers on RHEL 5 which comes with Postfix version 2.3.3 and even RHEL 6 doesn’t come with anything than 2.6.6 in official repositories so we were forced to upgrade to 3rd party package of Postfix directly to latest version 2.9.
There was smtp_reply_filter parameter presented in Postfix 2.7 which does exactly what we needed.
- create /etc/postfix/reply_filter and insert this line:
/^521.*/ 421 Service not available, closing transmission channel - add this parameter into main.cf file:
smtp_reply_filter = pcre:/etc/postfix/reply_filter - restart postfix
Posted in Server administration
16 Responses to “AOL’s misconfigured SMTP servers bouncing emails with 521 error”
Leave a Reply
You must be logged in to post a comment.
Hurrah, that’s what I was seeking for, what a stuff! existing here at this webpage, thanks admin of this web site.
You really make it appear so easy with your presentation but I in finding
this matter to be actually one thing that
I think I might by no means understand. It seems too complicated and
very broad for me. I am looking ahead to your
subsequent post, I will try to get the hang of it!
Everything composed was actually very logical. However, think about this, suppose you added a little content?
I mean, I don’t want to tell you how to run your blog, however what if you added a title to possibly grab people’s attention?
I mean AOL
whoah this weblog is excellent i love reading your articles.
Keep up the great work! You realize, a lot of persons
are looking round for this information, you can aid them greatly.
I think this is among the most vital info for me. And i’m glad reading your article. But wish to remark on some general things, The website style is excellent, the articles are really great : D. Good job, all the best.
whoah this blog is fantastic i like reading your articles. Keep up the good work!
You understand, a lot of individuals are searching round for this information, you could aid them greatly.
Helpful info. Fortunate me I found your web site by accident,
and I am shocked why this twist of fate didn’t happened earlier!
I bookmarked it.
What’s up, all the time i used to check web site posts
here early in the dawn, for the reason that i like to
learn more and more.
Thank you man! But as we don’t want to filter messages like RLY:SN, only CON:B1, I myself used:
cat /etc/postfix/reply_filter
/^521 5\.2\.1 : \(CON:B1\) http:\/\/postmaster\.info\.aol\.com\/errors\/554conb1\.html/ 421 5.2.1 : (CON:B1) http://postmaster.info.aol.com/errors/554conb1.html
hi can’t send any mail to our AOL customers since 14 jan , cause this error 521 5.2.1 : (HVU:B1)
ip reputation are neutral
we updated our system
and still the same problem
i tweeted this prblm on https://twitter.com/aolmailhelp but no one answer me
so if anyone have the same issue or have any idea about this
I appreciate, cause I discovered just what I used to be having a look for. You’ve ended my 4 day lengthy hunt! God Bless you man. Have a nice day. Bye
Have you ever thought about adding a little bit more
than just your articles? I mean, what you say is fundamental and everything.
However think about if you added some great photos or videos
to give your posts more, “pop”! Your content is excellent but with pics and clips, this
site could undeniably be one of the very best in its niche.
Fantastic blog!
Piece of writing writing is also a fun, if you know after that you can write
otherwise it is complicated to write.
You need to take part in a contest for one of the most useful blogs online.
I’m going to recommend this site!
I am genuinely thankful to the holder of this web page who
has shared this impressive piece of writing at here.
I don’t know how anybody can say it doesn’t happen very much. I’ve had it happen 3 times in the past 2 weeks, and those are only the ones I KNOW about, because the senders informed me. I’m looking for another email service – anybody got any suggestions. I already have Yahoo and hate it.