Hello,
I'm working on figuring out how to set the default domain name for
emails when the email originates from the localhost.
For instance, sending an email from server1.domain.tld results in an
email address of [email protected], and I'd like it to be
[email protected]. I've figured out how to do this with Postfix by
setting "myorigin = $mydomain" in main.cf, but I haven't been able to
figure out how to do this in OpenSMTPd via the docs.
Steps taken:
Sending email:
[[email protected]]$ mail [email protected]
Subject: Test email 1
Test email from person1.
Person1
Receiving results:
From: [email protected]
To: [email protected]
Subject: Test email 1
Test email from person1.
Person1
Here are the details of the setup.
Server: Ubuntu 16.04.2 LTS
Package: opensmtpd/xenial,now 5.7.3p2-1 amd64
smtpd.conf:
1 # To accept external mail, replace with: listen on all
2 listen on localhost
3
4 # If you edit the file, you have to run "smtpctl update table aliases"
5 table aliases file:/etc/aliases
6
7 accept from local for any relay as "@domain.tld"
If this has been asked and answered before, I couldn't find it, and I'm
sorry for the email.
Thanks in advance,
Ryan
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]