On 2006-01-14 11:48:01 -0600, Dave Rolsky wrote: > I wanted to allow for my server to send mail via direct SMTP connections > locally but still block other servers that claim to be one of my local > domains, so I wrote a plugin to do this, which can be seen at > https://svn.urth.org/svn/qpsmtpd-plugins/trunk/check_forged_local_domain > > One thing that would make this nicer would be if the server knew what IP > addresses it is listening on. Unfortunately, this information is not > passed from the daemon-running script into the main code.
How are you running qpsmtpd? The local IP address should be available
in $self->qp->connection->local_ip (and also in $ENV{TCPLOCALIP}, but I
guess this is deprecated).
hp
--
_ | Peter J. Holzer | Ich sehe nun ein, dass Computer wenig
|_|_) | Sysadmin WSR | geeignet sind, um sich was zu merken.
| | | [EMAIL PROTECTED] |
__/ | http://www.hjp.at/ | -- Holger Lembke in dan-am
pgpOzlpiilrHh.pgp
Description: PGP signature
