Hello to list, I am using postfix-2.5.5 on gentoo box in a virtual domain environment. Some of my users just copy paste the email addresses which contains some non-ascii characters in their recipients list which results in delaying mails for other users because it gets stuck in amavis. I am trying to reject these kind of mails to enter in to postfix. I am trying to achieve this in my test scenario setups like.
smtpd_recipient_restrictions = check_sender_access pcre:/etc/postfix/ascii.pcre permit_mynetworks ........... cat /etc/postfix/ascii.pcre /[^[:ascii:]]/ REJECT Non-Ascii Characters But i am not able to block. My postfix is accepting this mail. I am testing like "test @test.com" "[EMAIL PROTECTED]" "test<@test.com" and like wise. Here is my postconf -n command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix debug_peer_level = 2 header_checks = pcre:/etc/postfix/header_checks home_mailbox = .maildir/ html_directory = /usr/share/doc/postfix-2.5.5/html inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain mydomain = xxxx.blr myhostname = bijayant.xxxx.blr mynetworks = 192.168.99.0/24, 127.0.0.0/8 mynetworks_style = subnet myorigin = $mydomain newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.5.5/readme sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtpd_recipient_restrictions = check_sender_access pcre:/etc/postfix/ascii.pcre permit_mynetworks reject unknown_local_recipient_reject_code = 550 virtual_gid_maps = static:1016 virtual_mailbox_base = /home/vmail/ virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_uid_maps = static:1006 postconf -m btree cidr environ hash mysql pcre proxy regexp static unix Please help me out. Bijayant Kumar Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/