全部博文(1144)
分类: LINUX
2006-02-10 11:19:02
Here is a link to a patch i have Written, It will hide your Private or Public IP in the email Headers when you are sending Mail as a Relay Client. This is very handy patch for people with Mail Servers that are behind a Firewall / Gateway and where all your local lan clients are not wanted to show there IP in the Mail that they send ... Seems to work flawlessly (Considering i dont know how to Programm in C, Just hack. ;-) Feel free to add changes or make suggestions =) No patch at all is necessary. Simply set TCPREMOTEIP and TCPREMOTEHOST to empty strings in qmail-smtpd's environment when the connection comes from one of your internal addresses. For example, if your internal network is 192.168.1.0/24, you could have this in your tcpserver rules file: 192.168.1.:allow,RELAYCLIENT="",TCPREMOTEIP="",TCPREMOTEHOST="" ChrisThat would be right , i overlooked the obvious .... Thanks ... Although i have found scenarios where a patch rather then TCP Server Rules would be better ... Mainly where a Mail Server only allows Relay After SMTP-Auth and the TCP Server Rule file only has Loopback and Default =) Much Appreciated .... Alex Nee Hard__warE |