Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What do you have configured for the myorigin parameter in your main.cf file, do you have masquerade_domains activated and configured and what's the output of
Code:
hostname -f
Kind regards,
Eric
Last edited by EricTRA; 05-27-2011 at 01:26 AM.
Reason: Typo
Thanks for the reply. I have assigned myorigin =$mydomain. $mydomain is mydomainname. When I type hostname -f it show my domain name.
what is masquerade_domains activated ? where I have to check it.
Thanks
Mohamed
If you started from a clean main.cf, not the one that comes with the installation of Postfix, then you will not have that directive in there. If you look at the original file you'll find it. You'll have to put it in the main.cf file like this:
where of course you have to substitute mydomain for your real domain name. After the change restart Postfix and try to send a mail to see if it takes effect.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.