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.
I just set up an internal mail server for my office using Postfix, Dovecot and Squirrelmail. It works great except for one tiny problem. When I send mail, I address it to user@myoffice (no .com, .net, etc) and it works perfectly. However, somewhere in my work, I screwed up and for whatever dumb reason put myoffice.net somewhere in there and now the return-path always shows up as user@myoffice.net instead of just user@myoffice. Does anyone know how to fix the return-path so that when someone clicks reply it goes to user@myoffice? I've Googled and searched here without finding my answer, apologies if it's out there and I've just failed to see it. Rest assured I have done a couple hours of searching before finally asking for help.
I don't know what your servers FQDN is but regardless if it's only internal and doesn't have a .tld, it's still a factor. So your config looks like it's missing some parameters where you problems appears to be coming from:
Thanks for the info. Unfortunately, it's still doing the same thing. However, I found a work-around I hadn't thought of. Something I should have thought of all along. I just need to go into the options in the squirrelmail and it has a place where you can set your reply-to address. It isn't perfect, as I'll have to go into every users options and do this, but at least it will work. I just can't figure out where the ".net" is being pulled from to put in the return-path. Very strange.
Thanks!
KP
Oh I didn't know you were using Debian or Ubuntu. Yes, '/etc/mailname' is the problem and Postfix reads straight from that file. I still recommend adding or adjusting your main.cf as posted above but glad it was sorted out and everything's working.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.