Hi all,

I've been trying to work with qpsmtpd and it looks like it will solve a
problem at work, but I'm having trouble getting it to work.  I have
*no* experience in this area, so my apologies if I'm sending too little
or too much information.

I'm using postfix and I configured it to run on port 2525 by editing
the master.cf file:

  #smtp      unix  -       -       n       -       -       smtp
  2525      unix  -       -       n       -       -       smtp

Then I did a "postfix reload".

My config/plugins file ends with this:

  queue/smtp-forward localhost 2525

My config/rcpthosts reads:

  # rcpthosts - who I receive email for
  Curtis-Poes-Computer.local
  localhost

I'm starting qpsmtpd with:

  sudo ./qpsmtpd-forkserver -u curtispoe -p 25

(Due to the port, permission denied if I run it without sudo, but I
don't care for running this as root)

As per the Matt Sergeant article
(http://www.oreillynet.com/pub/a/sysadmin/2005/09/15/qpsmtpd.html), I'm
using swaks (http://jetmore.org/john/code/#swaks) to test that
everything is working:

  swaks -t [EMAIL PROTECTED] -f [EMAIL PROTECTED] \
  -h foo -s localhost

The error is generates is:

  451 Unable to queue message ()

What appears to be the relevant part of the error message from qpsmtpd
is this:

  10797 trying to get config for me
  10797 FATAL PLUGIN ERROR:  Invalid argument at
./plugins/queue/smtp-forward line 49, <STDIN> line 13.

  10797 451 Queuing declined or disabled; try again later
  10797 dispatching QUIT

And what's actually throwing the error (comments are the values):

  my $smtp = Net::SMTP->new(
    $self->{_smtp_server},            # localhost
    Port => $self->{_smtp_port},      # 2525
    Timeout => 60,
    Hello => $self->qp->config("me"), # Curtis-Poes-Computer.local
  ) || die $!;

>From what I can tell from the Net::SMTP docs, "Port" is not a valid
parameter.  "LocalPort" is a valid parameter, but that fails  with
"Address already in use" (since postfix is using it).

Does anyone know what I'm doing wrong?

Cheers,
Ovid

-- 
If this message is a response to a question on a mailing list, please send 
follow up questions to the list.

Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Reply via email to