Atif Ghaffar wrote:
I would like to put a set of servers running the qpsmtpd software that
allows connections only from SMTP auth'd users.
No relaying otherwise.

No problem. This is what I do for one of my servers; the other two are the public MX records and don't relay at all - they only accept mail for delivery to my domains. Here's my plugin to do what you ask:

#!/usr/bin/perl -w
# this plugin only permits relaying
#
# It should be configured to be run _AFTER_ check_relay
# and before other RCPT hooks!
#

sub hook_rcpt {
  if ( shift->qp->connection->relay_client ) {
    return (OK);
  }
  else {
    return (DENY);
  }
}

John

Reply via email to