[NTLUG:Discuss] QMAIL and open relays.
Richard Geoffrion
ntlug at rain.lewisville.tx.us
Sat Dec 1 00:28:42 CST 2001
ok.. PHEW...I was going crazy there for a second. right answer right
question got it.
UG.. do I HAVE to run tcp server? (grumble...going to get it now..)
You know...if someone would put this all together and get everything you
need into one package...or tgz, it would be VERY helpful. -- or better
yet -- Why WOULDN'T someone want to install tcpserver?
----- Original Message -----
From: <brian at pongonova.net>
> Whoops...right answer, wrong question :)
>
> Try this (from http://cr.yp.to/qmail/faq/servers.html):
>
> How do I allow selected clients to send outgoing messages through my SMTP
server?
> qmail-smtpd is giving the error ``sorry, that domain isn't in my list of
allowed
> rcpthosts (#5.7.1)'' for messages to any domain not listed in
> /var/qmail/control/rcpthosts.
Boy, I'd hate to try to manage that on an outgoing basis! Talk about strict
outbound mail controls....but then you might be opened up for relaying by
yahoo and hotmail accounts...hmm.
>
> Answer: This answer assumes that you are running qmail-smtpd under
tcpserver.
>
> Create /etc/tcp.smtp containing
>
> 1.2.3.6:allow,RELAYCLIENT=""
> 127.:allow,RELAYCLIENT=""
>
hmm...you reckon this would work with DNS names also?
ntlug.org:allow,RELAYCLIENT=""
> Insert -x /etc/tcp.smtp.cdb
> after tcpserver in your system boot scripts. The change will take effect
at your
> next reboot.
but do you HAVE to reboot? what about stopping mail services, running an
'init q' and restarting it?
Thanks guys!
More information about the Discuss
mailing list