Changes

Jump to navigation Jump to search
Created page with "<span id="_top">Qpsmtpd#Plugins</span> = NAME = resolvable_fromhost = SYNOPSIS = Determine if the from host resolves to a valid MX or host. = [..."
<span id="_top">[[Qpsmtpd#Plugins]]</span>
= [[#___top|NAME]] =

resolvable_fromhost

= [[#___top|SYNOPSIS]] =

Determine if the from host resolves to a valid MX or host.

= [[#___top|DESCRIPTION]] =

The fromhost is the part of the email address after the @ symbol, provided by the sending server during the SMTP conversation. This is usually, but not always, the same as the hostname in the From: header.

'''resolvable_fromhost''' tests to see if the fromhost resolves. It saves the results in the transaction note ''resolvable_fromhost'' where other plugins can use that information. Typical results are:

<pre> a - fromhost resolved as an A record
mx - fromhost has valid MX record(s)
ip - fromhost was an IP
whitelist - skipped checks due to whitelisting
null - null sender
config - fromhost not resolvable, but I&lt;reject 0&gt; was set.</pre>
Any other result is an error message with details of the failure.

If '''resolvable_fromhost''' is enabled, the from hostname is also stored in ''resolvable_fromhost_host'', making it accessible when $sender is not.

= [[#___top|CONFIGURATION]] =

== [[#___top|reject &lt; 0 | 1 | naughty &gt;]] ==

If ''reject 1'' is set, the old require_resolvable_fromhost plugin behavior of temporary rejection is the default.

<pre> resolvable_fromhost reject [ 0 | 1 | naughty ]</pre>
Default: 1

== [[#___top|reject_type]] ==

<pre> reject_type [ perm | temp ]</pre>
Set ''reject_type perm'' to reject mail instead of deferring it.

Default: temp (temporary, aka soft, aka 4xx).

= [[#___top|EXAMPLE LOG ENTRIES]] =

<pre> 80072 (mail) resolvable_fromhost: pass, googlegroups.com has MX at gmr-smtp-in.l.google.com
80108 (mail) resolvable_fromhost: pass, zerobarriers.net has MX at zerobarriers.net
80148 (mail) resolvable_fromhost: pass, uhin.com has MX at filter.itsafemail.com
86627 (mail) resolvable_fromhost: palmalar.com has no MX
86627 (mail) resolvable_fromhost: fail, palmalar.com (SERVFAIL)</pre>
= [[#___top|AUTHORS]] =

2012 - Matt Simerson - refactored, added: POD, tests, reject, reject_type

2002 - Ask Bjørn Hansen - intial plugin

<!-- Generated Sat Apr 13 15:46:08 EDT 2019 using
perldoc -T -ohtml $plugins/$1 \|pandoc -f html -t mediawiki \|sed '1 i\\n\n\n<span id="_top">[[Qpsmtpd#Plugins]]</span>' \|sed -e 's#</d.>##'
-->
----
[[Category:Qpsmtpd|resolvable_fromhost]]

Navigation menu