LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-18-2005, 10:28 AM   #1
linuxboy123
LQ Newbie
 
Registered: Dec 2003
Posts: 8

Rep: Reputation: 0
need a mail relay that rewrite the sender's domain


to all,

In my environment when we try to mail from our linux/unix servers, the hostname must be in public dns in order for the mail server to accept We have 80 + systems and find it a security risk to put them all in public dns. We do not have any control over the previous mentioned mail servers so I need to find a work around. We have tried a regular mail relay but that also sends the senders address which eventually get rejected anyway.

Therefore, I would like to set up a mail relay that will take the sender's address
( or at least that to the right of the @ sign) and rewrite to my predefined address.

Is this possible?

thanks.
 
Old 04-19-2005, 08:36 PM   #2
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
It could be done but most servers will still reject it because it will fail a reverse dns lookup (not to mention there is enough of this crap on the internet now). I don't understand why you cannot get your mail out under current circumstances. None of your machines (other than router) actually need a public ip. Just route smtp traffic through your router to the private address on your mail server. Set your mx as a cname for your router or something like that if your don't have the ip to burn.

Tom
 
Old 04-20-2005, 07:54 AM   #3
linuxboy123
LQ Newbie
 
Registered: Dec 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Tom,

Thanks for your reply.

Actually the problem is that the mail server to which we are sending these e-mails is doing reverse dns lookups and there is nothing I can do about that. They also (from past experience) will not change their configuration on their outside route for any special cases.

I should have been more clear but all I wanted was to rewrite the senders address from <user>@<hostname>.<domain> to <hostname>@<domain>. We do have a mx record just our domain which will reverse lookup.

I have been able to perform the rewrite in Exim and am almost finished doing it in sendmail.

Thanks.
Brian
 
Old 04-20-2005, 03:42 PM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
In case you have not found this page, here is the masquerading page from sendmail.org

http://www.sendmail.org/m4/masquerading.html

I'd say in your sendmail.mc file you'd want to include this:

MASQUERADE_AS(`domain')
MASQUERADE_DOMAIN(`host.domain otherhost.domain')
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using sendmail to relay mail to ISP mail server Swift&Smart Linux - Software 26 11-09-2008 03:00 PM
Option to specify Sender's Address in Mail command crazy_girl Linux - Newbie 2 08-20-2007 10:36 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
Configure sender's mail id. bharaniks Linux - Software 0 07-27-2005 05:35 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM


All times are GMT -5. The time now is 08:49 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration