Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mail receiving delay

Hi all,

If this has been answered here before, I apologize, I could not find it.

It seems that the mail server is delaying email arbitrarily from outside senders. What is happening is if say "sender@msn.com" sends an email directly to "user@mymacserver.com", the Mac Server is not putting it right through, it will show up in a few hours later. But if the same user, "sender@msn.com" replies to an email sent from "user@mymacserver.com" it comes through right away.

The problem is happening very arbitrarily and with multiple outside domains and senders, so I cannot figure out how to troubleshoot it...

Also on a side note, the logs state that some of the users exist more than once. (i.e dovecot[58]: auth(default): od(username@domain.tld, [IP Address] ): user "username" exists more than once ). I don't know if this has something to do with it, I kind of figured it was a Workgroup Manager issue with shortnames.

Mac Mini, Mac OS X (10.6.3), OSX Server 10.6.3

Posted on Apr 6, 2010 9:40 AM

Reply
25 replies

Apr 9, 2010 12:25 PM in response to Corey Blaser

The user exists more than once things is annoying, but normal as far as I can tell, with my server running in good shape.

The delay has me troubled. If the DNS is setup properly, etc, it should be fairly quick. When you send an email to your server (the current slow way) does anything show up in the logs? If it doesnt show up right away, it might be a DNS resolving issue on MSN (your example)'s end. When you send msn an email, it technically knows the path back quicker without having to do a full lookup (cached).

But if it hits your log file right away and then doesnt show up...it will be something completely different.

Let me know..

Apr 12, 2010 12:30 PM in response to Kostas B

Greylisting was a user-requested feature for the mail server to help reduce the spam which accounts for more than 80% of mail sent to the average mail server. Delivery delays are eliminated over time as valid source addresses are added to the whitelist. If I may ask, is the delay not worth blocking spam?

If you would like to tune your settings, full postfix configuration options can be found here:
http://www.postfix.org/SMTPDPOLICYREADME.html#greylist

Apr 13, 2010 1:42 AM in response to keeperofthecheese

@chris, svr mgr, 1 of 5:
Greylisting is certainly a good thing to have in ones anti-spam arsenal. However, it would be better to have it as a separate option in Server Admin. Users are under the impression they "simply" enable a spam or virus filter and thus do not realize this may cause delays. Furthermore, greylisting needs to be GUI configurable (think whitelists) as there are unfortunately many legit mail servers not retrying (I know they should, but they are not).

Apr 13, 2010 5:43 PM in response to pterobyte

It is our experience that unfamiliar users are confused by the overwhelming choices offered by Server Admin's mail settings GUI, while advanced administrators often go directly to the configuration files. Adding another configurable GUI option will only exacerbate new user confusion will essentially be ignored by advanced users.

I have seen requests such as "provide better spam filtering!" not "please provide me with every possible option to tune my spam settings". Greylisting addresses the former, while the postfix documentation offers advanced users the latter's flexibility. So, I ask my question in a different way: given a significant percentage of X Server administrators with little mail service admin experience, how would you present greylisting to maximize the benefit to the customer base? (And no, I'm not being snarky, I'm trying to gather suggestions for improving the product.)

Apr 14, 2010 5:02 AM in response to keeperofthecheese

Chris,

I agree that inexperienced users are overwhelmed and may have difficulties to decide which options they need to use. I also fully agree that greylisting will block significant amounts of spam and is well suited for a mail server maintained by non professionals. However, "stealthy" options confuse new users even more.

In Server Admin, they tick "Enable junk mail filtering" and as soon as they do so, several grayed out options become active. While they may not be familiar to the beginner, the options are written on that page and can be looked up.
Nowhere does it say that greylisting is going to be enabled and so a user doesn't even know what to look for if things do not work. All the user notices are delays.

The problem is further amplified by the fact that the warning logged in mail.log does not specify what is happening. The policy server logs:
"NOQUEUE: reject: RCPT from... 450 ... Recipient address rejected: Service is unavailable;"

while for example Postgrey will log something like:
"NOQUEUE: reject: RCPT from... 450 ... Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/example.com.html;"

Having this extra bit of information would help the inexperienced user in asking for help.

Add to this that greylisting can cause the loss of legit mail if not provided with a whitelist and you get unhappy users.

If it was my call, I'd implement one or more of the following in order of priority:
-A seperate checkbox for Greylisting
-Replace "Refuse all messages from these hosts and networks" with a listbox for whitelisted domains (Refusing mail by IP has become pointless nowadays. Spam comes mostly from botnets).
-Log an explicit warning in mail.log
-If there is no separate checkbox, display a warning when users tick "Enable junk mail filtering", so they now about greylisting

And talking about keeping options down to the minimum: "Accepted languages and locales" is not a very effective measure in fighting spam and can be left to the admins willing to look under the hood.

Thanks for listening. 🙂

HTH,
Alex

Apr 19, 2010 11:56 AM in response to Corey Blaser

Thanks everyone for the help. It was grey listing that was causing the problem. Once we turned it off, email started coming in as expected. I wanted to give it a week or so of testing to make sure, but it worked! 🙂

Also, my thought, I do think that a GUI solution should be present and I like Alex's solution. It is simple and to the point, but still would allow a "nuts and bolts" admin the option to tinker via command line for more advanced options. But better logs are a must have in my book. /my 2¢

Jun 2, 2010 10:21 AM in response to Kostas B

when I make the changes in main.cf to disable grey-listing and reload postfix, I get the following errors repeatedly in the mail.log:

Jun 2 12:50:05 mail postfix/smtpd[9063]: fatal: parameter "smtpd recipientrestrictions": specify at least one working instance of: check relaydomains, reject unauthdestination, reject, defer or defer ifpermit

What else needs to be done after the changes in pterobyte's solution?

Mail receiving delay

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.