Gerhard Rappenecker
2016-06-22 13:11:56 UTC
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 ***@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
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 ***@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
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
Curtis Maurand
207-252-7748
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
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.I want to reject mails from some smtp clients specified by IP or subnet, if
Can anyone help me?
postfix 2.11.6
amavisd-new-2.8.1
I allready posted this message yesterday but it seems something went wrong
Regards
Gerhard
--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
207-252-7748