Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th November 2006, 22:35
phreak phreak is offline
Junior Member
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix - masquerade not working

I know the setup is simple but for some reason its not working on my systems. I can send email to external locations and its sent without a problem but the source address is coming up as user@host.mydomain.com instead of user@mydomain.com.

I am running centos 4 with postfix 2.2.10. I have set up the following in main.cf:

myhostname = host.mydomain.com
mydomain = mydomain.com
myorigin = $myhostname
masquerade_domains = $mydomain

Has anyone else ran into this same problem or does anyone have any suggestions?

TIA!!
Reply With Quote
Sponsored Links
  #2  
Old 30th November 2006, 22:38
phreak phreak is offline
Junior Member
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I also checked the logs and when mail is sent it shows as being sent from user@host.mydomain.com.

Everything else in the logs look ok.

Thanks!

(I can provide the full my.cnf if necessary)

Last edited by phreak; 30th November 2006 at 22:43.
Reply With Quote
  #3  
Old 1st December 2006, 16:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

You must set the correct email address in your email client.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 4th December 2006, 23:37
phreak phreak is offline
Junior Member
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how do you set up the mail client? its that the point of setting up masquerading??
Reply With Quote
  #5  
Old 5th December 2006, 18:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

This should give you the idea: http://mail.cs.uiuc.edu/relay/outlook-config.html (the last screenshot is not necessary).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 5th December 2006, 19:21
phreak phreak is offline
Junior Member
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i am not using a windows client. i am sending mail from the command line on the same linux server that i am running postfix
Reply With Quote
  #7  
Old 6th December 2006, 17:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Then you must specify the sender address on the command line. You can read the man page for the command you use.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
Postfix not working bullshit Installation/Configuration 6 11th March 2006 15:36
Postfix not working Nejko Installation/Configuration 3 25th February 2006 12:42
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 15:20


All times are GMT +2. The time now is 06:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.