On Thu, 12 Jan 2006, Allan Joergensen wrote:

Matt Sergeant wrote:

shouldn't the smtp-forward plugin issue the same errorcode to the connection server as it gets from the backend smtp server?
...
Yes, probably.
...
This is my first attempt:
http://nowhere.dk/~alj/qpsmtpd/smtp-forward.diff
(the errorchecking seems redundant and could probably be a lot smarter)

I've also made a modification to rcpt_ok to verify if the recipient actually a user at the backend.
http://nowhere.dk/~alj/qpsmtpd/rcpt_ok_smtp

Comments please

What we really want to do, I think, is create an smtp client object during helo/ehlo, and then have it communicate to the backend during sender, recipient and data phases. That way qpsmtpd will do its own validations, then pass on the correct backend responses as well. Using Allan's 'improved' queue plugin (with my patch) is OK, but it does mean that sometimes we'll accept data when the sender or recipient data was unacceptable to the backend.

---
Charlie

Reply via email to