On 09/15/2010 06:33 AM, Frank Doege wrote:
On 09/15/2010 01:47 AM, Jeroen Geilman wrote:
On 09/14/2010 12:13 PM, Frank Doege wrote:
Hi all,

id like to modify the message postfix sends to the server when it
rejects an email in one of the checks performed.

For example,

450 Helo command rejected: Host not found; http://readhereforemore.info

Any check_*_access map can return an error code and a custom reply message.

A restriction class can, too.



that administrators which have no clue about email systems have a bit
more information why iam rejecting there mail.

does this make sense ?

Btw: I use tumgreyspf and it also sends a custom dsn message, is this
non standard conform in any way ?

I don't understand what you mean by "custom DSN".
A DSN is a normal email message, its contents aren't written down anywhere.
There is an RFC about them, however.



Thanks

Frank


Hello Jeroen,

thanks for your answer.

The problem is the following, i see some legitimate mail beeing rejected by my mailserver because some other administrators are not capable of setting the name of their mailserver right (helo doesnt has an A record for example).

That is alas still quite common, and postfix has a variety of ways to deal with this. It seems to be the general consensus that you can freely reject mail when the HELO is invalid or not in f.q.d.n.com form; rejecting on an unkown HELO hostname is often too restrictive, however, as many people report issues with that.

I prefer to run all three HELO checks with warn_if_reject, so the actions are logged but no action is taken.

Now i think its just fine to reject this mail instead of accepting such mailservers, i would however like to give a small note why iam rejecting there mail. These administrators cant configure a mail server right so i dont think they understand "helo command rejected..." so id like to add a link where they can find more information.

You could use a policy service to act upon this using check_policy_service.


If iam right the sender receives a message from the server beeing rejected after several trys in the form of "iam giving up now, ...."

As you can see from the example you posted above, an unknown HELO hostname causes a temporary reject (code 450). Mail is only deferred (and retried) after the message was queued, and smtpd_* checks are run before a message is accepted.

there i would like that he sees a custom link http://whyismymailrejected

Maybe if many users are asking why there mail didnt got delivered they wake up and fix there servers.

Thanks,

Frank

Reply via email to