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.
Switched to a Debian Testing server with Postfix. I used this postfix configuration on a slackware server with no problems before. The problem now is when i send a message from the server, the receiving party displays in the FROM field user@hostname.domain.com instead of the usual user@domain.com. I have the hostname and domain configured in the main.cf file. I am unable to figure out why the server hostname is inserted in the address. Not sure if this is postfix configuration or DNS problem.
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
Yes. It is set to myorigin = $mydomain. No matter if it is set to $myhostname or the actual domain.com it still adds the server hostmane to the domain part of the e-mail address.
To be honest, I'm not sure if the myorigin works for me as I also use a generic map. This should fix the problem if you want to follow this route, although there must be a simpler explanation and solution.
To /etc/postfix/generic (assuming the path is correct) add
Did a search for the generic file on the system but no results. I created the file and followed the generic(5) man pages. Basically did what you said billymayday. Tested and works. Thanks For the help.
IIRC I used to put the name in /etc/mailname on Debian. I haven't had a mail server running on Debian for a while so can't remember for sure, but "man mailname" leads me to believe that's still how it's done.
Kent
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.