0

In Wikipedia it sais:

A mail transfer agent (MTA) using greylisting will "temporarily reject" any email from a sender it does not recognize. If the mail is legitimate the originating server will, after a delay, try again and, if sufficient time has elapsed, the email will be accepted.

But how can I find out how long these delays are on my server and on the receiving side?

My goal is to speed up email-traffic with partners using greylisting too and speed up the receiving of the first email someone sends to customers on my server.

I tried to find out the configuration options, but none of the manuals I find give me any hint how to configure it on my old mail server (unfortunately still debian wheezy). There is no such file anywhere called grey_listing on my server.

1
  • 4
    The delay on the sending side would be determined by the retry interval configured in the MTA settings. I have no idea what it would be on the receiving side, but I suspect it's configurable and therefore variable, based on the particular configuration of each receiving server.
    – joeqwerty
    Commented Sep 7, 2013 at 20:07

3 Answers 3

6

In postgrey when receiving email the default is 300 seconds. That is, if the sender retries within 300 seconds it will be rejected again. Change that to, say, 60 seconds in /etc/default/postgrey with

--delay=60

2
  • There is already an "--inet" option in my config, so I will add it in the string like: POSTGREY_OPTS="--inet=10023 --delay=60 --max-age=999"
    – rubo77
    Commented Feb 21, 2017 at 9:41
  • If you know for what to search, you also find the right manual with all hints in linux.die.net/man/8/postgrey
    – rubo77
    Commented Feb 21, 2017 at 9:43
4

It's entirely dependent on the software being used to perform the greylisting and almost all of them will have a method to customize this value.

edit after your edit to the question:
Speeding up email traffic to partners using greylisting would involve getting your partners to exclude your emails so they are not delayed by the greylisting process.

Speeding up receving emails someone sends to your server will be hit or miss because different sending MTA's will retry at different intervals. If their first email is greylisted, the sending MTA might try to resend the message after 5 minutes, or 30 minutes, or sometimes never (it depends on how they have their server configured). You can "speed it up" by not using greylisting or whitelisting specific sender domains on your end to not deny the initial message.

1

I assume you're the sending party since you've then mentioned the receiving party.

The delays on the sending party's side (you) is entirely dependant on the software being used (you haven't mentioned). In Postfix, there are various configuration parameters to control this, the default retry timeout being 300sec (5 minutes) in current versions.

As for the delays on the receiving side (the ones enforcing grey-listing), there is no technical method to determine their configuration. You either need to reach out to the admin and ask politely, or do a series of trial-and-error tests. If I were the remote admin, I'd much prefer you ask me first.

4
  • So any objections if I set the queue_run_delay value to 100?
    – rubo77
    Commented Oct 28, 2013 at 22:56
  • 1
    Without being rude, I couldn't care less what your queue_run_delay is set to; it makes no difference to "me" as a receiving mail server. You haven't stated what your goal is, so I can't offer any input on the consequences of changing this, or if it will achieve your goal(s).
    – fukawi2
    Commented Oct 29, 2013 at 2:03
  • OK, as I understand, setting that queue_run_delay down will only speed up mails from customers sending from my server to receipients on servers that have greylisting and have a delay smaller than 100 too. When sending to my servers, that still have the default 300 I cannot optimize anything from my side. But I can speed up the --delay parameter rleir mentioned ;)
    – rubo77
    Commented Oct 29, 2013 at 13:43
  • Yes, you can reduce your timeout on messages being sent to you, but there is no way to control how long the sender will wait before retrying (probably the biggest shortcoming of grey listing)
    – fukawi2
    Commented Oct 29, 2013 at 22:30

Not the answer you're looking for? Browse other questions tagged .