lugnut1221
asked on
qmail relaying
I just installed qmail and am having some trouble with relaying (at least that what i think) when i delete my /var/qmail/control/rhcphos t file everything works fine. but when its there i cant send a message to anybody whos domain is not in that file. I thought that relaying was just to prevent people from sending messages through your smtp from places that were not specified. I didnt think it mattered where the messages were addressed.
what i want to happen is relaying only to be allowed from localhost and my internal network. But i want to be able to send mail to anyone with out adding there domain to the rhcpfile
Any help would be great
lugnut1221
what i want to happen is relaying only to be allowed from localhost and my internal network. But i want to be able to send mail to anyone with out adding there domain to the rhcpfile
Any help would be great
lugnut1221
ASKER
Thats what i did do but i cant possible put all ips that i want to recieve from or send to...i thought the relaying only limited where you could send the mail from.
Relay option is for YOUR local IP range not worlwide one !
Try this please.
Try this please.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You just have to set up both /var/qmail/control/rcpthos
Then using the TCPserver you have to setup the SMTP database access with your authorized IP address :
192.168.0.*:allow,RELAYCLI
10.0.0.*.*:allow,RELAYCLIE
:allow
Dan Bernstein's ucspi-tcp package is available at http://cr.yp.to/ucspi-tcp.html
And finally rebuild the SMTP database :
tcprules tcp.smtp.cdb tcp.smtp.temp < tcp.smtp
It should works as you expect !
Christophe Reverd
Xon-Xoff, Paris.