How To Change The Outgoing Email Domain In MacOS

When I sent email from my desktop Mac cron jobs, it went out with the full hostname as the domain, i.e.: root@demo.wyzaerd.com
, when all I wanted was a simple root@wyzaerd.com
for ease of deliverability and domain maint.
Edit the mail configuration file main.cf:
1 |
vi /etc/postfix/main.cf |
Add/edit the myorigin value of $mydomain:
1 |
myorigin = $mydomain |
Leave Your Comment
All fields marked with "*" are required.