I have a somewhat unique requirement here for one test that we're going to perform. I need to block relaying for a specific sender. I'm wondering if there is a way to do that using stock qmail-ldap or I will need some extra tools for that? I just can't really think of anything at the moment, tcpserver can only go by IP addresses, so it's not exactly what I need. One thing I thought of is using RELAYCLIENT to append value to recipient address and that appended value would be some local domain. Essentially creating a redirect. But that's not what I really want, because that would affect every sender, not just this particular sender.
Look at the (regular) qmail archives, this comes up all the time: http://news.gmane.org/gmane.mail.qmail.general in a nutshell: if you can't do it based on IP address then you should look into SMTP AUTH or SMTP after POP. If you base it off of the From: then they can just change it.
Chris
No, that's not what I want. I need to base it on envelope sender address (from: address is also fine) and I can't use SMTP AUTH or SMTP after POP for this purpose. To put it simply - we have some automated system that will send all email through testing mail server that runs qmail-ldap. All email sent from that automated system should be delivered to local recipients. Any email sent to remote recipients (relayed) should be either denied or bounced.
