Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5376858
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: 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=""

Chris

That 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
阅读(600) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~