sendmail header obscuring


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sendmail header obscuring
# 1  
Old 11-23-2007
Question sendmail header obscuring

hello,

I have lots of mail clients, with private IPs, sending mail through our mail server. In the header of each mail outgoing I can find something like

Received: from [127.0.0.1] ([192.168.0.9])
by linux-virtua1.localhost (8.13.8/8.13.8/SuSE Linux 0.8)

...

question is: is there any way to avoid the private IPs to appear in the header? I would like to substitute (or simply drop) any reference to my internal network structure.
Deleting HReceived in sendmail.cf doesn't work, because it deletes (better said: it does not write) the Received line also with inbound messages.

Thanks for your time.Smilie
# 2  
Old 11-23-2007
Yes there is a number of ways.

One way is to modify HReceived in the sendmail configuration file (sendmail.cf)

For example, change:

Code:
    HReceived: $?sfrom $s $.$?_($?s$|from $.$_)

to something like the following:

Code:
    HReceived: $?sfrom my.net (mail.my.net [111.222.333.444])

For more information see the sendmail man page.
# 3  
Old 11-23-2007
This works, unfortunately, both ways. That is, even inbound messages will have the Received header line changed in <mynet.com> etc.
I am trying to mask only the outbound mail.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find header in a text file and prepend it to all lines until another header is found

I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty. I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies

2. Shell Programming and Scripting

Sendmail with header and footer logo in HTML body

Hello, I need help with my script that will send email via sendmail command that will shows both the header and footer logo once the recepient receive the email (e.g. MS Outlook). When I tested to ran the script it will successfully send the email BUT UNFORTUNATELY it doesn't displayed the... (8 Replies)
Discussion started by: lawrence88
8 Replies

3. Shell Programming and Scripting

Password Obscuring Technique

Hi, We have a unix shell script which tries login to database. The user name and password to connect to database is stored in a file connection.sql. Now connection.sql has contents def ora_user =&1 CONNECT A_PROXY/abc123@DEV01 When on UNIX server we connect to database and set spool on... (7 Replies)
Discussion started by: Gangadhar Reddy
7 Replies

4. Shell Programming and Scripting

Encrypt/compile/obscuring scripts

It seems that the Francisco Rosales home page has gone off-line. Is there another source for this? I have found it very useful, but others may also find good use for it - and of course, in turbulent times, I may find myself in a new job too, where I'd like to use it again I'm sure. ... (5 Replies)
Discussion started by: rbatte1
5 Replies

5. AIX

Sendmail on AIX adding header rewrite

Hi, I have been having issues with sendmail service on the AIX server recently with header rewrite on few random email generated from the scripts or programs. I'm not sure what is causing as rest of the emails from the sever is generating correctly? AIX Server --> GATEWAY SERVER(Serv2smtp)... (4 Replies)
Discussion started by: musu1982
4 Replies

6. UNIX for Dummies Questions & Answers

Merge all csv files in one folder considering only 1 header row and ignoring header of all others

Friends, I need help with the following in UNIX. Merge all csv files in one folder considering only 1 header row and ignoring header of all other files. FYI - All files are in same format and contains same headers. Thank you (4 Replies)
Discussion started by: Shiny_Roy
4 Replies

7. Shell Programming and Scripting

sendmail script throwing an error "No recipient addresses found in header"

Hi, I am using following code to send an e-mail with attachment and body. echo "To: user1@mail.com,user2@mail.com" > mail.tmp echo "Cc: user3@mail.com,user4@mail.com" >> mail.tmp echo "From: group@mail.com" >> mail.tmp echo "Subject: my report" >> mail.tmp echo "please see as attached"... (6 Replies)
Discussion started by: vivek_damodaran
6 Replies

8. UNIX for Dummies Questions & Answers

Changing email header information by tweaking sendmail

How can i tweak sendmail configuration files so that the "Received:" field is removed from email header information? Or else can i change Received: (from enswitch@localhost) in email header to something likeReceived: (from xyz@localhost)? ---------- Post updated at 09:57 PM ---------- Previous... (2 Replies)
Discussion started by: proactiveaditya
2 Replies

9. Linux

Reading the header of a tar file(posix header)

say i have these many file in a directory named exam. 1)/exam/newfolder/link.txt. 2)/exam/newfolder1/ and i create a tar say exam.tar well the problem is, when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories. on the... (2 Replies)
Discussion started by: Tanvirk
2 Replies

10. UNIX for Advanced & Expert Users

Recieved: Header help for sendmail

I have a mailing list that I am working with, I maintain, and host my own server. That includes the smtp server using sendmail. I'm running php, and apache. My problem is that my base of subscribers, are from a university as the list is for an organization within the university. That university... (0 Replies)
Discussion started by: rkf45144
0 Replies
Login or Register to Ask a Question