LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-26-2003, 09:46 AM   #1
Vince0000
Member
 
Registered: Sep 2003
Posts: 48

Rep: Reputation: 15
Angry Postfix - Don't masquerade Local only Outgoing mail... Help please...


Hi Everyone...

I've familarized myself with Sendmail and have a working setup but always here that postfix is easier and more secure so i'm not sure if i'm making a mountain out of a molehill or what but I've ran into a problem.

I have one location setup as let's say HERE.DOMAIN.COM and I toss the mail around on the local network with that address (Everything works fine), now for OUTGOING mail I would like it to be USER@DOMAIN.COM not USER@HERE.DOMAIN.COM so I setup the Masquerade Domain and it works fine but I can no longer send the mail around locally with the USER@HERE.DOMAIN.COM address it all comes from USER@DOMAIN.COM...

In Sendmail I use the FEATURE(NO_LOCAL_MASQUERADE) so all my mail going to xxx@here.domain.com gets delivered correctly locally and if it is sent to anyone else it comes from user@domain.com and works good. can that be reproduced with Postfix easy enough?

PostFix sure does look easier to configure and work with so i would like to get this resolved but I'm thinking sendmail and not finding the right solution. Maybe i'm approching it wrong and have to re-structure it?

Also, all my outgoing mail will be relayed off to our corporate office which has there mail at USER@DOMAIN.COM that is why I want to toss it locally at USER@HERE.DOMAIN.COM and only masquerade outgoing mail, otherwise I end up with a user sending a message to someone and the reply leaves our location to the Corp Office and back again so it's not efficient.

Thanks,
Vince
 
Old 11-26-2003, 12:46 PM   #2
Vince0000
Member
 
Registered: Sep 2003
Posts: 48

Original Poster
Rep: Reputation: 15
I found a feature where I can use

Masquerade = !here.domain.com domain.com

so that will NOT masquerade my local domain but I really DO want it to masquerade it if it is sent my SMTP or OUTGOING mail, just NOT if it is local... Has anyone got a setup simiar to this that can help me out?

Thanks,
Vince
 
Old 11-27-2003, 09:08 AM   #3
Vince0000
Member
 
Registered: Sep 2003
Posts: 48

Original Poster
Rep: Reputation: 15
I can't seem to get it to work the way I need either... with the !here.domain.com in postfix it then works correctly by NOT masquerading anything from that domain but like I mentioned I DO want that masqueraded for outgoing mail...

Has anyone used sendmail for masquerading OUTGOING mail only so you can send mail locally to user@this.domain.com back and forth and once it is to be delivered by smtp masquerade it to user@domain.com???

Or am I taking a wrong approch to postfix?

usera@this.domain.com -----mails------------ userb@this.domain.com

keeps the usera@this.domain.com address which is fine

Usera@this.domain.com -----mails------------ JoeBlow@hotmail.com

should be masqueraded as Usera@domain.com


Hope you can help me out here...

Thanks,
Vince

Last edited by Vince0000; 11-27-2003 at 09:11 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
send a test mail from shell using local installed postfix ? cccc Linux - General 3 06-26-2005 05:34 AM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 02:24 AM
mail to local user using Postfix hct224 Linux - Newbie 0 03-16-2004 08:08 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM
postfix outgoing mail fail from outlook express importboy03 Linux - Networking 0 02-20-2003 02:54 PM


All times are GMT -5. The time now is 01:07 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 Google+: linuxquestions
Open Source Consulting | Domain Registration