I have a problem with mail_from configuration of my server (It’s a dedicated server with Virtualmin version 4.02.gpl GPL and CentOS Linux 6.4).
Concerning customs php scripts mail is sending from sitename@myhostname.localdomain !! I use simply PHP code like mail(“testmail@free.fr”,“TEST”,“Message”);
I detect problem is around POSTFIX configuration of my webmin/virtualmin panel.
I find into webmin/network/network-configuration/DNS-client how to change the name of machine (hostname) but at this time i obtain sitename@hostname.localdomain by sitename@myhostname.localdomain .
If localdomain stay at “localdomain”, i think it’s because localdomain is not configure, how to set localdomain or a e-mail adress into from field for every mail sending??
Thanks!