# If the message contains SCR or PIF we want to Log this deny log_message = DENY: ATTACHMENT ($found_extension) for $acl_m3 message = Message Denied due to Content of a Unacceptable Attachment type of ($found_extension) \n \ Please use other means to send this type of file. \n \ If you have questions please contact postmaster@$qualify_domain demime = scr:pif:exe:com:bat delay = 30s ------------------------- deny from sender_host_address, MySQL acl_block_hosts: deny log_message = Connection from $sender_host_address denied \ by acl_block_hosts hosts = mysql;select 1 from blocks where \ address = '$sender_host_address' accept ------------------------- accept connection on port 587 accept hosts = +auth_relay_hosts condition = ${if eq {$interface_port}{587} {yes}{no}} endpass message = relay not permitted, authentication required authenticated = * ----------------- listen on two ports daemon_smtp_ports = 25 : 587 separate acl_smtp_rcpt ACLs for ports 25 & 587 acl_smtp_rcpt = ${if eq {$interface_port}{25} \ {check_recipient_port_smtp}{check_recipient_port_msa}} ------------------------- reject all addresses fo this form where yyyymmdd is older that roughly one year (stating an alternate address in the reject message in case a real human being sent the mail) deny domains = +local_domains : +virtual_domains local_parts = ^usenet-(\\d{8})\$ set acl_m0 = ${if match{$tod_log}{^\N(\d\d\d\d)-(\d\d)-(\d\d)\N}\ {${eval:($1*12)+$2}}{0}} set acl_m1 = ${if match{$local_part}{^usenet-\N(\d{4})(\d{2})\N}\ {${eval:($1*12)+$2}}{0}} set acl_m2 = ${eval:$acl_m0-$acl_m1} set acl_m3 = ${if <{$acl_m2}{13}{no}{yes}} message = This address has expired. Use usenet@example.com instead. condition = ${if eq{$acl_m3}{yes}{yes}{no}} delay = 30s first calculating the current month's number (year*12 + month) in acl_m0, then the number of the month given in the recipients address in acl_m1. Further along the difference is calculated, and if too large, the mail is rejected. WARNING: issue with octal (>= 08) ------------------------- deny message = We don't want your spam! Go away! log_message = adsl-ameritech reject condition = \ ${if and { \ {match{$lc:$sender_helo_name}}{adsl}} \ {match{$lc:$sender_helo_name}}{ameritech}} \ }{true}{false}} If the hostname (like adsl-###-###-###-###.ameritech.com), then try this: hosts = ^adsl.*\.ameritech\.com$ ------------------------- -------------------------