Hi I have made a spamfilter server based on Postfix and MailScanner. I wan't postfix to reject emails to email-addresses that does not exist on our exchange server. I use a nice perl script that collects the email-addresses from Exchange AD with LDAP.
main.cf: ------------------------------ transport_maps = hash:/etc/postfix/transport relay_domains = example.com smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access reject ------------------------------- Everything works fine and mails are rejected as they are supposed to with: 554 554 5.7.1 <no.such.u...@example.com>: Recipient address rejected: Access denied (state 14). My question is - Can I also send a reason about why the email was rejected. Something like 'User does not exist'? -- Best regards Martin Schiøtz