Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help with rewriting headers of my emails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Headhunter123
Guru
Guru


Joined: 19 Oct 2002
Posts: 509

PostPosted: Wed Jan 21, 2004 6:46 pm    Post subject: Need help with rewriting headers of my emails Reply with quote

Hi!

I am using sendmail on my linux router, to make it possible for some lan clients to send their mails over this system.
Works fine, I authentificate with my email provider's smtp server and send the mail.

But: When sendmail says HELO the the remote peer, it always HELO's using the senders local hostname and domain. (I.e: The internet mail server gets to know my local adresses).
This shouldn't be a problem, but as for example GMX and others filter out invalid sender adresses (which 192.168.115.40 indeed is on the internet ;) ) my mails are always regarded as spam.

Now i have learned, that sendmail can somehow rewrite the headers of my emails, so it matches somehow a resolvable domain.

How do you do this? A sendmail solution would be appreciated, though not neccessary. I'm glad if this mailsystem works, no matter with what MTA.

Please help, I'm desperated. Really!
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Wed Jan 21, 2004 7:40 pm    Post subject: Re: Need help with rewriting headers of my emails Reply with quote

Headhunter123 wrote:

How do you do this? A sendmail solution would be appreciated, though not neccessary. I'm glad if this mailsystem works, no matter with what MTA.

Please help, I'm desperated. Really!


First starters you should be using another MTA, I would recommend postfix or exim.

In exim the name sent for the "HELO" can be set by
Code:

primary_hostname = domainname.com


In exim you can also filter out other information that is sent in the headers, ie in the "lookuphost"
Code:

lookuphost:
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  headers_remove = Received:X-Mailer:X-Originating-IP
  no_more
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Thu Jan 22, 2004 3:14 pm    Post subject: Reply with quote

Just another vote: stop using sendmail. It stinks and is full of holes. It just makes it easier for your server to be rooted!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum