I added it to my /etc/postfix/maps/sender_access
Code: Select all
purchase@kalyanimotors.com REJECTGot me thinking though; a simple script could probably show me the most rejected sender-address from my /var/log/postfix/current and maybe even automagically add it to /etc/postfix/maps/sender_access and do a postfix reload....
Anyone fluent in grep, gawk, wc, sed or whatever might be needed to do that?
The log-lines are like this
Code: Select all
May 10 20:13:44 [postfix/smtpd] NOQUEUE: reject: RCPT from unknown[31.200.52.93]: 554 5.7.1 Service unavailable; Client host [31.200.52.93] blocked using tr.dnsbl.vlh.dk; Blocked using GeoIP - not accepting mail from Turkey, see http://whatismyipaddress.com/ip/31.200.52.93; from=<BoyerDarwin44599@carobcommunications.com> to=<Mike93@vlh.dk> proto=ESMTP helo=<[31.200.52.93]>
May 10 20:14:27 [postfix/smtpd] NOQUEUE: reject: RCPT from unknown[187.172.57.214]: 554 5.7.1 Service unavailable; Client host [187.172.57.214] blocked using mx.dnsbl.vlh.dk; Blocked using GeoIP - not accepting mail from Mexico, see http://whatismyipaddress.com/ip/187.172.57.214; from=<GardnerAngelica6946@intercars.lt> to=<Tawnie@vlh.dk> proto=ESMTP helo=<dsl-187-172-57-214-dyn.prod-infinitum.com.mx>
May 10 20:14:55 [postfix/smtpd] NOQUEUE: reject: RCPT from 104-40-238-49.southernonline.net[49.238.40.104]: 554 5.7.1 <purchase@kalyanimotors.com>: Sender address rejected: Access denied; from=<purchase@kalyanimotors.com> to=<KevinKimberlySinuk@vlh.dk> proto=ESMTP helo=<104-40-238-49.southernonline.net>

