Antw: Re: From adress must match the smtp clients DNS domain

Gerhard Rappenecker G.Rappenecker at hs-offenburg.de
Wed Jun 22 15:11:56 CEST 2016


Hi Curtis,

thanks for your suggestion but it seems not to realize my idea. I'll try to describe it better:

When a smtp client with the IP address 1.2.3.4 and the DNS hostname host1.mydomain delivers messages to my postfix/amavis MTA with tcp/25, all the messages must have from-headers and envelope-from-addresses of the form any_user at host1.mydomain. I want to configure my MTA to apply this policy only to the IP 1.2.3.4 or the subnet 1.2.3.0/24

Is there any other advice?

Best regards
Gerhard Rappenecker



>>> Curtis Maurand <curtis at maurand.com> schrieb am Dienstag, 21. Juni 2016 um 13:16
in Nachricht <2e13bd11-2637-8415-1436-3db349191dd0 at maurand.com>:
> On my system this is done with postfix.
> 
> smtpd_recipient_restrictions = permit_sasl_authenticated,
>                                 permit_mynetworks,
>                                 reject_unauth_destination,
>                                 reject_invalid_hostname,
>                                 ...
> 
> 
> smtpd_helo_required = yes
> smtpd_helo_restrictions = permit_mynetworks,
>                            reject_invalid_helo_hostname,
>                            reject_non_fqdn_helo_hostname,
>                            reject_unknown_helo_hostname
> 
> 
> Statistics since Sunday.
> 
> 104 messages blocked by rbl zen.spamhaus.org
> 
> 33 messages blocked by rbl  bl.spamcop.net
> 
> 21 messages blocked by rbl  b.barracudacentral.org
> 
> 211 messages quarantined by amavis
> 
> 210 messages blocked by amavis
> 
> 3635 blocked by no reverse DNS
> 
> 
> Hope this helps,
> Curtis
> 
> On 6/16/2016 8:18 AM, Gerhard Rappenecker wrote:
>> Hi all,
>>
>> I want to reject mails from some smtp clients specified by IP or subnet, if 
> the from address don't match the clients DNS Domain.
>> Can anyone help me?
>>
>> My environment:
>> postfix 2.11.6
>> amavisd-new-2.8.1
>>
>> I allready posted this message yesterday but it seems something went wrong
>>
>> Regards
>> Gerhard
>>
>>
>>
> 
> -- 
> Curtis Maurand
> curtis at maurand.com <mailto:curtis at maurand.com>
> 207-252-7748



More information about the amavis-users mailing list