Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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 email@example.com instead of the usual firstname.lastname@example.org. 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
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.