Hello, all.

I'm running qmail 1.03 on Red Hat 5.2 with a slightly modified (for use
with cucipop) version of smtp-poplock to allow for relaying after a
successful POP authentication.  All users are using Mailbox and not
Maildir.

There is one user who insists that checking for email before sending it
would be too much trouble and would like to have relaying set
unconditionally for him.

I don't know if he has a static IP address, so I don't know if I can allow
relaying for a certain IP address (if I can, I know how to do that).

So my question is: Is there any way to allow relaying for a certain user?
In other words, is there any way to enable relaying based upon the SMTP
envelope From header?

I don't know much about all this, but it seems to me that this is not a
trivial thing (not to mention prudent).  Can I insert a custom-built
program in the smtp 'chain of programs' that looks for the SMTP header?

This is my smtp entry in inetd.conf (without the \<return>s):
smtp stream tcp nowait qmaild /usr/sbin/tcpd \
                              /var/qmail/bin/tcp-env \
                              /usr/src/smtp-poplock/relaylock \
                              /var/qmail/bin/qmail-smtpd

[relaylock sets the RELAYCLIENT env var for authorized IP addresses]

I'd appreciate any help you can give me.  I tried looking in the FAQ and
list archives but couldn't find an answer.

Thanks in advance,

Aijaz A. Ansari.

Reply via email to