View previous topic :: View next topic |
Author |
Message |
Headhunter123 Guru
Joined: 19 Oct 2002 Posts: 509
|
Posted: Wed Jan 21, 2004 6:46 pm Post subject: Need help with rewriting headers of my emails |
|
|
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 |
|
|
Crg Guru
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Wed Jan 21, 2004 7:40 pm Post subject: Re: Need help with rewriting headers of my emails |
|
|
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 |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Thu Jan 22, 2004 3:14 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|